diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBomMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBomMapper.java index 03ade96..9d676fd 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBomMapper.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/dao/ProductProcessBomMapper.java @@ -21,4 +21,6 @@ public interface ProductProcessBomMapper extends Mapper { List findByProductNameAndProductNum(ProductProcessBomParams mtAloneProductProcessBomParams); ProductProcessBom selectByProdProcBom(ProductProcessBomParams params); + + ProductProcessBomDto findDataById(Integer id); } \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessBomMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessBomMapper.xml index bf9f931..cfb3c47 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessBomMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProcessBomMapper.xml @@ -24,6 +24,12 @@ + + + + + + @@ -67,11 +73,14 @@ diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBomMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBomMapper.xml index 3bc26f1..dd561c7 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBomMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/ProductProcessBomMapper.xml @@ -32,6 +32,7 @@ + @@ -155,5 +156,12 @@ + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProcessBomDto.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProcessBomDto.java index 9cc1dd1..1d661bb 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProcessBomDto.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProcessBomDto.java @@ -15,6 +15,58 @@ public class ProcessBomDto extends ProcessBom{ private String companyName; + private String productName; + + private String productSpecification; + + private String unitName; + + private String productWorkSpecification; + + private String processContent; + + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public String getProductSpecification() { + return productSpecification; + } + + public void setProductSpecification(String productSpecification) { + this.productSpecification = productSpecification; + } + + public String getUnitName() { + return unitName; + } + + public void setUnitName(String unitName) { + this.unitName = unitName; + } + + public String getProductWorkSpecification() { + return productWorkSpecification; + } + + public void setProductWorkSpecification(String productWorkSpecification) { + this.productWorkSpecification = productWorkSpecification; + } + + @Override + public String getProcessContent() { + return processContent; + } + + @Override + public void setProcessContent(String processContent) { + this.processContent = processContent; + } + private List processMaterialsBomDtoList; public List getProcessMaterialsBomDtoList() { diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProductProcessBomDto.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProductProcessBomDto.java index d5e703a..1950242 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProductProcessBomDto.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProductProcessBomDto.java @@ -38,6 +38,28 @@ public class ProductProcessBomDto extends ProductProcessBom{ */ private String unitName; + private String productProcessName; + + private Integer machiningProductId; + + public Integer getMachiningProductId() { + return machiningProductId; + } + + public void setMachiningProductId(Integer machiningProductId) { + this.machiningProductId = machiningProductId; + } + + @Override + public String getProductProcessName() { + return productProcessName; + } + + @Override + public void setProductProcessName(String productProcessName) { + this.productProcessName = productProcessName; + } + public String getUnitName() { return unitName; } diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProductProcessBomParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProductProcessBomParams.java index c44a61a..ae1a784 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProductProcessBomParams.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/model/ProductProcessBomParams.java @@ -56,6 +56,12 @@ public class ProductProcessBomParams extends QueryParams { */ private Integer id; + private String workSpecification; + + private Integer machiningProductId; + + + @Override public String toString() { return "ProductProcessBomParams{" + @@ -72,6 +78,22 @@ public class ProductProcessBomParams extends QueryParams { '}'; } + public Integer getMachiningProductId() { + return machiningProductId; + } + + public void setMachiningProductId(Integer machiningProductId) { + this.machiningProductId = machiningProductId; + } + + public String getWorkSpecification() { + return workSpecification; + } + + public void setWorkSpecification(String workSpecification) { + this.workSpecification = workSpecification; + } + public Integer getId() { return id; } diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessBomService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessBomService.java index cbdbed2..256f900 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessBomService.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/ProductProcessBomService.java @@ -24,4 +24,6 @@ public interface ProductProcessBomService extends Service findProBomAndProList(ProductProcessBomParams params) { @@ -108,7 +113,13 @@ public class ProductProcessBomServiceImpl extends AbstractService processBomList = new ArrayList<>(); for (ProcessBomParams processBomParams:params.getProcessBomParamsList()) { ProcessBom processBom = new ProcessBom(); @@ -177,4 +188,9 @@ public class ProductProcessBomServiceImpl extends AbstractService