diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInPlanController.java b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInPlanController.java index 4c5daa3..46f8161 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInPlanController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInPlanController.java @@ -3,6 +3,7 @@ package com.ktg.mes.wm.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.ktg.mes.md.service.IAP0AEService; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -34,6 +35,9 @@ public class WmsInPlanController extends BaseController { @Autowired private IWmsInPlanService wmsInPlanService; + @Autowired + private IAP0AEService iAP0AEService; + /** * 查询入库计划列表 */ @@ -42,6 +46,7 @@ public class WmsInPlanController extends BaseController { public TableDataInfo list(WmsInPlan wmsInPlan) { startPage(); List list = wmsInPlanService.selectWmsInPlanList(wmsInPlan); + iAP0AEService.selectInNewData(); return getDataTable(list); } diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java index fa86703..4a3c1a9 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java @@ -226,7 +226,6 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService { MdItem mdItem = mdItemService.selectMdItemById(Long.parseLong(wmsInTask.getMaterialId())); wmsInTask.setMaterialCode(mdItem.getItemCode()); - wmsInTask.setPlanTypeId(wmsInPlan.getPlanTypeId().toString()); wmsInTask.setPlanTypeCode(wmsInPlan.getPlanTypeCode()); wmsInTask.setPlanInStatus("0"); wmsInTask.setDetailInId(detail.getDetailsId());