Compare commits
3 Commits
35f3067343
...
6e5da0821b
Author | SHA1 | Date | |
---|---|---|---|
6e5da0821b | |||
9c3eb9d90e | |||
b588d1467c |
@ -92,7 +92,9 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService {
|
|||||||
public int insertWmsInPlan(WmsInPlan wmsInPlan) {
|
public int insertWmsInPlan(WmsInPlan wmsInPlan) {
|
||||||
wmsInPlan.setCreateTime(DateUtils.getNowDate());
|
wmsInPlan.setCreateTime(DateUtils.getNowDate());
|
||||||
// 设置计划编码
|
// 设置计划编码
|
||||||
if (wmsInPlan.getPlanCode() == null) wmsInPlan.setPlanCode(MultiModuleCodeGenerator.generateTaskCode("RKP"));
|
if (wmsInPlan.getPlanCode() == null) {
|
||||||
|
wmsInPlan.setPlanCode(MultiModuleCodeGenerator.generateTaskCode("RKP"));
|
||||||
|
}
|
||||||
int rows = wmsInPlanMapper.insertWmsInPlan(wmsInPlan);
|
int rows = wmsInPlanMapper.insertWmsInPlan(wmsInPlan);
|
||||||
insertWmsInPlanDetails(wmsInPlan);
|
insertWmsInPlanDetails(wmsInPlan);
|
||||||
return rows;
|
return rows;
|
||||||
@ -161,6 +163,7 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService {
|
|||||||
List<WmsInPlanDetailEntity> wmsInPlanDetailEntityList = list.get(i).getWmsInPlanDetailEntityList();
|
List<WmsInPlanDetailEntity> wmsInPlanDetailEntityList = list.get(i).getWmsInPlanDetailEntityList();
|
||||||
wmsInPlanDetailsList1.get(i).setWmsInPlanDetailEntityList(wmsInPlanDetailEntityList);
|
wmsInPlanDetailsList1.get(i).setWmsInPlanDetailEntityList(wmsInPlanDetailEntityList);
|
||||||
wmsInPlanDetailEntityMapper.deleteWmsInPlanDetailEntityByPlanDetailsId(wmsInPlanDetailsList1.get(i).getDetailsId());
|
wmsInPlanDetailEntityMapper.deleteWmsInPlanDetailEntityByPlanDetailsId(wmsInPlanDetailsList1.get(i).getDetailsId());
|
||||||
|
// 插入实例
|
||||||
insertWmsInPlanDetailEntity(wmsInPlanDetailsList1.get(i));
|
insertWmsInPlanDetailEntity(wmsInPlanDetailsList1.get(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user