Commit c58e5856 by liuyang

2024-08-05 材料计划导入删除项目材料计划重复导入校验

parent b52ebf7f
......@@ -1411,13 +1411,14 @@ public class HGSCTools {
for (HGSC009 hgsc009:hgsc009List) {
HGSC001 hgsc001 = Hgsc001.queryByCode(hgsc009.getProjCode());
AssertUtils.isNull(hgsc001,"项目不存在,添加失败!");
HGSC009 sc009 = queryByCode(hgsc009.getProjCode());
AssertUtils.isNotNull(sc009,"材料计划项目已添加,添加失败!");
//HGSC009 sc009 = queryByCode(hgsc009.getProjCode());
//AssertUtils.isNotNull(sc009,"材料计划项目已添加,添加失败!");
if (hgsc001.getCompanyCode() != null) {
hgsc009.setCompanyCode(hgsc001.getCompanyCode());
}
hgsc009.setCompanyName(hgsc001.getCompanyName());
hgsc009.setProjName(hgsc001.getProjName());
}
hgsc009.setPlanMaterialCode(SequenceGenerator.getNextSequence(HGConstant.SequenceId.PLAN_MATERIAL_CODE));
DaoUtils.insert(HGSC009.INSERT,hgsc009);
for (HGSC009A hgsc009a: hgsc009aList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment