Commit 007cf0a8 by liuyang

2024-08-12 材料计划导入如果没有产品编码就系统生成编码

parent 75526473
......@@ -1440,6 +1440,9 @@ public class HGSCTools {
DaoUtils.insert(HGSC009.INSERT,hgsc009);
List<HGSC009A> hgsc009as = new ArrayList<>();
for (HGSC009A hgsc009a: hgsc009aList) {
if (hgsc009a.getInventCode().trim().isEmpty()){
hgsc009a.setInventCode(SequenceGenerator.getNextSequence(HGConstant.SequenceId.INVENT_CODE));
}
List<HGPZ005> hgpz005List = DaoBase.getInstance().query(HGPZ005.QUERY,new HashMap<String,String>(){{
put("inventCode",hgsc009a.getInventCode());
}});
......@@ -1463,10 +1466,10 @@ public class HGSCTools {
hgsc009a.setWidth(hgpz005.getWidth());
hgsc009a.setThick(hgpz005.getThick());
hgsc009a.setInventTypeDetail(hgpz005.getInventTypeDetail()+"");
hgsc009as.add(hgsc009a);
DaoUtils.insert(HGSC009A.INSERT,hgsc009a.toMap());
//hgsc009as.add(hgsc009a);
}
DaoUtils.insertBatch(HGSC009A.INSERT,hgsc009as);
}
}
......
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