Commit 93b2d3e8 by wuwenlong

生产计划排产

parent d0289a14
...@@ -62,7 +62,7 @@ public class ServiceHGSC005 extends ServiceBase { ...@@ -62,7 +62,7 @@ public class ServiceHGSC005 extends ServiceBase {
this.checkCommitDate(hgsc005AList); this.checkCommitDate(hgsc005AList);
List<Long> ids = ObjectUtils.listKey(resultRows, HGSC005.FIELD_id); List<Long> ids = ObjectUtils.listKey(resultRows, HGSC005.FIELD_id);
DaoUtils.update(HGSC005.BATCH_COMMIT, new HashMap<String,Object>(){{put("ids",ids);}}); DaoUtils.update(HGSC005.BATCH_COMMIT, new HashMap<String,Object>(){{put("ids",ids);}});
//TODO 生成生产计划 //TODO 生成生产订单
inInfo = this.query(inInfo); inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT); inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据提交成功!"); inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据提交成功!");
......
...@@ -215,8 +215,8 @@ public class HGSCTools { ...@@ -215,8 +215,8 @@ public class HGSCTools {
Map paramMap = new HashMap(); Map paramMap = new HashMap();
paramMap.put(HGSC005A.FIELD_mat_id, hgsc005a.getMatId()); paramMap.put(HGSC005A.FIELD_mat_id, hgsc005a.getMatId());
paramMap.put(HGSC005A.FIELD_product_code, hgsc005a.getProductCode()); paramMap.put(HGSC005A.FIELD_product_code, hgsc005a.getProductCode());
//构建计划物料明细ID唯一 TODO //构建计划物料明细ID唯一
if(hgsc005a.getProductType()==1){ if(hgsc005a.getProductType().compareTo(ProductTypeEnum.STRUCT.getCode())==0){
paramMap.put(HGSC005A.FIELD_mat_detail_id, hgsc005a.getMatDetailId()); paramMap.put(HGSC005A.FIELD_mat_detail_id, hgsc005a.getMatDetailId());
} }
List<HGSC005A> oldObjList = DaoBase.getInstance().query(HGSC005A.QUERY, paramMap); List<HGSC005A> oldObjList = DaoBase.getInstance().query(HGSC005A.QUERY, paramMap);
...@@ -251,7 +251,7 @@ public class HGSCTools { ...@@ -251,7 +251,7 @@ public class HGSCTools {
} }
if(CollectionUtils.isNotEmpty(updateList)){ if(CollectionUtils.isNotEmpty(updateList)){
updateList.forEach(obj -> { updateList.forEach(obj -> {
DaoUtils.insert(HGSC005A.UPDATE,obj); DaoUtils.update(HGSC005A.UPDATE,obj);
}); });
} }
return hgsc005a; return hgsc005a;
......
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