无用代码优化

This commit is contained in:
liang.chao 2024-10-14 13:56:52 +08:00
parent b2fa4dedc2
commit b7f298d834
1 changed files with 8 additions and 8 deletions

View File

@ -223,14 +223,14 @@ public class BackReceiveServiceImpl implements BackReceiveService {
throw new RuntimeException("input_apply_details"); throw new RuntimeException("input_apply_details");
} }
// 如果是成套的机具成套机具的库存也要添加 // 如果是成套的机具成套机具的库存也要添加
List<BackApplyInfo> ctList = backReceiveMapper.getCtList(record); // List<BackApplyInfo> ctList = backReceiveMapper.getCtList(record);
if (ctList.size() > 0) { // if (ctList.size() > 0) {
for (BackApplyInfo backApplyInfo : ctList) { // for (BackApplyInfo backApplyInfo : ctList) {
if ("2".equals(backApplyInfo.getManageType())) { // if ("2".equals(backApplyInfo.getManageType())) {
backReceiveMapper.updateMt(backApplyInfo); // backReceiveMapper.updateMt(backApplyInfo);
} // }
} // }
} // }
res = updateMt(hgList); res = updateMt(hgList);
if (res == 0) { if (res == 0) {
throw new RuntimeException("ma_type"); throw new RuntimeException("ma_type");