refactor(入库计划): 实体类方法名修改,移除无用依赖

This commit is contained in:
Kelvin 2025-01-05 20:41:33 +08:00
parent 6536b1c7c3
commit 039b84258b
3 changed files with 8 additions and 8 deletions

View File

@ -1102,12 +1102,12 @@ public class BaseKnifeController extends BaseController {
wmsInPlanDetail.setQuantityIn(zdTask.getProductIdQty().toString());
wmsInPlanDetail.setPlanInStatus("0");
wmsInPlanDetailList.add(wmsInPlanDetail);
wmsInPlanTemp.setWmsInPlanDetailsList(wmsInPlanDetailList);
wmsInPlanTemp.setWmsInPlanDetailList(wmsInPlanDetailList);
wmsInPlanService.insertWmsInPlan(wmsInPlanTemp);
wmsInPlan = wmsInPlanTemp;
} else {
// 入库任务明细
List<WmsInPlanDetail> wmsInPlanDetailList = wmsInPlan.getWmsInPlanDetailsList();
List<WmsInPlanDetail> wmsInPlanDetailList = wmsInPlan.getWmsInPlanDetailList();
WmsInPlanDetail wmsInPlanDetail = new WmsInPlanDetail();
wmsInPlanDetail.setMaterialId(zdTask.getmProductId().toString());
wmsInPlanDetail.setBatch(batchNum);
@ -1116,7 +1116,7 @@ public class BaseKnifeController extends BaseController {
wmsInPlanDetail.setQuantityIn(zdTask.getProductIdQty().toString());
wmsInPlanDetail.setPlanInStatus("0");
wmsInPlanDetailList.add(wmsInPlanDetail);
wmsInPlan.setWmsInPlanDetailsList(wmsInPlanDetailList);
wmsInPlan.setWmsInPlanDetailList(wmsInPlanDetailList);
wmsInPlanService.updateWmsInPlan(wmsInPlan);
}

View File

@ -70,7 +70,7 @@ public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityS
// 获取入库计划
WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsInPlan.getPlanTypeId().toString());
for (WmsInPlanDetail detail : wmsInPlan.getWmsInPlanDetailsList()) {
for (WmsInPlanDetail detail : wmsInPlan.getWmsInPlanDetailList()) {
// 匹配入库明细
if (detail.getDetailsId().equals(entity.getPlanDetailsId())) {
System.out.println("---" + detail.getDetailsId() + "+测试+" + entity.getPlanDetailsId());

View File

@ -441,12 +441,12 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
});
wmsInPlanDetail.setWmsInPlanDetailEntityList(wmsInPlanDetailEntityList);
wmsInPlanDetailList.add(wmsInPlanDetail);
wmsInPlanTemp.setWmsInPlanDetailsList(wmsInPlanDetailList);
wmsInPlanTemp.setWmsInPlanDetailList(wmsInPlanDetailList);
wmsInPlanService.insertWmsInPlan(wmsInPlanTemp);
wmsInPlan = wmsInPlanTemp;
} else {
// 入库任务明细
List<WmsInPlanDetail> wmsInPlanDetailList = wmsInPlan.getWmsInPlanDetailsList();
List<WmsInPlanDetail> wmsInPlanDetailList = wmsInPlan.getWmsInPlanDetailList();
WmsInPlanDetail wmsInPlanDetail = new WmsInPlanDetail();
wmsInPlanDetail.setMaterialId(zdTask.getmProductId().toString());
wmsInPlanDetail.setBatch(batchNum);
@ -455,7 +455,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
wmsInPlanDetail.setQuantityIn(zdTask.getProductIdQty().toString());
wmsInPlanDetail.setPlanInStatus("0");
wmsInPlanDetailList.add(wmsInPlanDetail);
wmsInPlan.setWmsInPlanDetailsList(wmsInPlanDetailList);
wmsInPlan.setWmsInPlanDetailList(wmsInPlanDetailList);
wmsInPlanService.updateWmsInPlan(wmsInPlan);
}
@ -479,7 +479,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
wmsInTask.setPlanTypeId("9");
wmsInTask.setPlanTypeCode("ZDHK");
wmsInTask.setPlanInStatus("0");
wmsInTask.setDetailInId(inPlanTemp.getWmsInPlanDetailsList().get(0).getDetailsId());
wmsInTask.setDetailInId(inPlanTemp.getWmsInPlanDetailList().get(0).getDetailsId());
wmsInTask.setCreateBy(getUsername());
wmsInTask.setCreateTime(DateUtils.getNowDate());
wmsInTaskMapper.insertWmsInTask(wmsInTask);