Compare commits

...

3 Commits

Author SHA1 Message Date
6e5da0821b Merge remote-tracking branch 'origin/master' 2024-12-09 14:05:59 +08:00
9c3eb9d90e Merge remote-tracking branch 'origin/master'
# Conflicts:
#	ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java
2024-12-09 11:22:55 +08:00
b588d1467c refactor(入库计划): 编码优化 2024-12-09 11:22:18 +08:00

View File

@ -92,7 +92,9 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService {
public int insertWmsInPlan(WmsInPlan wmsInPlan) {
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);
insertWmsInPlanDetails(wmsInPlan);
return rows;
@ -161,6 +163,7 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService {
List<WmsInPlanDetailEntity> wmsInPlanDetailEntityList = list.get(i).getWmsInPlanDetailEntityList();
wmsInPlanDetailsList1.get(i).setWmsInPlanDetailEntityList(wmsInPlanDetailEntityList);
wmsInPlanDetailEntityMapper.deleteWmsInPlanDetailEntityByPlanDetailsId(wmsInPlanDetailsList1.get(i).getDetailsId());
// 插入实例
insertWmsInPlanDetailEntity(wmsInPlanDetailsList1.get(i));
}
}