diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/MtAloneProcessMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/MtAloneProcessMapper.java index eb5f211..0dfb441 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/MtAloneProcessMapper.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/MtAloneProcessMapper.java @@ -15,4 +15,6 @@ public interface MtAloneProcessMapper extends Mapper { MtAloneProcessVo selectProcessVoByProcessId(MtAloneProcessParams params); void setNextProcessBeforeHandleStatus(MtAloneProcess currentProcess); + + List processStepListByProdprocid(ProductProcessParams params); } \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBatchDetMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBatchDetMapper.java index a536070..6b61936 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBatchDetMapper.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBatchDetMapper.java @@ -2,10 +2,13 @@ package com.deer.wms.produce.manage.dao; import com.deer.wms.produce.manage.model.ProductProcessBatchDet; import com.deer.wms.produce.manage.model.ProductProcessBatchDetParams; +import com.deer.wms.produce.manage.model.ProductProcessParams; import com.deer.wms.project.seed.core.mapper.Mapper; import java.util.List; public interface ProductProcessBatchDetMapper extends Mapper { List findList(ProductProcessBatchDetParams params); + + List volumeStepListByProdprocid(ProductProcessParams params); } \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessMapper.java index aa670fa..b26e768 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessMapper.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessMapper.java @@ -1,6 +1,7 @@ package com.deer.wms.produce.manage.dao; +import com.deer.wms.produce.manage.model.ProcessStepAndVolumeNum; import com.deer.wms.produce.manage.model.ProductProcess; import com.deer.wms.produce.manage.model.ProductProcessParams; import com.deer.wms.produce.manage.model.ProductProcessVo; diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MtAloneProcessMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MtAloneProcessMapper.xml index 4e61238..4868785 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MtAloneProcessMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MtAloneProcessMapper.xml @@ -119,4 +119,17 @@ WHERE process_step = (#{processStep}+1) AND product_process_id = #{productProcessId} AND company_id = #{companyId} + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBatchDetMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBatchDetMapper.xml index 1bde8bb..806cb3a 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBatchDetMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBatchDetMapper.xml @@ -25,4 +25,17 @@ + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProcessStepAndVolumeNum.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProcessStepAndVolumeNum.java new file mode 100644 index 0000000..af91d51 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProcessStepAndVolumeNum.java @@ -0,0 +1,31 @@ +package com.deer.wms.produce.manage.model; + +import java.util.List; + +/** + * 用于打卷系统,根据批次加工单号获取其下的所有工序和卷号 + * @Author: hy + * @Date: 2020/3/11 15:10 + * @Version 1.0 + */ +public class ProcessStepAndVolumeNum { + private List processStepList; + + private List volumeStepList; + + public List getProcessStepList() { + return processStepList; + } + + public void setProcessStepList(List processStepList) { + this.processStepList = processStepList; + } + + public List getVolumeStepList() { + return volumeStepList; + } + + public void setVolumeStepList(List volumeStepList) { + this.volumeStepList = volumeStepList; + } +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/MtAloneProcessService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/MtAloneProcessService.java index 7d339a7..9a1f736 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/MtAloneProcessService.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/MtAloneProcessService.java @@ -19,4 +19,6 @@ public interface MtAloneProcessService extends Service void saveProcAndProcMat(ProcessAndProcMat processAndProcMat, CurrentUser currentUser); void updateProcess(ProcessHo processHo); + + List processStepListByProdprocid(ProductProcessParams params); } diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessBatchDetService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessBatchDetService.java index 8107c12..12440c0 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessBatchDetService.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessBatchDetService.java @@ -3,6 +3,7 @@ package com.deer.wms.produce.manage.service; import com.deer.wms.produce.manage.model.ProductProcessBatchDet; import com.deer.wms.produce.manage.model.ProductProcessBatchDetParams; +import com.deer.wms.produce.manage.model.ProductProcessParams; import com.deer.wms.project.seed.core.service.Service; import java.util.List; @@ -14,4 +15,5 @@ public interface ProductProcessBatchDetService extends Service findList(ProductProcessBatchDetParams params) ; + List volumeStepListByProdprocid(ProductProcessParams params); } diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessService.java index 46ab455..95fdf0f 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessService.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessService.java @@ -22,5 +22,8 @@ public interface ProductProcessService extends Service void addProduceProcess(ProductProcessHo productProcessHo, CurrentUser currentUser); + ProcessStepAndVolumeNum stepAndNumByProdprocid(ProductProcessParams params); + + //void deleteRelevantById(Integer produceProcessId, CurrentUser currentUser); } diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/MtAloneProcessServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/MtAloneProcessServiceImpl.java index bca6e7b..1e60800 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/MtAloneProcessServiceImpl.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/MtAloneProcessServiceImpl.java @@ -112,6 +112,11 @@ public class MtAloneProcessServiceImpl extends AbstractService processStepListByProdprocid(ProductProcessParams params) { + return mtAloneProcessMapper.processStepListByProdprocid(params); + } + //设置下一道工序的前道工序处理状态 public void setNextProcessBeforeHandleStatus(MtAloneProcess currentProcess) { mtAloneProcessMapper.setNextProcessBeforeHandleStatus(currentProcess); diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessBatchDetServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessBatchDetServiceImpl.java index c92d842..ad995d5 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessBatchDetServiceImpl.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessBatchDetServiceImpl.java @@ -3,6 +3,7 @@ package com.deer.wms.produce.manage.service.impl; import com.deer.wms.produce.manage.dao.ProductProcessBatchDetMapper; import com.deer.wms.produce.manage.model.ProductProcessBatchDet; import com.deer.wms.produce.manage.model.ProductProcessBatchDetParams; +import com.deer.wms.produce.manage.model.ProductProcessParams; import com.deer.wms.produce.manage.service.ProductProcessBatchDetService; import com.deer.wms.project.seed.core.service.AbstractService; @@ -26,4 +27,9 @@ public class ProductProcessBatchDetServiceImpl extends AbstractService findList(ProductProcessBatchDetParams params) { return productProcessBatchDetMapper.findList(params); } + + @Override + public List volumeStepListByProdprocid(ProductProcessParams params) { + return productProcessBatchDetMapper.volumeStepListByProdprocid(params); + } } diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessServiceImpl.java index 7f8d820..feb61df 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessServiceImpl.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessServiceImpl.java @@ -262,10 +262,22 @@ public class ProductProcessServiceImpl extends AbstractService processStepList = processService.processStepListByProdprocid(params); + List volumeStepList = productProcessBatchDetService.volumeStepListByProdprocid(params); + processStepAndVolumeNum.setProcessStepList(processStepList); + processStepAndVolumeNum.setVolumeStepList(volumeStepList); + return processStepAndVolumeNum; + } + + //@Override //public void deleteRelevantById(Integer produceProcessId, CurrentUser currentUser) { // productProcessMapper.deleteByPrimaryKey(produceProcessId); diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/web/ProductProcessController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/web/ProductProcessController.java index b9d7646..c9144fb 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/web/ProductProcessController.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/web/ProductProcessController.java @@ -236,4 +236,29 @@ public class ProductProcessController { return ResultGenerator.genSuccessResult(); } + /** + * hy正在用(打卷系统) + * 根据批次加工单id获取其下的卷号和工序 + * @param params + * @param currentUser + * @return + */ + @ApiOperation(value = "批次生产加工单下的工序和卷号查询", notes = "批次生产加工单下的工序和卷号查询") + @ApiImplicitParams({ + @ApiImplicitParam(name = "productProcessId", value = "批次生产加工单id", paramType = "query", dataType = "int", required = true), + @ApiImplicitParam(name = "companyId", value = "公司id", paramType = "query", dataType = "int", required = false) + }) + @OperateLog(description = "批次生产加工单下的工序和卷号查询", type = "查询") + @GetMapping("/step/and/num/by/prodprocid") + public Result stepAndNumByProdprocid(ProductProcessParams params, @ApiIgnore @User CurrentUser currentUser) { + //if(currentUser==null){ + // return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + //} + + params.setCompanyId(1); + ProcessStepAndVolumeNum processStepAndVolumeNum = productProcessService.stepAndNumByProdprocid(params); + return ResultGenerator.genSuccessResult(processStepAndVolumeNum); + } + + }