From 9ee464c7368697ba3e1a08000fe5b524fa85f5bf Mon Sep 17 00:00:00 2001 From: CaiXiang <939387484@qq.com> Date: Tue, 18 Aug 2020 10:15:38 +0800 Subject: [PATCH 1/7] mark --- .idea/workspace.xml | 264 +++--- pom.xml | 25 + src/test/java/BillCodeGenerator.java | 30 + src/test/java/ParseJSON.java | 26 + src/test/java/generator/CodeGenerator.java | 42 + .../java/generator/CodeGenerator.java.orig | 38 + wms-parent.iml | 11 +- .../clothflow/dao/MtAloneByAShelfMapper.java | 8 + .../dao/MtAloneByBakeClothMapper.java | 6 + .../dao/MtAloneByCoatingGlueMapper.java | 6 + .../clothflow/dao/MtAloneByCoatingMapper.java | 6 + .../dao/MtAloneByCoatingProgressMapper.java | 6 + .../dao/MtAloneByGoDyeFactoryMapper.java | 6 + .../dao/MtAloneByLogisticsMapper.java | 6 + .../dao/MtAloneByRunClothMapper.java | 6 + .../dao/MtAloneByTrimmingMapper.java | 6 + .../mapper/MtAloneByAShelfMapper.xml | 17 + .../mapper/MtAloneByBakeClothMapper.xml | 28 + .../mapper/MtAloneByCoatingGlueMapper.xml | 19 + .../mapper/MtAloneByCoatingMapper.xml | 43 + .../mapper/MtAloneByCoatingProgressMapper.xml | 29 + .../mapper/MtAloneByGoDyeFactoryMapper.xml | 28 + .../mapper/MtAloneByLogisticsMapper.xml | 27 + .../mapper/MtAloneByRunClothMapper.xml | 28 + .../mapper/MtAloneByTrimmingMapper.xml | 32 + .../clothflow/model/MtAloneByAShelf.java | 190 ++++ .../model/MtAloneByAShelfParams.java | 9 + .../clothflow/model/MtAloneByBakeCloth.java | 452 ++++++++++ .../model/MtAloneByBakeClothParams.java | 9 + .../clothflow/model/MtAloneByCoating.java | 814 ++++++++++++++++++ .../clothflow/model/MtAloneByCoatingGlue.java | 236 +++++ .../model/MtAloneByCoatingGlueParams.java | 9 + .../model/MtAloneByCoatingParams.java | 9 + .../model/MtAloneByCoatingProgress.java | 478 ++++++++++ .../model/MtAloneByCoatingProgressParams.java | 9 + .../model/MtAloneByGoDyeFactory.java | 452 ++++++++++ .../model/MtAloneByGoDyeFactoryParams.java | 9 + .../clothflow/model/MtAloneByLogistics.java | 429 +++++++++ .../model/MtAloneByLogisticsParams.java | 9 + .../clothflow/model/MtAloneByRunCloth.java | 452 ++++++++++ .../model/MtAloneByRunClothParams.java | 9 + .../clothflow/model/MtAloneByTrimming.java | 549 ++++++++++++ .../model/MtAloneByTrimmingParams.java | 9 + .../service/MtAloneByAShelfService.java | 16 + .../service/MtAloneByBakeClothService.java | 16 + .../service/MtAloneByCoatingGlueService.java | 16 + .../MtAloneByCoatingProgressService.java | 16 + .../service/MtAloneByCoatingService.java | 16 + .../service/MtAloneByGoDyeFactoryService.java | 16 + .../service/MtAloneByLogisticsService.java | 16 + .../service/MtAloneByRunClothService.java | 16 + .../service/MtAloneByTrimmingService.java | 16 + .../impl/MtAloneByAShelfServiceImpl.java | 24 + .../impl/MtAloneByBakeClothServiceImpl.java | 26 + .../impl/MtAloneByCoatingGlueServiceImpl.java | 26 + .../MtAloneByCoatingProgressServiceImpl.java | 26 + .../impl/MtAloneByCoatingServiceImpl.java | 26 + .../MtAloneByGoDyeFactoryServiceImpl.java | 25 + .../impl/MtAloneByLogisticsServiceImpl.java | 26 + .../impl/MtAloneByRunClothServiceImpl.java | 26 + .../impl/MtAloneByTrimmingServiceImpl.java | 26 + .../web/MtAloneByAShelfController.java | 94 ++ .../web/MtAloneByBakeClothController.java | 93 ++ .../web/MtAloneByCoatingController.java | 94 ++ .../web/MtAloneByCoatingGlueController.java | 93 ++ .../MtAloneByCoatingProgressController.java | 94 ++ .../web/MtAloneByGoDyeFactoryController.java | 95 ++ .../web/MtAloneByLogisticsController.java | 93 ++ .../web/MtAloneByRunClothController.java | 93 ++ .../web/MtAloneByTrimmingController.java | 94 ++ .../test/java/generator/CodeGenerator.java | 17 +- 71 files changed, 5987 insertions(+), 124 deletions(-) create mode 100644 src/test/java/BillCodeGenerator.java create mode 100644 src/test/java/ParseJSON.java create mode 100644 src/test/java/generator/CodeGenerator.java create mode 100644 src/test/java/generator/CodeGenerator.java.orig create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByAShelfMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByBakeClothMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingGlueMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingProgressMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByGoDyeFactoryMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByLogisticsMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByRunClothMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByTrimmingMapper.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByAShelfMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByBakeClothMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingGlueMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingProgressMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByGoDyeFactoryMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByLogisticsMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByRunClothMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByTrimmingMapper.xml create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByAShelf.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByAShelfParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByBakeCloth.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByBakeClothParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoating.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingGlue.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingGlueParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingProgress.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingProgressParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByGoDyeFactory.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByGoDyeFactoryParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByLogistics.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByLogisticsParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByRunCloth.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByRunClothParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByTrimming.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByTrimmingParams.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByAShelfService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByBakeClothService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingGlueService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingProgressService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByGoDyeFactoryService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByLogisticsService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByRunClothService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByTrimmingService.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByAShelfServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByBakeClothServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingGlueServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingProgressServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByGoDyeFactoryServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByLogisticsServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByRunClothServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByTrimmingServiceImpl.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByAShelfController.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByBakeClothController.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingController.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingGlueController.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingProgressController.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByGoDyeFactoryController.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByLogisticsController.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByRunClothController.java create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByTrimmingController.java diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9748a42..764e2a0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,12 +4,78 @@ - + - - @@ -474,6 +554,11 @@ + + + + + @@ -489,19 +574,52 @@ + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -511,94 +629,4 @@ - - - - - - wms-api:jar - - - - - - - - Spring - - - - - - - - - - - - - - - 1.8 - - - - - - - - wms-produce-manage - - - - - - - - 1.8 - - - - - - - - Maven: com.alibaba:druid-spring-boot-starter:1.1.2 - - - - - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index f06671c..1be1d19 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,19 @@ + + com.deer + wms-project-seed + ${project.version} + + + + com.deer + wms-intercept + ${project.version} + + + org.springframework.boot spring-boot-starter-web @@ -216,6 +229,18 @@ spring-boot-starter-log4j2 1.5.6.RELEASE + + com.deer + wms-project-seed + 1.0.0-SNAPSHOT + test + + + com.deer + wms-produce-manage + 1.0.0-SNAPSHOT + test + diff --git a/src/test/java/BillCodeGenerator.java b/src/test/java/BillCodeGenerator.java new file mode 100644 index 0000000..e37f60c --- /dev/null +++ b/src/test/java/BillCodeGenerator.java @@ -0,0 +1,30 @@ +import com.deer.wms.project.seed.generator.Generator; +import com.deer.wms.project.seed.generator.configurer.DatasourceConfigurer; +import com.deer.wms.project.seed.generator.configurer.Table; + +/** + * Created by Floki on 2017/9/29. + */ +public class BillCodeGenerator { + public static void main(String[] args) { + DatasourceConfigurer configurer = new DatasourceConfigurer(); + //设置数据库连接信息 + configurer.setUrl("jdbc:mysql://47.96.183.77:3306/mt_erp?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false"); + configurer.setUserName("root"); + configurer.setPassword("mt_%wms#_CS_20190430"); + configurer.setDiverClassName("com.mysql.jdbc.Driver"); + + //设置需要生成代码的基础路径,生成的代码都会在该路径下面 + configurer.setBasePackage("com.deer.wms.ware.task"); + configurer.setAuthor("guo"); + + //设置子模块名称(如果要生成子模块的代码,一定要设置该值,否则代码将会生成到父项目中了) + configurer.setModuleName("/wms-ware-task"); + + //设置需要生成的表 + configurer.getTables().add(new Table("mt_alone_product_batch_detect",null,"id","Integer")); + + //生成代码 + Generator.genCode(configurer); + } +} diff --git a/src/test/java/ParseJSON.java b/src/test/java/ParseJSON.java new file mode 100644 index 0000000..2efb1ae --- /dev/null +++ b/src/test/java/ParseJSON.java @@ -0,0 +1,26 @@ + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.serializer.SerializerFeature; +import com.deer.wms.produce.manage.model.*; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; + +import java.util.ArrayList; +import java.util.List; + +/** + * @Author: hy + * @Date: 2019/9/21 16:02 + * @Version 1.0 + */ +public class ParseJSON { + + public static void main(String[] args){ + MaterialsOutgoingLogVo materialsInfo = new MaterialsOutgoingLogVo(); + List l = new ArrayList(); + l.add(materialsInfo); + String s = JSON.toJSONString(l, SerializerFeature.PrettyFormat,SerializerFeature.WriteNullStringAsEmpty,SerializerFeature.WriteNullListAsEmpty,SerializerFeature.WriteNullBooleanAsFalse,SerializerFeature.WriteNullNumberAsZero); + System.out.println(s); + } + +} diff --git a/src/test/java/generator/CodeGenerator.java b/src/test/java/generator/CodeGenerator.java new file mode 100644 index 0000000..69309fa --- /dev/null +++ b/src/test/java/generator/CodeGenerator.java @@ -0,0 +1,42 @@ +package generator; + +import com.deer.wms.project.seed.generator.Generator; +import com.deer.wms.project.seed.generator.configurer.DatasourceConfigurer; +import com.deer.wms.project.seed.generator.configurer.Table; + +/** + * Created by Floki on 2017/9/29. + */ +public class CodeGenerator { + public static void main(String[] args) { + DatasourceConfigurer configurer = new DatasourceConfigurer(); + //璁剧疆鏁版嵁搴撹繛鎺ヤ俊鎭 + configurer.setUrl("jdbc:mysql://47.96.183.77:3306/mt_erp?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false"); + configurer.setUserName("root"); + configurer.setPassword("mt_%wms#_CS_20190430"); + configurer.setDiverClassName("com.mysql.jdbc.Driver"); + + //璁剧疆闇€瑕佺敓鎴愪唬鐮佺殑鍩虹璺緞锛岀敓鎴愮殑浠g爜閮戒細鍦ㄨ璺緞涓嬮潰 + configurer.setBasePackage("com.deer.wms.produce.clothflow"); + configurer.setAuthor(""); + + //璁剧疆瀛愭ā鍧楀悕绉濡傛灉瑕佺敓鎴愬瓙妯″潡鐨勪唬鐮侊紝涓€瀹氳璁剧疆璇ュ€硷紝鍚﹀垯浠g爜灏嗕細鐢熸垚鍒扮埗椤圭洰涓簡) + configurer.setModuleName("/wms-produce-manage"); + + //璁剧疆闇€瑕佺敓鎴愮殑琛 + configurer.getTables().add(new Table("mt_alone_by_run_cloth", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_bake_cloth", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_go_dye_factory", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_a_shelf", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_coating_glue", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_coating", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_coating_progress", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_trimming", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_logistics", null, "id", "Integer")); + + // configurer.getTables().add(new Table("mt_alone_process_methods", null, "id", "Integer")); + + //鐢熸垚浠g爜 + Generator.genCode(configurer); + } +} diff --git a/src/test/java/generator/CodeGenerator.java.orig b/src/test/java/generator/CodeGenerator.java.orig new file mode 100644 index 0000000..9241322 --- /dev/null +++ b/src/test/java/generator/CodeGenerator.java.orig @@ -0,0 +1,38 @@ +package generator; + +import com.deer.wms.project.seed.generator.Generator; +import com.deer.wms.project.seed.generator.configurer.DatasourceConfigurer; +import com.deer.wms.project.seed.generator.configurer.Table; + +/** + * Created by Floki on 2017/9/29. + */ +public class CodeGenerator { + public static void main(String[] args) { + DatasourceConfigurer configurer = new DatasourceConfigurer(); + //设置数据库连接信息 + configurer.setUrl("jdbc:mysql://47.96.183.77:3306/mt_erp?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false"); + configurer.setUserName("root"); + configurer.setPassword("mt_%wms#_CS_20190430"); + configurer.setDiverClassName("com.mysql.jdbc.Driver"); + + //设置需要生成代码的基础路径,生成的代码都会在该路径下面 + configurer.setBasePackage("com.deer.wms.produce.manage"); + configurer.setAuthor(""); + + //设置子模块名称(如果要生成子模块的代码,一定要设置该值,否则代码将会生成到父项目中了) + configurer.setModuleName("/wms-produce-manage"); + + //设置需要生成的表 +<<<<<<< HEAD + configurer.getTables().add(new Table("mt_alone_process_batch_relat", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_product_batch_detect", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_product_batch_detect_det", null, "id", "Integer")); +======= + configurer.getTables().add(new Table("mt_alone_stock_product", null, "id", "Integer")); +>>>>>>> 24c28f381e61494386a251b4c15c5521198b7ae3 + + //生成代码 + Generator.genCode(configurer); + } +} diff --git a/wms-parent.iml b/wms-parent.iml index 14c360c..ba87e1a 100644 --- a/wms-parent.iml +++ b/wms-parent.iml @@ -5,10 +5,16 @@ + + + + + + @@ -89,7 +95,7 @@ - + @@ -98,7 +104,7 @@ - + @@ -152,5 +158,6 @@ + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByAShelfMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByAShelfMapper.java new file mode 100644 index 0000000..87d0f28 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByAShelfMapper.java @@ -0,0 +1,8 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByAShelf; +import com.deer.wms.project.seed.core.mapper.Mapper; + +public interface MtAloneByAShelfMapper extends Mapper { + +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByBakeClothMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByBakeClothMapper.java new file mode 100644 index 0000000..00d23e4 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByBakeClothMapper.java @@ -0,0 +1,6 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.project.seed.core.mapper.Mapper; +public interface MtAloneByBakeClothMapper extends Mapper { +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingGlueMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingGlueMapper.java new file mode 100644 index 0000000..89aff32 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingGlueMapper.java @@ -0,0 +1,6 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingGlue; +import com.deer.wms.project.seed.core.mapper.Mapper; +public interface MtAloneByCoatingGlueMapper extends Mapper { +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingMapper.java new file mode 100644 index 0000000..b766ca6 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingMapper.java @@ -0,0 +1,6 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByCoating; +import com.deer.wms.project.seed.core.mapper.Mapper; +public interface MtAloneByCoatingMapper extends Mapper { +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingProgressMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingProgressMapper.java new file mode 100644 index 0000000..36c87ef --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByCoatingProgressMapper.java @@ -0,0 +1,6 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingProgress; +import com.deer.wms.project.seed.core.mapper.Mapper; +public interface MtAloneByCoatingProgressMapper extends Mapper { +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByGoDyeFactoryMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByGoDyeFactoryMapper.java new file mode 100644 index 0000000..cc2f28f --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByGoDyeFactoryMapper.java @@ -0,0 +1,6 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByGoDyeFactory; +import com.deer.wms.project.seed.core.mapper.Mapper; +public interface MtAloneByGoDyeFactoryMapper extends Mapper { +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByLogisticsMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByLogisticsMapper.java new file mode 100644 index 0000000..1ccce76 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByLogisticsMapper.java @@ -0,0 +1,6 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByLogistics; +import com.deer.wms.project.seed.core.mapper.Mapper; +public interface MtAloneByLogisticsMapper extends Mapper { +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByRunClothMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByRunClothMapper.java new file mode 100644 index 0000000..fb0fd86 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByRunClothMapper.java @@ -0,0 +1,6 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByRunCloth; +import com.deer.wms.project.seed.core.mapper.Mapper; +public interface MtAloneByRunClothMapper extends Mapper { +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByTrimmingMapper.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByTrimmingMapper.java new file mode 100644 index 0000000..cb57019 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/dao/MtAloneByTrimmingMapper.java @@ -0,0 +1,6 @@ +package com.deer.wms.produce.clothflow.dao; + +import com.deer.wms.produce.clothflow.model.MtAloneByTrimming; +import com.deer.wms.project.seed.core.mapper.Mapper; +public interface MtAloneByTrimmingMapper extends Mapper { +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByAShelfMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByAShelfMapper.xml new file mode 100644 index 0000000..c4eaf65 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByAShelfMapper.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByBakeClothMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByBakeClothMapper.xml new file mode 100644 index 0000000..b8cabdb --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByBakeClothMapper.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingGlueMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingGlueMapper.xml new file mode 100644 index 0000000..e127330 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingGlueMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingMapper.xml new file mode 100644 index 0000000..78cbafa --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingMapper.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingProgressMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingProgressMapper.xml new file mode 100644 index 0000000..85560bf --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByCoatingProgressMapper.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByGoDyeFactoryMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByGoDyeFactoryMapper.xml new file mode 100644 index 0000000..5c4a59f --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByGoDyeFactoryMapper.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByLogisticsMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByLogisticsMapper.xml new file mode 100644 index 0000000..965e321 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByLogisticsMapper.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByRunClothMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByRunClothMapper.xml new file mode 100644 index 0000000..4bd0092 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByRunClothMapper.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByTrimmingMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByTrimmingMapper.xml new file mode 100644 index 0000000..ff2cacd --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/mapper/MtAloneByTrimmingMapper.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByAShelf.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByAShelf.java new file mode 100644 index 0000000..4cd7f1a --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByAShelf.java @@ -0,0 +1,190 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_a_shelf") +public class MtAloneByAShelf { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "a_shelf_status") + private Integer aShelfStatus; + + /** + * 绑定公司id + */ + @Column(name = "company_id") + private Integer companyId; + + /** + * A字架编码 + */ + @Column(name = "a_shelf_code") + private String aShelfCode; + + /** + * A字架名称 + */ + @Column(name = "a_shelf_name") + private String aShelfName; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return a_shelf_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getaShelfStatus() { + return aShelfStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param aShelfStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setaShelfStatus(Integer aShelfStatus) { + this.aShelfStatus = aShelfStatus; + } + + /** + * 获取绑定公司id + * + * @return company_id - 绑定公司id + */ + public Integer getCompanyId() { + return companyId; + } + + /** + * 设置绑定公司id + * + * @param companyId 绑定公司id + */ + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * 获取A字架编码 + * + * @return a_shelf_code - A字架编码 + */ + public String getaShelfCode() { + return aShelfCode; + } + + /** + * 设置A字架编码 + * + * @param aShelfCode A字架编码 + */ + public void setaShelfCode(String aShelfCode) { + this.aShelfCode = aShelfCode; + } + + /** + * 获取A字架名称 + * + * @return a_shelf_name - A字架名称 + */ + public String getaShelfName() { + return aShelfName; + } + + /** + * 设置A字架名称 + * + * @param aShelfName A字架名称 + */ + public void setaShelfName(String aShelfName) { + this.aShelfName = aShelfName; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByAShelfParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByAShelfParams.java new file mode 100644 index 0000000..0a9ce29 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByAShelfParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByAShelfParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByBakeCloth.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByBakeCloth.java new file mode 100644 index 0000000..bb20f59 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByBakeCloth.java @@ -0,0 +1,452 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_bake_cloth") +public class MtAloneByBakeCloth { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 操作员id + */ + @Column(name = "operator_id") + private Integer operatorId; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 修改时间 + */ + @Column(name = "update_time") + private Date updateTime; + + /** + * 创建人id + */ + @Column(name = "creator_id") + private Integer creatorId; + + /** + * 更新人id + */ + @Column(name = "updater_id") + private Integer updaterId; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "bake_cloth_status") + private Integer bakeClothStatus; + + /** + * 跑布id,关联产品表:mt_alone_by_product_info + */ + @Column(name = "run_cloth_id") + private Integer runClothId; + + /** + * 当前进度,匹配字典表编码,内容:在染厂 + */ + @Column(name = "curr_progress") + private String currProgress; + + /** + * 加工商id ,管理供应商表:mt_alone_processor + */ + @Column(name = "supplier_id") + private Integer supplierId; + + /** + * 加工商编号,选择获取 + */ + @Column(name = "supplier_code") + private String supplierCode; + + /** + * 计划长度(M) + */ + @Column(name = "plan_length") + private Float planLength; + + /** + * 实际长度(M) + */ + @Column(name = "actual_length") + private Float actualLength; + + /** + * 缩率%,=实际长度/计划长度 *100% + */ + private String shrinkage; + + /** + * 费用(元) + */ + private Float cost; + + /** + * 开始时间 + */ + @Column(name = "begin_time") + private Date beginTime; + + /** + * 结束时间 + */ + @Column(name = "end_time") + private Date endTime; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取操作员id + * + * @return operator_id - 操作员id + */ + public Integer getOperatorId() { + return operatorId; + } + + /** + * 设置操作员id + * + * @param operatorId 操作员id + */ + public void setOperatorId(Integer operatorId) { + this.operatorId = operatorId; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取修改时间 + * + * @return update_time - 修改时间 + */ + public Date getUpdateTime() { + return updateTime; + } + + /** + * 设置修改时间 + * + * @param updateTime 修改时间 + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取创建人id + * + * @return creator_id - 创建人id + */ + public Integer getCreatorId() { + return creatorId; + } + + /** + * 设置创建人id + * + * @param creatorId 创建人id + */ + public void setCreatorId(Integer creatorId) { + this.creatorId = creatorId; + } + + /** + * 获取更新人id + * + * @return updater_id - 更新人id + */ + public Integer getUpdaterId() { + return updaterId; + } + + /** + * 设置更新人id + * + * @param updaterId 更新人id + */ + public void setUpdaterId(Integer updaterId) { + this.updaterId = updaterId; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return bake_cloth_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getBakeClothStatus() { + return bakeClothStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param bakeClothStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setBakeClothStatus(Integer bakeClothStatus) { + this.bakeClothStatus = bakeClothStatus; + } + + /** + * 获取跑布id,关联产品表:mt_alone_by_product_info + * + * @return run_cloth_id - 跑布id,关联产品表:mt_alone_by_product_info + */ + public Integer getRunClothId() { + return runClothId; + } + + /** + * 设置跑布id,关联产品表:mt_alone_by_product_info + * + * @param runClothId 跑布id,关联产品表:mt_alone_by_product_info + */ + public void setRunClothId(Integer runClothId) { + this.runClothId = runClothId; + } + + /** + * 获取当前进度,匹配字典表编码,内容:在染厂 + * + * @return curr_progress - 当前进度,匹配字典表编码,内容:在染厂 + */ + public String getCurrProgress() { + return currProgress; + } + + /** + * 设置当前进度,匹配字典表编码,内容:在染厂 + * + * @param currProgress 当前进度,匹配字典表编码,内容:在染厂 + */ + public void setCurrProgress(String currProgress) { + this.currProgress = currProgress; + } + + /** + * 获取加工商id ,管理供应商表:mt_alone_processor + * + * @return supplier_id - 加工商id ,管理供应商表:mt_alone_processor + */ + public Integer getSupplierId() { + return supplierId; + } + + /** + * 设置加工商id ,管理供应商表:mt_alone_processor + * + * @param supplierId 加工商id ,管理供应商表:mt_alone_processor + */ + public void setSupplierId(Integer supplierId) { + this.supplierId = supplierId; + } + + /** + * 获取加工商编号,选择获取 + * + * @return supplier_code - 加工商编号,选择获取 + */ + public String getSupplierCode() { + return supplierCode; + } + + /** + * 设置加工商编号,选择获取 + * + * @param supplierCode 加工商编号,选择获取 + */ + public void setSupplierCode(String supplierCode) { + this.supplierCode = supplierCode; + } + + /** + * 获取计划长度(M) + * + * @return plan_length - 计划长度(M) + */ + public Float getPlanLength() { + return planLength; + } + + /** + * 设置计划长度(M) + * + * @param planLength 计划长度(M) + */ + public void setPlanLength(Float planLength) { + this.planLength = planLength; + } + + /** + * 获取实际长度(M) + * + * @return actual_length - 实际长度(M) + */ + public Float getActualLength() { + return actualLength; + } + + /** + * 设置实际长度(M) + * + * @param actualLength 实际长度(M) + */ + public void setActualLength(Float actualLength) { + this.actualLength = actualLength; + } + + /** + * 获取缩率%,=实际长度/计划长度 *100% + * + * @return shrinkage - 缩率%,=实际长度/计划长度 *100% + */ + public String getShrinkage() { + return shrinkage; + } + + /** + * 设置缩率%,=实际长度/计划长度 *100% + * + * @param shrinkage 缩率%,=实际长度/计划长度 *100% + */ + public void setShrinkage(String shrinkage) { + this.shrinkage = shrinkage; + } + + /** + * 获取费用(元) + * + * @return cost - 费用(元) + */ + public Float getCost() { + return cost; + } + + /** + * 设置费用(元) + * + * @param cost 费用(元) + */ + public void setCost(Float cost) { + this.cost = cost; + } + + /** + * 获取开始时间 + * + * @return begin_time - 开始时间 + */ + public Date getBeginTime() { + return beginTime; + } + + /** + * 设置开始时间 + * + * @param beginTime 开始时间 + */ + public void setBeginTime(Date beginTime) { + this.beginTime = beginTime; + } + + /** + * 获取结束时间 + * + * @return end_time - 结束时间 + */ + public Date getEndTime() { + return endTime; + } + + /** + * 设置结束时间 + * + * @param endTime 结束时间 + */ + public void setEndTime(Date endTime) { + this.endTime = endTime; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByBakeClothParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByBakeClothParams.java new file mode 100644 index 0000000..bb39908 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByBakeClothParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByBakeClothParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoating.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoating.java new file mode 100644 index 0000000..d2dc31d --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoating.java @@ -0,0 +1,814 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_coating") +public class MtAloneByCoating { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 操作员id + */ + @Column(name = "operator_id") + private Integer operatorId; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 修改时间 + */ + @Column(name = "update_time") + private Date updateTime; + + /** + * 创建人id + */ + @Column(name = "creator_id") + private Integer creatorId; + + /** + * 更新人id + */ + @Column(name = "updater_id") + private Integer updaterId; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "top_glue_ready_status") + private Integer topGlueReadyStatus; + + /** + * 产品id,关联产品表:mt_alone_by_product_info + */ + @Column(name = "product_id") + private Integer productId; + + /** + * A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + @Column(name = "a_shelf_id") + private Integer aShelfId; + + /** + * A字架名称 + */ + @Column(name = "a_shelf_name") + private String aShelfName; + + /** + * 打底胶水id,关联胶水表:mt_alone_by_coating_glue + */ + @Column(name = "base_glue_id") + private Integer baseGlueId; + + /** + * 打底胶水名称 + */ + @Column(name = "base_name") + private String baseName; + + /** + * 打底胶水数量 + */ + @Column(name = "base_num") + private Float baseNum; + + /** + * 面涂胶水id,关联胶水表:mt_alone_by_coating_glue + */ + @Column(name = "top_glue_id") + private Integer topGlueId; + + /** + * 面涂胶水名称 + */ + @Column(name = "top_name") + private String topName; + + /** + * 面涂胶水数量 + */ + @Column(name = "top_num") + private Float topNum; + + /** + * 打底胶水id,关联胶水表:mt_alone_by_coating_glue + */ + @Column(name = "other_glue_id") + private Integer otherGlueId; + + /** + * 其它胶水名称 + */ + @Column(name = "other_name") + private String otherName; + + /** + * 其它胶水数量 + */ + @Column(name = "other_num") + private Float otherNum; + + /** + * 准备时间 + */ + @Column(name = "ready_time") + private Date readyTime; + + /** + * 一刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + @Column(name = "ak_glue_id") + private Integer akGlueId; + + /** + * 一刀胶水名称 + */ + @Column(name = "ak_glue_name") + private String akGlueName; + + /** + * 一刀克重 + */ + @Column(name = "ak_weight") + private Float akWeight; + + /** + * 二刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + @Column(name = "bk_glue_id") + private Integer bkGlueId; + + /** + * 二刀胶水名称 + */ + @Column(name = "bk_glue_name") + private String bkGlueName; + + /** + * 二刀克重 + */ + @Column(name = "bk_weight") + private Float bkWeight; + + /** + * 三刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + @Column(name = "ck_glue_id") + private Integer ckGlueId; + + /** + * 三刀胶水名称 + */ + @Column(name = "ck_glue_name") + private String ckGlueName; + + /** + * 三刀克重 + */ + @Column(name = "ck_weight") + private Float ckWeight; + + /** + * 四刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + @Column(name = "dk_glue_id") + private Integer dkGlueId; + + /** + * 四刀胶水名称 + */ + @Column(name = "dk_glue_name") + private String dkGlueName; + + /** + * 四刀克重 + */ + @Column(name = "dk_weight") + private Float dkWeight; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取操作员id + * + * @return operator_id - 操作员id + */ + public Integer getOperatorId() { + return operatorId; + } + + /** + * 设置操作员id + * + * @param operatorId 操作员id + */ + public void setOperatorId(Integer operatorId) { + this.operatorId = operatorId; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取修改时间 + * + * @return update_time - 修改时间 + */ + public Date getUpdateTime() { + return updateTime; + } + + /** + * 设置修改时间 + * + * @param updateTime 修改时间 + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取创建人id + * + * @return creator_id - 创建人id + */ + public Integer getCreatorId() { + return creatorId; + } + + /** + * 设置创建人id + * + * @param creatorId 创建人id + */ + public void setCreatorId(Integer creatorId) { + this.creatorId = creatorId; + } + + /** + * 获取更新人id + * + * @return updater_id - 更新人id + */ + public Integer getUpdaterId() { + return updaterId; + } + + /** + * 设置更新人id + * + * @param updaterId 更新人id + */ + public void setUpdaterId(Integer updaterId) { + this.updaterId = updaterId; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return top_glue_ready_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getTopGlueReadyStatus() { + return topGlueReadyStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param topGlueReadyStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setTopGlueReadyStatus(Integer topGlueReadyStatus) { + this.topGlueReadyStatus = topGlueReadyStatus; + } + + /** + * 获取产品id,关联产品表:mt_alone_by_product_info + * + * @return product_id - 产品id,关联产品表:mt_alone_by_product_info + */ + public Integer getProductId() { + return productId; + } + + /** + * 设置产品id,关联产品表:mt_alone_by_product_info + * + * @param productId 产品id,关联产品表:mt_alone_by_product_info + */ + public void setProductId(Integer productId) { + this.productId = productId; + } + + /** + * 获取A字架id,关联基础A字架表:mt_alone_by_a_shelf + * + * @return a_shelf_id - A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + public Integer getaShelfId() { + return aShelfId; + } + + /** + * 设置A字架id,关联基础A字架表:mt_alone_by_a_shelf + * + * @param aShelfId A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + public void setaShelfId(Integer aShelfId) { + this.aShelfId = aShelfId; + } + + /** + * 获取A字架名称 + * + * @return a_shelf_name - A字架名称 + */ + public String getaShelfName() { + return aShelfName; + } + + /** + * 设置A字架名称 + * + * @param aShelfName A字架名称 + */ + public void setaShelfName(String aShelfName) { + this.aShelfName = aShelfName; + } + + /** + * 获取打底胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @return base_glue_id - 打底胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public Integer getBaseGlueId() { + return baseGlueId; + } + + /** + * 设置打底胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @param baseGlueId 打底胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public void setBaseGlueId(Integer baseGlueId) { + this.baseGlueId = baseGlueId; + } + + /** + * 获取打底胶水名称 + * + * @return base_name - 打底胶水名称 + */ + public String getBaseName() { + return baseName; + } + + /** + * 设置打底胶水名称 + * + * @param baseName 打底胶水名称 + */ + public void setBaseName(String baseName) { + this.baseName = baseName; + } + + /** + * 获取打底胶水数量 + * + * @return base_num - 打底胶水数量 + */ + public Float getBaseNum() { + return baseNum; + } + + /** + * 设置打底胶水数量 + * + * @param baseNum 打底胶水数量 + */ + public void setBaseNum(Float baseNum) { + this.baseNum = baseNum; + } + + /** + * 获取面涂胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @return top_glue_id - 面涂胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public Integer getTopGlueId() { + return topGlueId; + } + + /** + * 设置面涂胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @param topGlueId 面涂胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public void setTopGlueId(Integer topGlueId) { + this.topGlueId = topGlueId; + } + + /** + * 获取面涂胶水名称 + * + * @return top_name - 面涂胶水名称 + */ + public String getTopName() { + return topName; + } + + /** + * 设置面涂胶水名称 + * + * @param topName 面涂胶水名称 + */ + public void setTopName(String topName) { + this.topName = topName; + } + + /** + * 获取面涂胶水数量 + * + * @return top_num - 面涂胶水数量 + */ + public Float getTopNum() { + return topNum; + } + + /** + * 设置面涂胶水数量 + * + * @param topNum 面涂胶水数量 + */ + public void setTopNum(Float topNum) { + this.topNum = topNum; + } + + /** + * 获取打底胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @return other_glue_id - 打底胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public Integer getOtherGlueId() { + return otherGlueId; + } + + /** + * 设置打底胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @param otherGlueId 打底胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public void setOtherGlueId(Integer otherGlueId) { + this.otherGlueId = otherGlueId; + } + + /** + * 获取其它胶水名称 + * + * @return other_name - 其它胶水名称 + */ + public String getOtherName() { + return otherName; + } + + /** + * 设置其它胶水名称 + * + * @param otherName 其它胶水名称 + */ + public void setOtherName(String otherName) { + this.otherName = otherName; + } + + /** + * 获取其它胶水数量 + * + * @return other_num - 其它胶水数量 + */ + public Float getOtherNum() { + return otherNum; + } + + /** + * 设置其它胶水数量 + * + * @param otherNum 其它胶水数量 + */ + public void setOtherNum(Float otherNum) { + this.otherNum = otherNum; + } + + /** + * 获取准备时间 + * + * @return ready_time - 准备时间 + */ + public Date getReadyTime() { + return readyTime; + } + + /** + * 设置准备时间 + * + * @param readyTime 准备时间 + */ + public void setReadyTime(Date readyTime) { + this.readyTime = readyTime; + } + + /** + * 获取一刀胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @return ak_glue_id - 一刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public Integer getAkGlueId() { + return akGlueId; + } + + /** + * 设置一刀胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @param akGlueId 一刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public void setAkGlueId(Integer akGlueId) { + this.akGlueId = akGlueId; + } + + /** + * 获取一刀胶水名称 + * + * @return ak_glue_name - 一刀胶水名称 + */ + public String getAkGlueName() { + return akGlueName; + } + + /** + * 设置一刀胶水名称 + * + * @param akGlueName 一刀胶水名称 + */ + public void setAkGlueName(String akGlueName) { + this.akGlueName = akGlueName; + } + + /** + * 获取一刀克重 + * + * @return ak_weight - 一刀克重 + */ + public Float getAkWeight() { + return akWeight; + } + + /** + * 设置一刀克重 + * + * @param akWeight 一刀克重 + */ + public void setAkWeight(Float akWeight) { + this.akWeight = akWeight; + } + + /** + * 获取二刀胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @return bk_glue_id - 二刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public Integer getBkGlueId() { + return bkGlueId; + } + + /** + * 设置二刀胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @param bkGlueId 二刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public void setBkGlueId(Integer bkGlueId) { + this.bkGlueId = bkGlueId; + } + + /** + * 获取二刀胶水名称 + * + * @return bk_glue_name - 二刀胶水名称 + */ + public String getBkGlueName() { + return bkGlueName; + } + + /** + * 设置二刀胶水名称 + * + * @param bkGlueName 二刀胶水名称 + */ + public void setBkGlueName(String bkGlueName) { + this.bkGlueName = bkGlueName; + } + + /** + * 获取二刀克重 + * + * @return bk_weight - 二刀克重 + */ + public Float getBkWeight() { + return bkWeight; + } + + /** + * 设置二刀克重 + * + * @param bkWeight 二刀克重 + */ + public void setBkWeight(Float bkWeight) { + this.bkWeight = bkWeight; + } + + /** + * 获取三刀胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @return ck_glue_id - 三刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public Integer getCkGlueId() { + return ckGlueId; + } + + /** + * 设置三刀胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @param ckGlueId 三刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public void setCkGlueId(Integer ckGlueId) { + this.ckGlueId = ckGlueId; + } + + /** + * 获取三刀胶水名称 + * + * @return ck_glue_name - 三刀胶水名称 + */ + public String getCkGlueName() { + return ckGlueName; + } + + /** + * 设置三刀胶水名称 + * + * @param ckGlueName 三刀胶水名称 + */ + public void setCkGlueName(String ckGlueName) { + this.ckGlueName = ckGlueName; + } + + /** + * 获取三刀克重 + * + * @return ck_weight - 三刀克重 + */ + public Float getCkWeight() { + return ckWeight; + } + + /** + * 设置三刀克重 + * + * @param ckWeight 三刀克重 + */ + public void setCkWeight(Float ckWeight) { + this.ckWeight = ckWeight; + } + + /** + * 获取四刀胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @return dk_glue_id - 四刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public Integer getDkGlueId() { + return dkGlueId; + } + + /** + * 设置四刀胶水id,关联胶水表:mt_alone_by_coating_glue + * + * @param dkGlueId 四刀胶水id,关联胶水表:mt_alone_by_coating_glue + */ + public void setDkGlueId(Integer dkGlueId) { + this.dkGlueId = dkGlueId; + } + + /** + * 获取四刀胶水名称 + * + * @return dk_glue_name - 四刀胶水名称 + */ + public String getDkGlueName() { + return dkGlueName; + } + + /** + * 设置四刀胶水名称 + * + * @param dkGlueName 四刀胶水名称 + */ + public void setDkGlueName(String dkGlueName) { + this.dkGlueName = dkGlueName; + } + + /** + * 获取四刀克重 + * + * @return dk_weight - 四刀克重 + */ + public Float getDkWeight() { + return dkWeight; + } + + /** + * 设置四刀克重 + * + * @param dkWeight 四刀克重 + */ + public void setDkWeight(Float dkWeight) { + this.dkWeight = dkWeight; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingGlue.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingGlue.java new file mode 100644 index 0000000..b895f54 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingGlue.java @@ -0,0 +1,236 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_coating_glue") +public class MtAloneByCoatingGlue { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "gule_status") + private Integer guleStatus; + + /** + * 胶水类型,数字字典code,内容:打底胶水,面涂胶水,其它胶水 + */ + @Column(name = "glue_types") + private String glueTypes; + + /** + * 胶水名称 + */ + @Column(name = "glue_name") + private String glueName; + + /** + * 胶水code + */ + @Column(name = "glue_code") + private String glueCode; + + /** + * 单位 + */ + private String unit; + + /** + * 规格 + */ + private String spec; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return gule_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getGuleStatus() { + return guleStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param guleStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setGuleStatus(Integer guleStatus) { + this.guleStatus = guleStatus; + } + + /** + * 获取胶水类型,数字字典code,内容:打底胶水,面涂胶水,其它胶水 + * + * @return glue_types - 胶水类型,数字字典code,内容:打底胶水,面涂胶水,其它胶水 + */ + public String getGlueTypes() { + return glueTypes; + } + + /** + * 设置胶水类型,数字字典code,内容:打底胶水,面涂胶水,其它胶水 + * + * @param glueTypes 胶水类型,数字字典code,内容:打底胶水,面涂胶水,其它胶水 + */ + public void setGlueTypes(String glueTypes) { + this.glueTypes = glueTypes; + } + + /** + * 获取胶水名称 + * + * @return glue_name - 胶水名称 + */ + public String getGlueName() { + return glueName; + } + + /** + * 设置胶水名称 + * + * @param glueName 胶水名称 + */ + public void setGlueName(String glueName) { + this.glueName = glueName; + } + + /** + * 获取胶水code + * + * @return glue_code - 胶水code + */ + public String getGlueCode() { + return glueCode; + } + + /** + * 设置胶水code + * + * @param glueCode 胶水code + */ + public void setGlueCode(String glueCode) { + this.glueCode = glueCode; + } + + /** + * 获取单位 + * + * @return unit - 单位 + */ + public String getUnit() { + return unit; + } + + /** + * 设置单位 + * + * @param unit 单位 + */ + public void setUnit(String unit) { + this.unit = unit; + } + + /** + * 获取规格 + * + * @return spec - 规格 + */ + public String getSpec() { + return spec; + } + + /** + * 设置规格 + * + * @param spec 规格 + */ + public void setSpec(String spec) { + this.spec = spec; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingGlueParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingGlueParams.java new file mode 100644 index 0000000..8634878 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingGlueParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByCoatingGlueParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingParams.java new file mode 100644 index 0000000..201cd1e --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByCoatingParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingProgress.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingProgress.java new file mode 100644 index 0000000..f277a51 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingProgress.java @@ -0,0 +1,478 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_coating_progress") +public class MtAloneByCoatingProgress { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 操作员id + */ + @Column(name = "operator_id") + private Integer operatorId; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 修改时间 + */ + @Column(name = "update_time") + private Date updateTime; + + /** + * 创建人id + */ + @Column(name = "creator_id") + private Integer creatorId; + + /** + * 更新人id + */ + @Column(name = "updater_id") + private Integer updaterId; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "coating_progress_status") + private Integer coatingProgressStatus; + + /** + * 产品id,关联产品表:mt_alone_by_product_info + */ + @Column(name = "product_id") + private Integer productId; + + /** + * A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + @Column(name = "a_shelf_id") + private Integer aShelfId; + + /** + * A字架名称 + */ + @Column(name = "a_shelf_name") + private String aShelfName; + + /** + * 基材门幅 + */ + @Column(name = "sub_width") + private Float subWidth; + + /** + * 实切门幅 + */ + @Column(name = "actual_width") + private Float actualWidth; + + /** + * 门幅比(%) + */ + @Column(name = "width_prop") + private Float widthProp; + + /** + * 基材米数(M) + */ + @Column(name = "sub_meters") + private Float subMeters; + + /** + * 实际米数(M) + */ + @Column(name = "actual_meters") + private Float actualMeters; + + /** + * 完成米数(M) + */ + @Column(name = "completed_meters") + private Float completedMeters; + + /** + * 完成比(%) + */ + @Column(name = "completed_prop") + private Float completedProp; + + /** + * 完成时间 + */ + @Column(name = "completed_time") + private Date completedTime; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取操作员id + * + * @return operator_id - 操作员id + */ + public Integer getOperatorId() { + return operatorId; + } + + /** + * 设置操作员id + * + * @param operatorId 操作员id + */ + public void setOperatorId(Integer operatorId) { + this.operatorId = operatorId; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取修改时间 + * + * @return update_time - 修改时间 + */ + public Date getUpdateTime() { + return updateTime; + } + + /** + * 设置修改时间 + * + * @param updateTime 修改时间 + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取创建人id + * + * @return creator_id - 创建人id + */ + public Integer getCreatorId() { + return creatorId; + } + + /** + * 设置创建人id + * + * @param creatorId 创建人id + */ + public void setCreatorId(Integer creatorId) { + this.creatorId = creatorId; + } + + /** + * 获取更新人id + * + * @return updater_id - 更新人id + */ + public Integer getUpdaterId() { + return updaterId; + } + + /** + * 设置更新人id + * + * @param updaterId 更新人id + */ + public void setUpdaterId(Integer updaterId) { + this.updaterId = updaterId; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return coating_progress_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getCoatingProgressStatus() { + return coatingProgressStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param coatingProgressStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setCoatingProgressStatus(Integer coatingProgressStatus) { + this.coatingProgressStatus = coatingProgressStatus; + } + + /** + * 获取产品id,关联产品表:mt_alone_by_product_info + * + * @return product_id - 产品id,关联产品表:mt_alone_by_product_info + */ + public Integer getProductId() { + return productId; + } + + /** + * 设置产品id,关联产品表:mt_alone_by_product_info + * + * @param productId 产品id,关联产品表:mt_alone_by_product_info + */ + public void setProductId(Integer productId) { + this.productId = productId; + } + + /** + * 获取A字架id,关联基础A字架表:mt_alone_by_a_shelf + * + * @return a_shelf_id - A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + public Integer getaShelfId() { + return aShelfId; + } + + /** + * 设置A字架id,关联基础A字架表:mt_alone_by_a_shelf + * + * @param aShelfId A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + public void setaShelfId(Integer aShelfId) { + this.aShelfId = aShelfId; + } + + /** + * 获取A字架名称 + * + * @return a_shelf_name - A字架名称 + */ + public String getaShelfName() { + return aShelfName; + } + + /** + * 设置A字架名称 + * + * @param aShelfName A字架名称 + */ + public void setaShelfName(String aShelfName) { + this.aShelfName = aShelfName; + } + + /** + * 获取基材门幅 + * + * @return sub_width - 基材门幅 + */ + public Float getSubWidth() { + return subWidth; + } + + /** + * 设置基材门幅 + * + * @param subWidth 基材门幅 + */ + public void setSubWidth(Float subWidth) { + this.subWidth = subWidth; + } + + /** + * 获取实切门幅 + * + * @return actual_width - 实切门幅 + */ + public Float getActualWidth() { + return actualWidth; + } + + /** + * 设置实切门幅 + * + * @param actualWidth 实切门幅 + */ + public void setActualWidth(Float actualWidth) { + this.actualWidth = actualWidth; + } + + /** + * 获取门幅比(%) + * + * @return width_prop - 门幅比(%) + */ + public Float getWidthProp() { + return widthProp; + } + + /** + * 设置门幅比(%) + * + * @param widthProp 门幅比(%) + */ + public void setWidthProp(Float widthProp) { + this.widthProp = widthProp; + } + + /** + * 获取基材米数(M) + * + * @return sub_meters - 基材米数(M) + */ + public Float getSubMeters() { + return subMeters; + } + + /** + * 设置基材米数(M) + * + * @param subMeters 基材米数(M) + */ + public void setSubMeters(Float subMeters) { + this.subMeters = subMeters; + } + + /** + * 获取实际米数(M) + * + * @return actual_meters - 实际米数(M) + */ + public Float getActualMeters() { + return actualMeters; + } + + /** + * 设置实际米数(M) + * + * @param actualMeters 实际米数(M) + */ + public void setActualMeters(Float actualMeters) { + this.actualMeters = actualMeters; + } + + /** + * 获取完成米数(M) + * + * @return completed_meters - 完成米数(M) + */ + public Float getCompletedMeters() { + return completedMeters; + } + + /** + * 设置完成米数(M) + * + * @param completedMeters 完成米数(M) + */ + public void setCompletedMeters(Float completedMeters) { + this.completedMeters = completedMeters; + } + + /** + * 获取完成比(%) + * + * @return completed_prop - 完成比(%) + */ + public Float getCompletedProp() { + return completedProp; + } + + /** + * 设置完成比(%) + * + * @param completedProp 完成比(%) + */ + public void setCompletedProp(Float completedProp) { + this.completedProp = completedProp; + } + + /** + * 获取完成时间 + * + * @return completed_time - 完成时间 + */ + public Date getCompletedTime() { + return completedTime; + } + + /** + * 设置完成时间 + * + * @param completedTime 完成时间 + */ + public void setCompletedTime(Date completedTime) { + this.completedTime = completedTime; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingProgressParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingProgressParams.java new file mode 100644 index 0000000..ea4ca70 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByCoatingProgressParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByCoatingProgressParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByGoDyeFactory.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByGoDyeFactory.java new file mode 100644 index 0000000..dadcb68 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByGoDyeFactory.java @@ -0,0 +1,452 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_go_dye_factory") +public class MtAloneByGoDyeFactory { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 操作员id + */ + @Column(name = "operator_id") + private Integer operatorId; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 修改时间 + */ + @Column(name = "update_time") + private Date updateTime; + + /** + * 创建人id + */ + @Column(name = "creator_id") + private Integer creatorId; + + /** + * 更新人id + */ + @Column(name = "updater_id") + private Integer updaterId; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "go_dye_factory_status") + private Integer goDyeFactoryStatus; + + /** + * 绑定公司id + */ + @Column(name = "company_id") + private Integer companyId; + + /** + * 产品id,关联产品表:mt_alone_by_product_info + */ + @Column(name = "product_id") + private Integer productId; + + /** + * 加工商id ,管理供应商表:mt_alone_processor + */ + @Column(name = "supplier_id") + private Integer supplierId; + + /** + * 加工商编号,选择获取 + */ + @Column(name = "supplier_code") + private String supplierCode; + + /** + * 去染厂时间 + */ + @Column(name = "go_time") + private Date goTime; + + /** + * 染厂结束时间 + */ + @Column(name = "end_time") + private Date endTime; + + /** + * 计划长度(M) + */ + @Column(name = "plan_length") + private Float planLength; + + /** + * 实际长度(M) + */ + @Column(name = "actual_length") + private Float actualLength; + + /** + * 缩率%,=实际长度/计划长度 *100% + */ + private String shrinkage; + + /** + * 费用(元) + */ + private Float cost; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取操作员id + * + * @return operator_id - 操作员id + */ + public Integer getOperatorId() { + return operatorId; + } + + /** + * 设置操作员id + * + * @param operatorId 操作员id + */ + public void setOperatorId(Integer operatorId) { + this.operatorId = operatorId; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取修改时间 + * + * @return update_time - 修改时间 + */ + public Date getUpdateTime() { + return updateTime; + } + + /** + * 设置修改时间 + * + * @param updateTime 修改时间 + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取创建人id + * + * @return creator_id - 创建人id + */ + public Integer getCreatorId() { + return creatorId; + } + + /** + * 设置创建人id + * + * @param creatorId 创建人id + */ + public void setCreatorId(Integer creatorId) { + this.creatorId = creatorId; + } + + /** + * 获取更新人id + * + * @return updater_id - 更新人id + */ + public Integer getUpdaterId() { + return updaterId; + } + + /** + * 设置更新人id + * + * @param updaterId 更新人id + */ + public void setUpdaterId(Integer updaterId) { + this.updaterId = updaterId; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return go_dye_factory_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getGoDyeFactoryStatus() { + return goDyeFactoryStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param goDyeFactoryStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setGoDyeFactoryStatus(Integer goDyeFactoryStatus) { + this.goDyeFactoryStatus = goDyeFactoryStatus; + } + + /** + * 获取绑定公司id + * + * @return company_id - 绑定公司id + */ + public Integer getCompanyId() { + return companyId; + } + + /** + * 设置绑定公司id + * + * @param companyId 绑定公司id + */ + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * 获取产品id,关联产品表:mt_alone_by_product_info + * + * @return product_id - 产品id,关联产品表:mt_alone_by_product_info + */ + public Integer getProductId() { + return productId; + } + + /** + * 设置产品id,关联产品表:mt_alone_by_product_info + * + * @param productId 产品id,关联产品表:mt_alone_by_product_info + */ + public void setProductId(Integer productId) { + this.productId = productId; + } + + /** + * 获取加工商id ,管理供应商表:mt_alone_processor + * + * @return supplier_id - 加工商id ,管理供应商表:mt_alone_processor + */ + public Integer getSupplierId() { + return supplierId; + } + + /** + * 设置加工商id ,管理供应商表:mt_alone_processor + * + * @param supplierId 加工商id ,管理供应商表:mt_alone_processor + */ + public void setSupplierId(Integer supplierId) { + this.supplierId = supplierId; + } + + /** + * 获取加工商编号,选择获取 + * + * @return supplier_code - 加工商编号,选择获取 + */ + public String getSupplierCode() { + return supplierCode; + } + + /** + * 设置加工商编号,选择获取 + * + * @param supplierCode 加工商编号,选择获取 + */ + public void setSupplierCode(String supplierCode) { + this.supplierCode = supplierCode; + } + + /** + * 获取去染厂时间 + * + * @return go_time - 去染厂时间 + */ + public Date getGoTime() { + return goTime; + } + + /** + * 设置去染厂时间 + * + * @param goTime 去染厂时间 + */ + public void setGoTime(Date goTime) { + this.goTime = goTime; + } + + /** + * 获取染厂结束时间 + * + * @return end_time - 染厂结束时间 + */ + public Date getEndTime() { + return endTime; + } + + /** + * 设置染厂结束时间 + * + * @param endTime 染厂结束时间 + */ + public void setEndTime(Date endTime) { + this.endTime = endTime; + } + + /** + * 获取计划长度(M) + * + * @return plan_length - 计划长度(M) + */ + public Float getPlanLength() { + return planLength; + } + + /** + * 设置计划长度(M) + * + * @param planLength 计划长度(M) + */ + public void setPlanLength(Float planLength) { + this.planLength = planLength; + } + + /** + * 获取实际长度(M) + * + * @return actual_length - 实际长度(M) + */ + public Float getActualLength() { + return actualLength; + } + + /** + * 设置实际长度(M) + * + * @param actualLength 实际长度(M) + */ + public void setActualLength(Float actualLength) { + this.actualLength = actualLength; + } + + /** + * 获取缩率%,=实际长度/计划长度 *100% + * + * @return shrinkage - 缩率%,=实际长度/计划长度 *100% + */ + public String getShrinkage() { + return shrinkage; + } + + /** + * 设置缩率%,=实际长度/计划长度 *100% + * + * @param shrinkage 缩率%,=实际长度/计划长度 *100% + */ + public void setShrinkage(String shrinkage) { + this.shrinkage = shrinkage; + } + + /** + * 获取费用(元) + * + * @return cost - 费用(元) + */ + public Float getCost() { + return cost; + } + + /** + * 设置费用(元) + * + * @param cost 费用(元) + */ + public void setCost(Float cost) { + this.cost = cost; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByGoDyeFactoryParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByGoDyeFactoryParams.java new file mode 100644 index 0000000..db8c483 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByGoDyeFactoryParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByGoDyeFactoryParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByLogistics.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByLogistics.java new file mode 100644 index 0000000..92e0e2c --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByLogistics.java @@ -0,0 +1,429 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_logistics") +public class MtAloneByLogistics { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 操作员id + */ + @Column(name = "operator_id") + private Integer operatorId; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 创建人id + */ + @Column(name = "creator_id") + private Integer creatorId; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "logistics_det_status") + private Integer logisticsDetStatus; + + /** + * 物流id,关联产品表:mt_alone_by_product_info + */ + @Column(name = "logistics_id") + private Integer logisticsId; + + /** + * 装箱时间 + */ + @Column(name = "boxing_time") + private Date boxingTime; + + /** + * 进仓时间 + */ + @Column(name = "in_ware_time") + private Date inWareTime; + + /** + * 出仓时间 + */ + @Column(name = "out_ware_time") + private Date outWareTime; + + /** + * 出仓卷数 + */ + @Column(name = "out_ware_rolls") + private Integer outWareRolls; + + /** + * 出仓数量(M) + */ + @Column(name = "out_ware_num") + private Float outWareNum; + + /** + * 物流公司 + */ + @Column(name = "logistics_com") + private String logisticsCom; + + /** + * 物流费用(元) + */ + private Float cost; + + /** + * 发货时间 + */ + @Column(name = "ship_time") + private Date shipTime; + + /** + * 收货人 + */ + @Column(name = "receipt_peo") + private String receiptPeo; + + /** + * 收货时间 + */ + @Column(name = "receipt_time") + private Date receiptTime; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取操作员id + * + * @return operator_id - 操作员id + */ + public Integer getOperatorId() { + return operatorId; + } + + /** + * 设置操作员id + * + * @param operatorId 操作员id + */ + public void setOperatorId(Integer operatorId) { + this.operatorId = operatorId; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取创建人id + * + * @return creator_id - 创建人id + */ + public Integer getCreatorId() { + return creatorId; + } + + /** + * 设置创建人id + * + * @param creatorId 创建人id + */ + public void setCreatorId(Integer creatorId) { + this.creatorId = creatorId; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return logistics_det_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getLogisticsDetStatus() { + return logisticsDetStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param logisticsDetStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setLogisticsDetStatus(Integer logisticsDetStatus) { + this.logisticsDetStatus = logisticsDetStatus; + } + + /** + * 获取物流id,关联产品表:mt_alone_by_product_info + * + * @return logistics_id - 物流id,关联产品表:mt_alone_by_product_info + */ + public Integer getLogisticsId() { + return logisticsId; + } + + /** + * 设置物流id,关联产品表:mt_alone_by_product_info + * + * @param logisticsId 物流id,关联产品表:mt_alone_by_product_info + */ + public void setLogisticsId(Integer logisticsId) { + this.logisticsId = logisticsId; + } + + /** + * 获取装箱时间 + * + * @return boxing_time - 装箱时间 + */ + public Date getBoxingTime() { + return boxingTime; + } + + /** + * 设置装箱时间 + * + * @param boxingTime 装箱时间 + */ + public void setBoxingTime(Date boxingTime) { + this.boxingTime = boxingTime; + } + + /** + * 获取进仓时间 + * + * @return in_ware_time - 进仓时间 + */ + public Date getInWareTime() { + return inWareTime; + } + + /** + * 设置进仓时间 + * + * @param inWareTime 进仓时间 + */ + public void setInWareTime(Date inWareTime) { + this.inWareTime = inWareTime; + } + + /** + * 获取出仓时间 + * + * @return out_ware_time - 出仓时间 + */ + public Date getOutWareTime() { + return outWareTime; + } + + /** + * 设置出仓时间 + * + * @param outWareTime 出仓时间 + */ + public void setOutWareTime(Date outWareTime) { + this.outWareTime = outWareTime; + } + + /** + * 获取出仓卷数 + * + * @return out_ware_rolls - 出仓卷数 + */ + public Integer getOutWareRolls() { + return outWareRolls; + } + + /** + * 设置出仓卷数 + * + * @param outWareRolls 出仓卷数 + */ + public void setOutWareRolls(Integer outWareRolls) { + this.outWareRolls = outWareRolls; + } + + /** + * 获取出仓数量(M) + * + * @return out_ware_num - 出仓数量(M) + */ + public Float getOutWareNum() { + return outWareNum; + } + + /** + * 设置出仓数量(M) + * + * @param outWareNum 出仓数量(M) + */ + public void setOutWareNum(Float outWareNum) { + this.outWareNum = outWareNum; + } + + /** + * 获取物流公司 + * + * @return logistics_com - 物流公司 + */ + public String getLogisticsCom() { + return logisticsCom; + } + + /** + * 设置物流公司 + * + * @param logisticsCom 物流公司 + */ + public void setLogisticsCom(String logisticsCom) { + this.logisticsCom = logisticsCom; + } + + /** + * 获取物流费用(元) + * + * @return cost - 物流费用(元) + */ + public Float getCost() { + return cost; + } + + /** + * 设置物流费用(元) + * + * @param cost 物流费用(元) + */ + public void setCost(Float cost) { + this.cost = cost; + } + + /** + * 获取发货时间 + * + * @return ship_time - 发货时间 + */ + public Date getShipTime() { + return shipTime; + } + + /** + * 设置发货时间 + * + * @param shipTime 发货时间 + */ + public void setShipTime(Date shipTime) { + this.shipTime = shipTime; + } + + /** + * 获取收货人 + * + * @return receipt_peo - 收货人 + */ + public String getReceiptPeo() { + return receiptPeo; + } + + /** + * 设置收货人 + * + * @param receiptPeo 收货人 + */ + public void setReceiptPeo(String receiptPeo) { + this.receiptPeo = receiptPeo; + } + + /** + * 获取收货时间 + * + * @return receipt_time - 收货时间 + */ + public Date getReceiptTime() { + return receiptTime; + } + + /** + * 设置收货时间 + * + * @param receiptTime 收货时间 + */ + public void setReceiptTime(Date receiptTime) { + this.receiptTime = receiptTime; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByLogisticsParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByLogisticsParams.java new file mode 100644 index 0000000..f4cab5d --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByLogisticsParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByLogisticsParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByRunCloth.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByRunCloth.java new file mode 100644 index 0000000..9d6c4d9 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByRunCloth.java @@ -0,0 +1,452 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_run_cloth") +public class MtAloneByRunCloth { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 操作员id + */ + @Column(name = "operator_id") + private Integer operatorId; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 修改时间 + */ + @Column(name = "update_time") + private Date updateTime; + + /** + * 创建人id + */ + @Column(name = "creator_id") + private Integer creatorId; + + /** + * 更新人id + */ + @Column(name = "updater_id") + private Integer updaterId; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "run_cloth_status") + private Integer runClothStatus; + + /** + * 跑布id,关联产品表:mt_alone_by_product_info + */ + @Column(name = "run_cloth_id") + private Integer runClothId; + + /** + * 当前进度,匹配字典表编码,内容:重新织,在染厂 + */ + @Column(name = "curr_progress") + private String currProgress; + + /** + * 加工商id ,管理供应商表:mt_alone_processor + */ + @Column(name = "supplier_id") + private Integer supplierId; + + /** + * 加工商编号,选择获取 + */ + @Column(name = "supplier_code") + private String supplierCode; + + /** + * 计划长度(M) + */ + @Column(name = "plan_length") + private Float planLength; + + /** + * 实际长度(M) + */ + @Column(name = "actual_length") + private Float actualLength; + + /** + * 缩率%,=实际长度/计划长度 *100% + */ + private String shrinkage; + + /** + * 费用(元) + */ + private Float cost; + + /** + * 开始时间 + */ + @Column(name = "begin_time") + private Date beginTime; + + /** + * 结束时间 + */ + @Column(name = "end_time") + private Date endTime; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取操作员id + * + * @return operator_id - 操作员id + */ + public Integer getOperatorId() { + return operatorId; + } + + /** + * 设置操作员id + * + * @param operatorId 操作员id + */ + public void setOperatorId(Integer operatorId) { + this.operatorId = operatorId; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取修改时间 + * + * @return update_time - 修改时间 + */ + public Date getUpdateTime() { + return updateTime; + } + + /** + * 设置修改时间 + * + * @param updateTime 修改时间 + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取创建人id + * + * @return creator_id - 创建人id + */ + public Integer getCreatorId() { + return creatorId; + } + + /** + * 设置创建人id + * + * @param creatorId 创建人id + */ + public void setCreatorId(Integer creatorId) { + this.creatorId = creatorId; + } + + /** + * 获取更新人id + * + * @return updater_id - 更新人id + */ + public Integer getUpdaterId() { + return updaterId; + } + + /** + * 设置更新人id + * + * @param updaterId 更新人id + */ + public void setUpdaterId(Integer updaterId) { + this.updaterId = updaterId; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return run_cloth_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getRunClothStatus() { + return runClothStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param runClothStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setRunClothStatus(Integer runClothStatus) { + this.runClothStatus = runClothStatus; + } + + /** + * 获取跑布id,关联产品表:mt_alone_by_product_info + * + * @return run_cloth_id - 跑布id,关联产品表:mt_alone_by_product_info + */ + public Integer getRunClothId() { + return runClothId; + } + + /** + * 设置跑布id,关联产品表:mt_alone_by_product_info + * + * @param runClothId 跑布id,关联产品表:mt_alone_by_product_info + */ + public void setRunClothId(Integer runClothId) { + this.runClothId = runClothId; + } + + /** + * 获取当前进度,匹配字典表编码,内容:重新织,在染厂 + * + * @return curr_progress - 当前进度,匹配字典表编码,内容:重新织,在染厂 + */ + public String getCurrProgress() { + return currProgress; + } + + /** + * 设置当前进度,匹配字典表编码,内容:重新织,在染厂 + * + * @param currProgress 当前进度,匹配字典表编码,内容:重新织,在染厂 + */ + public void setCurrProgress(String currProgress) { + this.currProgress = currProgress; + } + + /** + * 获取加工商id ,管理供应商表:mt_alone_processor + * + * @return supplier_id - 加工商id ,管理供应商表:mt_alone_processor + */ + public Integer getSupplierId() { + return supplierId; + } + + /** + * 设置加工商id ,管理供应商表:mt_alone_processor + * + * @param supplierId 加工商id ,管理供应商表:mt_alone_processor + */ + public void setSupplierId(Integer supplierId) { + this.supplierId = supplierId; + } + + /** + * 获取加工商编号,选择获取 + * + * @return supplier_code - 加工商编号,选择获取 + */ + public String getSupplierCode() { + return supplierCode; + } + + /** + * 设置加工商编号,选择获取 + * + * @param supplierCode 加工商编号,选择获取 + */ + public void setSupplierCode(String supplierCode) { + this.supplierCode = supplierCode; + } + + /** + * 获取计划长度(M) + * + * @return plan_length - 计划长度(M) + */ + public Float getPlanLength() { + return planLength; + } + + /** + * 设置计划长度(M) + * + * @param planLength 计划长度(M) + */ + public void setPlanLength(Float planLength) { + this.planLength = planLength; + } + + /** + * 获取实际长度(M) + * + * @return actual_length - 实际长度(M) + */ + public Float getActualLength() { + return actualLength; + } + + /** + * 设置实际长度(M) + * + * @param actualLength 实际长度(M) + */ + public void setActualLength(Float actualLength) { + this.actualLength = actualLength; + } + + /** + * 获取缩率%,=实际长度/计划长度 *100% + * + * @return shrinkage - 缩率%,=实际长度/计划长度 *100% + */ + public String getShrinkage() { + return shrinkage; + } + + /** + * 设置缩率%,=实际长度/计划长度 *100% + * + * @param shrinkage 缩率%,=实际长度/计划长度 *100% + */ + public void setShrinkage(String shrinkage) { + this.shrinkage = shrinkage; + } + + /** + * 获取费用(元) + * + * @return cost - 费用(元) + */ + public Float getCost() { + return cost; + } + + /** + * 设置费用(元) + * + * @param cost 费用(元) + */ + public void setCost(Float cost) { + this.cost = cost; + } + + /** + * 获取开始时间 + * + * @return begin_time - 开始时间 + */ + public Date getBeginTime() { + return beginTime; + } + + /** + * 设置开始时间 + * + * @param beginTime 开始时间 + */ + public void setBeginTime(Date beginTime) { + this.beginTime = beginTime; + } + + /** + * 获取结束时间 + * + * @return end_time - 结束时间 + */ + public Date getEndTime() { + return endTime; + } + + /** + * 设置结束时间 + * + * @param endTime 结束时间 + */ + public void setEndTime(Date endTime) { + this.endTime = endTime; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByRunClothParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByRunClothParams.java new file mode 100644 index 0000000..6343386 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByRunClothParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByRunClothParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByTrimming.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByTrimming.java new file mode 100644 index 0000000..7be0ad5 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByTrimming.java @@ -0,0 +1,549 @@ +package com.deer.wms.produce.clothflow.model; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "mt_alone_by_trimming") +public class MtAloneByTrimming { + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + /** + * 操作员id + */ + @Column(name = "operator_id") + private Integer operatorId; + + /** + * 添加时间 + */ + @Column(name = "create_time") + private Date createTime; + + /** + * 修改时间 + */ + @Column(name = "update_time") + private Date updateTime; + + /** + * 创建人id + */ + @Column(name = "creator_id") + private Integer creatorId; + + /** + * 更新人id + */ + @Column(name = "updater_id") + private Integer updaterId; + + /** + * 版本号 默认为 1 + */ + private String version; + + /** + * 状态 0处理中,1处理完成,2逻辑删除 + */ + @Column(name = "trimming_status") + private Integer trimmingStatus; + + /** + * 产品id,关联产品表:mt_alone_by_product_info + */ + @Column(name = "product_id") + private Integer productId; + + /** + * A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + @Column(name = "a_shelf_id") + private Integer aShelfId; + + /** + * A字架名称 + */ + @Column(name = "a_shelf_name") + private String aShelfName; + + /** + * 型号 + */ + private String model; + + /** + * 切边规格 0可接受零卷,1定长 + */ + @Column(name = "trim_spec") + private Integer trimSpec; + + /** + * 卷长范围 + */ + @Column(name = "trimming_range") + private String trimmingRange; + + /** + * 包装方式 ,可多选中间用逗号分隔 0蛇皮袋|1纸筒,2纸盒,3托盘,4大纸箱,5珍珠棉,6干燥剂,7其他 + */ + @Column(name = "packing_method") + private String packingMethod; + + /** + * 纸管类型,可以多选,中间用逗号分隔,0:2英寸,1:3英寸,2:6英寸 + */ + @Column(name = "paper_tube_type") + private String paperTubeType; + + /** + * 单卷米数 + */ + @Column(name = "rice_per_roll") + private Float ricePerRoll; + + /** + * 卷数 + */ + @Column(name = "num_rolls") + private Integer numRolls; + + /** + * 总米数 + */ + @Column(name = "total_meters") + private Float totalMeters; + + /** + * 已切米数 + */ + @Column(name = "cut_meters") + private Float cutMeters; + + /** + * 已切比(%) + */ + @Column(name = "cut_prop") + private Float cutProp; + + /** + * 完成时间 + */ + @Column(name = "completed_time") + private Date completedTime; + + /** + * 备注 + */ + private String note; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取操作员id + * + * @return operator_id - 操作员id + */ + public Integer getOperatorId() { + return operatorId; + } + + /** + * 设置操作员id + * + * @param operatorId 操作员id + */ + public void setOperatorId(Integer operatorId) { + this.operatorId = operatorId; + } + + /** + * 获取添加时间 + * + * @return create_time - 添加时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置添加时间 + * + * @param createTime 添加时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取修改时间 + * + * @return update_time - 修改时间 + */ + public Date getUpdateTime() { + return updateTime; + } + + /** + * 设置修改时间 + * + * @param updateTime 修改时间 + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取创建人id + * + * @return creator_id - 创建人id + */ + public Integer getCreatorId() { + return creatorId; + } + + /** + * 设置创建人id + * + * @param creatorId 创建人id + */ + public void setCreatorId(Integer creatorId) { + this.creatorId = creatorId; + } + + /** + * 获取更新人id + * + * @return updater_id - 更新人id + */ + public Integer getUpdaterId() { + return updaterId; + } + + /** + * 设置更新人id + * + * @param updaterId 更新人id + */ + public void setUpdaterId(Integer updaterId) { + this.updaterId = updaterId; + } + + /** + * 获取版本号 默认为 1 + * + * @return version - 版本号 默认为 1 + */ + public String getVersion() { + return version; + } + + /** + * 设置版本号 默认为 1 + * + * @param version 版本号 默认为 1 + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * 获取状态 0处理中,1处理完成,2逻辑删除 + * + * @return trimming_status - 状态 0处理中,1处理完成,2逻辑删除 + */ + public Integer getTrimmingStatus() { + return trimmingStatus; + } + + /** + * 设置状态 0处理中,1处理完成,2逻辑删除 + * + * @param trimmingStatus 状态 0处理中,1处理完成,2逻辑删除 + */ + public void setTrimmingStatus(Integer trimmingStatus) { + this.trimmingStatus = trimmingStatus; + } + + /** + * 获取产品id,关联产品表:mt_alone_by_product_info + * + * @return product_id - 产品id,关联产品表:mt_alone_by_product_info + */ + public Integer getProductId() { + return productId; + } + + /** + * 设置产品id,关联产品表:mt_alone_by_product_info + * + * @param productId 产品id,关联产品表:mt_alone_by_product_info + */ + public void setProductId(Integer productId) { + this.productId = productId; + } + + /** + * 获取A字架id,关联基础A字架表:mt_alone_by_a_shelf + * + * @return a_shelf_id - A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + public Integer getaShelfId() { + return aShelfId; + } + + /** + * 设置A字架id,关联基础A字架表:mt_alone_by_a_shelf + * + * @param aShelfId A字架id,关联基础A字架表:mt_alone_by_a_shelf + */ + public void setaShelfId(Integer aShelfId) { + this.aShelfId = aShelfId; + } + + /** + * 获取A字架名称 + * + * @return a_shelf_name - A字架名称 + */ + public String getaShelfName() { + return aShelfName; + } + + /** + * 设置A字架名称 + * + * @param aShelfName A字架名称 + */ + public void setaShelfName(String aShelfName) { + this.aShelfName = aShelfName; + } + + /** + * 获取型号 + * + * @return model - 型号 + */ + public String getModel() { + return model; + } + + /** + * 设置型号 + * + * @param model 型号 + */ + public void setModel(String model) { + this.model = model; + } + + /** + * 获取切边规格 0可接受零卷,1定长 + * + * @return trim_spec - 切边规格 0可接受零卷,1定长 + */ + public Integer getTrimSpec() { + return trimSpec; + } + + /** + * 设置切边规格 0可接受零卷,1定长 + * + * @param trimSpec 切边规格 0可接受零卷,1定长 + */ + public void setTrimSpec(Integer trimSpec) { + this.trimSpec = trimSpec; + } + + /** + * 获取卷长范围 + * + * @return trimming_range - 卷长范围 + */ + public String getTrimmingRange() { + return trimmingRange; + } + + /** + * 设置卷长范围 + * + * @param trimmingRange 卷长范围 + */ + public void setTrimmingRange(String trimmingRange) { + this.trimmingRange = trimmingRange; + } + + /** + * 获取包装方式 ,可多选中间用逗号分隔 0蛇皮袋|1纸筒,2纸盒,3托盘,4大纸箱,5珍珠棉,6干燥剂,7其他 + * + * @return packing_method - 包装方式 ,可多选中间用逗号分隔 0蛇皮袋|1纸筒,2纸盒,3托盘,4大纸箱,5珍珠棉,6干燥剂,7其他 + */ + public String getPackingMethod() { + return packingMethod; + } + + /** + * 设置包装方式 ,可多选中间用逗号分隔 0蛇皮袋|1纸筒,2纸盒,3托盘,4大纸箱,5珍珠棉,6干燥剂,7其他 + * + * @param packingMethod 包装方式 ,可多选中间用逗号分隔 0蛇皮袋|1纸筒,2纸盒,3托盘,4大纸箱,5珍珠棉,6干燥剂,7其他 + */ + public void setPackingMethod(String packingMethod) { + this.packingMethod = packingMethod; + } + + /** + * 获取纸管类型,可以多选,中间用逗号分隔,0:2英寸,1:3英寸,2:6英寸 + * + * @return paper_tube_type - 纸管类型,可以多选,中间用逗号分隔,0:2英寸,1:3英寸,2:6英寸 + */ + public String getPaperTubeType() { + return paperTubeType; + } + + /** + * 设置纸管类型,可以多选,中间用逗号分隔,0:2英寸,1:3英寸,2:6英寸 + * + * @param paperTubeType 纸管类型,可以多选,中间用逗号分隔,0:2英寸,1:3英寸,2:6英寸 + */ + public void setPaperTubeType(String paperTubeType) { + this.paperTubeType = paperTubeType; + } + + /** + * 获取单卷米数 + * + * @return rice_per_roll - 单卷米数 + */ + public Float getRicePerRoll() { + return ricePerRoll; + } + + /** + * 设置单卷米数 + * + * @param ricePerRoll 单卷米数 + */ + public void setRicePerRoll(Float ricePerRoll) { + this.ricePerRoll = ricePerRoll; + } + + /** + * 获取卷数 + * + * @return num_rolls - 卷数 + */ + public Integer getNumRolls() { + return numRolls; + } + + /** + * 设置卷数 + * + * @param numRolls 卷数 + */ + public void setNumRolls(Integer numRolls) { + this.numRolls = numRolls; + } + + /** + * 获取总米数 + * + * @return total_meters - 总米数 + */ + public Float getTotalMeters() { + return totalMeters; + } + + /** + * 设置总米数 + * + * @param totalMeters 总米数 + */ + public void setTotalMeters(Float totalMeters) { + this.totalMeters = totalMeters; + } + + /** + * 获取已切米数 + * + * @return cut_meters - 已切米数 + */ + public Float getCutMeters() { + return cutMeters; + } + + /** + * 设置已切米数 + * + * @param cutMeters 已切米数 + */ + public void setCutMeters(Float cutMeters) { + this.cutMeters = cutMeters; + } + + /** + * 获取已切比(%) + * + * @return cut_prop - 已切比(%) + */ + public Float getCutProp() { + return cutProp; + } + + /** + * 设置已切比(%) + * + * @param cutProp 已切比(%) + */ + public void setCutProp(Float cutProp) { + this.cutProp = cutProp; + } + + /** + * 获取完成时间 + * + * @return completed_time - 完成时间 + */ + public Date getCompletedTime() { + return completedTime; + } + + /** + * 设置完成时间 + * + * @param completedTime 完成时间 + */ + public void setCompletedTime(Date completedTime) { + this.completedTime = completedTime; + } + + /** + * 获取备注 + * + * @return note - 备注 + */ + public String getNote() { + return note; + } + + /** + * 设置备注 + * + * @param note 备注 + */ + public void setNote(String note) { + this.note = note; + } +} \ No newline at end of file diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByTrimmingParams.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByTrimmingParams.java new file mode 100644 index 0000000..aae7188 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/model/MtAloneByTrimmingParams.java @@ -0,0 +1,9 @@ +package com.deer.wms.produce.clothflow.model; + +import com.deer.wms.project.seed.core.service.QueryParams; + +/** +* Created by on 2020/08/18. +*/ +public class MtAloneByTrimmingParams extends QueryParams { +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByAShelfService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByAShelfService.java new file mode 100644 index 0000000..ad2dc16 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByAShelfService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByAShelf; +import com.deer.wms.produce.clothflow.model.MtAloneByAShelfParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByAShelfService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByBakeClothService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByBakeClothService.java new file mode 100644 index 0000000..401c9b3 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByBakeClothService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.produce.clothflow.model.MtAloneByBakeClothParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByBakeClothService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingGlueService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingGlueService.java new file mode 100644 index 0000000..162e6e6 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingGlueService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingGlue; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingGlueParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByCoatingGlueService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingProgressService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingProgressService.java new file mode 100644 index 0000000..8bb0eec --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingProgressService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingProgress; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingProgressParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByCoatingProgressService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingService.java new file mode 100644 index 0000000..267a20f --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByCoatingService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByCoating; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByCoatingService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByGoDyeFactoryService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByGoDyeFactoryService.java new file mode 100644 index 0000000..91b84cf --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByGoDyeFactoryService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByGoDyeFactory; +import com.deer.wms.produce.clothflow.model.MtAloneByGoDyeFactoryParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByGoDyeFactoryService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByLogisticsService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByLogisticsService.java new file mode 100644 index 0000000..6f4870b --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByLogisticsService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByLogistics; +import com.deer.wms.produce.clothflow.model.MtAloneByLogisticsParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByLogisticsService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByRunClothService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByRunClothService.java new file mode 100644 index 0000000..cc78c91 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByRunClothService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByRunCloth; +import com.deer.wms.produce.clothflow.model.MtAloneByRunClothParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByRunClothService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByTrimmingService.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByTrimmingService.java new file mode 100644 index 0000000..2280cdf --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/MtAloneByTrimmingService.java @@ -0,0 +1,16 @@ +package com.deer.wms.produce.clothflow.service; + +import com.deer.wms.produce.clothflow.model.MtAloneByTrimming; +import com.deer.wms.produce.clothflow.model.MtAloneByTrimmingParams; + +import com.deer.wms.project.seed.core.service.Service; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +public interface MtAloneByTrimmingService extends Service { + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByAShelfServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByAShelfServiceImpl.java new file mode 100644 index 0000000..819b0e1 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByAShelfServiceImpl.java @@ -0,0 +1,24 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByAShelfMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByAShelf; +import com.deer.wms.produce.clothflow.model.MtAloneByAShelfParams; +import com.deer.wms.produce.clothflow.service.MtAloneByAShelfService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByAShelfServiceImpl extends AbstractService implements MtAloneByAShelfService { + + @Autowired + private MtAloneByAShelfMapper mtAloneByAShelfMapper; + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByBakeClothServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByBakeClothServiceImpl.java new file mode 100644 index 0000000..2e79a2a --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByBakeClothServiceImpl.java @@ -0,0 +1,26 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByBakeClothMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.produce.clothflow.model.MtAloneByBakeClothParams; +import com.deer.wms.produce.clothflow.service.MtAloneByBakeClothService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByBakeClothServiceImpl extends AbstractService implements MtAloneByBakeClothService { + + @Autowired + private MtAloneByBakeClothMapper mtAloneByBakeClothMapper; + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingGlueServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingGlueServiceImpl.java new file mode 100644 index 0000000..97ebc1d --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingGlueServiceImpl.java @@ -0,0 +1,26 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByCoatingGlueMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingGlue; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingGlueParams; +import com.deer.wms.produce.clothflow.service.MtAloneByCoatingGlueService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByCoatingGlueServiceImpl extends AbstractService implements MtAloneByCoatingGlueService { + + @Autowired + private MtAloneByCoatingGlueMapper mtAloneByCoatingGlueMapper; + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingProgressServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingProgressServiceImpl.java new file mode 100644 index 0000000..a31a1c3 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingProgressServiceImpl.java @@ -0,0 +1,26 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByCoatingProgressMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingProgress; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingProgressParams; +import com.deer.wms.produce.clothflow.service.MtAloneByCoatingProgressService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByCoatingProgressServiceImpl extends AbstractService implements MtAloneByCoatingProgressService { + + @Autowired + private MtAloneByCoatingProgressMapper mtAloneByCoatingProgressMapper; + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingServiceImpl.java new file mode 100644 index 0000000..dccb226 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByCoatingServiceImpl.java @@ -0,0 +1,26 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByCoatingMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByCoating; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingParams; +import com.deer.wms.produce.clothflow.service.MtAloneByCoatingService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByCoatingServiceImpl extends AbstractService implements MtAloneByCoatingService { + + @Autowired + private MtAloneByCoatingMapper mtAloneByCoatingMapper; + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByGoDyeFactoryServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByGoDyeFactoryServiceImpl.java new file mode 100644 index 0000000..56fa4c3 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByGoDyeFactoryServiceImpl.java @@ -0,0 +1,25 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByGoDyeFactoryMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByGoDyeFactory; +import com.deer.wms.produce.clothflow.model.MtAloneByGoDyeFactoryParams; +import com.deer.wms.produce.clothflow.service.MtAloneByGoDyeFactoryService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByGoDyeFactoryServiceImpl extends AbstractService implements MtAloneByGoDyeFactoryService { + + @Autowired + private MtAloneByGoDyeFactoryMapper mtAloneByGoDyeFactoryMapper; + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByLogisticsServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByLogisticsServiceImpl.java new file mode 100644 index 0000000..be02fce --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByLogisticsServiceImpl.java @@ -0,0 +1,26 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByLogisticsMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByLogistics; +import com.deer.wms.produce.clothflow.model.MtAloneByLogisticsParams; +import com.deer.wms.produce.clothflow.service.MtAloneByLogisticsService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByLogisticsServiceImpl extends AbstractService implements MtAloneByLogisticsService { + + @Autowired + private MtAloneByLogisticsMapper mtAloneByLogisticsMapper; + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByRunClothServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByRunClothServiceImpl.java new file mode 100644 index 0000000..9aeb256 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByRunClothServiceImpl.java @@ -0,0 +1,26 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByRunClothMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByRunCloth; +import com.deer.wms.produce.clothflow.model.MtAloneByRunClothParams; +import com.deer.wms.produce.clothflow.service.MtAloneByRunClothService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByRunClothServiceImpl extends AbstractService implements MtAloneByRunClothService { + + @Autowired + private MtAloneByRunClothMapper mtAloneByRunClothMapper; + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByTrimmingServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByTrimmingServiceImpl.java new file mode 100644 index 0000000..9f31ee0 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/service/impl/MtAloneByTrimmingServiceImpl.java @@ -0,0 +1,26 @@ +package com.deer.wms.produce.clothflow.service.impl; + +import com.deer.wms.produce.clothflow.dao.MtAloneByTrimmingMapper; +import com.deer.wms.produce.clothflow.model.MtAloneByTrimming; +import com.deer.wms.produce.clothflow.model.MtAloneByTrimmingParams; +import com.deer.wms.produce.clothflow.service.MtAloneByTrimmingService; + +import com.deer.wms.project.seed.core.service.AbstractService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import java.util.List; + +/** + * Created by on 2020/08/18. + */ +@Service +@Transactional +public class MtAloneByTrimmingServiceImpl extends AbstractService implements MtAloneByTrimmingService { + + @Autowired + private MtAloneByTrimmingMapper mtAloneByTrimmingMapper; + + + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByAShelfController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByAShelfController.java new file mode 100644 index 0000000..83d1e38 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByAShelfController.java @@ -0,0 +1,94 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByAShelf; +import com.deer.wms.produce.clothflow.model.MtAloneByAShelfParams; +import com.deer.wms.produce.clothflow.service.MtAloneByAShelfService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import tk.mybatis.mapper.entity.Condition; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/a/shelfs") +public class MtAloneByAShelfController { + + @Autowired + private MtAloneByAShelfService mtAloneByAShelfService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByAShelf mtAloneByAShelf, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByAShelf.setCreateTime(new Date()); + mtAloneByAShelf.setCompanyId(currentUser.getCompanyId()); + mtAloneByAShelfService.save(mtAloneByAShelf); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByAShelfService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByAShelf mtAloneByAShelf) { + mtAloneByAShelfService.update(mtAloneByAShelf); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByAShelf mtAloneByAShelf = mtAloneByAShelfService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByAShelf); + } + + @GetMapping("/list") + public Result list(MtAloneByAShelfParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByAShelfService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByBakeClothController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByBakeClothController.java new file mode 100644 index 0000000..e9f4aad --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByBakeClothController.java @@ -0,0 +1,93 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.produce.clothflow.model.MtAloneByBakeClothParams; +import com.deer.wms.produce.clothflow.service.MtAloneByBakeClothService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/bake/cloths") +public class MtAloneByBakeClothController { + + @Autowired + private MtAloneByBakeClothService mtAloneByBakeClothService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByBakeCloth mtAloneByBakeCloth, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByBakeCloth.setCreateTime(new Date()); + mtAloneByBakeClothService.save(mtAloneByBakeCloth); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByBakeClothService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByBakeCloth mtAloneByBakeCloth) { + mtAloneByBakeCloth.setUpdateTime(new Date()); + mtAloneByBakeClothService.update(mtAloneByBakeCloth); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByBakeCloth mtAloneByBakeCloth = mtAloneByBakeClothService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByBakeCloth); + } + + @GetMapping("/list") + public Result list(MtAloneByBakeClothParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByBakeClothService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingController.java new file mode 100644 index 0000000..6d23e3f --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingController.java @@ -0,0 +1,94 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByCoating; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingParams; +import com.deer.wms.produce.clothflow.service.MtAloneByCoatingService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/coatings") +public class MtAloneByCoatingController { + + @Autowired + private MtAloneByCoatingService mtAloneByCoatingService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByCoating mtAloneByCoating, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByCoating.setCreateTime(new Date()); + mtAloneByCoatingService.save(mtAloneByCoating); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByCoatingService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByCoating mtAloneByCoating) { + mtAloneByCoating.setUpdateTime(new Date()); + mtAloneByCoatingService.update(mtAloneByCoating); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByCoating mtAloneByCoating = mtAloneByCoatingService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByCoating); + } + + @GetMapping("/list") + public Result list(MtAloneByCoatingParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByCoatingService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingGlueController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingGlueController.java new file mode 100644 index 0000000..44cccfd --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingGlueController.java @@ -0,0 +1,93 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingGlue; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingGlueParams; +import com.deer.wms.produce.clothflow.service.MtAloneByCoatingGlueService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/coating/glues") +public class MtAloneByCoatingGlueController { + + @Autowired + private MtAloneByCoatingGlueService mtAloneByCoatingGlueService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByCoatingGlue mtAloneByCoatingGlue, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByCoatingGlue.setCreateTime(new Date()); + mtAloneByCoatingGlueService.save(mtAloneByCoatingGlue); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByCoatingGlueService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByCoatingGlue mtAloneByCoatingGlue) { + mtAloneByCoatingGlueService.update(mtAloneByCoatingGlue); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByCoatingGlue mtAloneByCoatingGlue = mtAloneByCoatingGlueService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByCoatingGlue); + } + + @GetMapping("/list") + public Result list(MtAloneByCoatingGlueParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByCoatingGlueService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingProgressController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingProgressController.java new file mode 100644 index 0000000..fb3a814 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByCoatingProgressController.java @@ -0,0 +1,94 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingProgress; +import com.deer.wms.produce.clothflow.model.MtAloneByCoatingProgressParams; +import com.deer.wms.produce.clothflow.service.MtAloneByCoatingProgressService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/coating/progresss") +public class MtAloneByCoatingProgressController { + + @Autowired + private MtAloneByCoatingProgressService mtAloneByCoatingProgressService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByCoatingProgress mtAloneByCoatingProgress, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByCoatingProgress.setCreateTime(new Date()); + mtAloneByCoatingProgressService.save(mtAloneByCoatingProgress); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByCoatingProgressService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByCoatingProgress mtAloneByCoatingProgress) { + mtAloneByCoatingProgress.setUpdateTime(new Date()); + mtAloneByCoatingProgressService.update(mtAloneByCoatingProgress); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByCoatingProgress mtAloneByCoatingProgress = mtAloneByCoatingProgressService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByCoatingProgress); + } + + @GetMapping("/list") + public Result list(MtAloneByCoatingProgressParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByCoatingProgressService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByGoDyeFactoryController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByGoDyeFactoryController.java new file mode 100644 index 0000000..ddaa2a9 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByGoDyeFactoryController.java @@ -0,0 +1,95 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByGoDyeFactory; +import com.deer.wms.produce.clothflow.model.MtAloneByGoDyeFactoryParams; +import com.deer.wms.produce.clothflow.service.MtAloneByGoDyeFactoryService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/go/dye/factorys") +public class MtAloneByGoDyeFactoryController { + + @Autowired + private MtAloneByGoDyeFactoryService mtAloneByGoDyeFactoryService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByGoDyeFactory mtAloneByGoDyeFactory, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByGoDyeFactory.setCreateTime(new Date()); + mtAloneByGoDyeFactory.setCompanyId(currentUser.getCompanyId()); + mtAloneByGoDyeFactoryService.save(mtAloneByGoDyeFactory); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByGoDyeFactoryService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByGoDyeFactory mtAloneByGoDyeFactory) { + mtAloneByGoDyeFactory.setUpdateTime(new Date()); + mtAloneByGoDyeFactoryService.update(mtAloneByGoDyeFactory); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByGoDyeFactory mtAloneByGoDyeFactory = mtAloneByGoDyeFactoryService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByGoDyeFactory); + } + + @GetMapping("/list") + public Result list(MtAloneByGoDyeFactoryParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByGoDyeFactoryService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByLogisticsController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByLogisticsController.java new file mode 100644 index 0000000..8c5e101 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByLogisticsController.java @@ -0,0 +1,93 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.produce.clothflow.model.MtAloneByBakeCloth; +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByLogistics; +import com.deer.wms.produce.clothflow.model.MtAloneByLogisticsParams; +import com.deer.wms.produce.clothflow.service.MtAloneByLogisticsService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/logisticss") +public class MtAloneByLogisticsController { + + @Autowired + private MtAloneByLogisticsService mtAloneByLogisticsService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByLogistics mtAloneByLogistics, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByLogistics.setCreateTime(new Date()); + mtAloneByLogisticsService.save(mtAloneByLogistics); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByLogisticsService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByLogistics mtAloneByLogistics) { + mtAloneByLogisticsService.update(mtAloneByLogistics); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByLogistics mtAloneByLogistics = mtAloneByLogisticsService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByLogistics); + } + + @GetMapping("/list") + public Result list(MtAloneByLogisticsParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByLogisticsService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByRunClothController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByRunClothController.java new file mode 100644 index 0000000..3133ba5 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByRunClothController.java @@ -0,0 +1,93 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByRunCloth; +import com.deer.wms.produce.clothflow.model.MtAloneByRunClothParams; +import com.deer.wms.produce.clothflow.service.MtAloneByRunClothService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/run/cloths") +public class MtAloneByRunClothController { + + @Autowired + private MtAloneByRunClothService mtAloneByRunClothService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByRunCloth mtAloneByRunCloth, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByRunCloth.setCreateTime(new Date()); + mtAloneByRunClothService.save(mtAloneByRunCloth); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByRunClothService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByRunCloth mtAloneByRunCloth) { + mtAloneByRunCloth.setUpdateTime(new Date()); + mtAloneByRunClothService.update(mtAloneByRunCloth); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByRunCloth mtAloneByRunCloth = mtAloneByRunClothService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByRunCloth); + } + + @GetMapping("/list") + public Result list(MtAloneByRunClothParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByRunClothService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByTrimmingController.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByTrimmingController.java new file mode 100644 index 0000000..27d4c96 --- /dev/null +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/clothflow/web/MtAloneByTrimmingController.java @@ -0,0 +1,94 @@ +package com.deer.wms.produce.clothflow.web; + +import com.deer.wms.produce.clothflow.model.MtAloneByRunCloth; +import com.deer.wms.project.seed.annotation.OperateLog; +import com.deer.wms.project.seed.constant.SystemManageConstant; +import com.deer.wms.project.seed.core.result.CommonCode; +import com.deer.wms.project.seed.core.result.Result; +import com.deer.wms.project.seed.core.result.ResultGenerator; +import com.deer.wms.produce.clothflow.model.MtAloneByTrimming; +import com.deer.wms.produce.clothflow.model.MtAloneByTrimmingParams; +import com.deer.wms.produce.clothflow.service.MtAloneByTrimmingService; +import com.deer.wms.intercept.annotation.User; +import com.deer.wms.intercept.common.data.CurrentUser; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + + +/** +* Created by on 2020/08/18. +*/ +@Api(description = "xxx接口") +@RestController +@RequestMapping("/mt/alone/by/trimmings") +public class MtAloneByTrimmingController { + + @Autowired + private MtAloneByTrimmingService mtAloneByTrimmingService; + + @OperateLog(description = "添加xxx", type = "增加") + @ApiOperation(value = "添加xxx", notes = "添加xxx") + @PostMapping("/add") + public Result add(@RequestBody MtAloneByTrimming mtAloneByTrimming, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + mtAloneByTrimming.setCreateTime(new Date()); + mtAloneByTrimmingService.save(mtAloneByTrimming); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "删除xxx", type = "删除") + @ApiOperation(value = "删除xxx", notes = "删除xxx") + @DeleteMapping("/delete/{id}") + public Result delete(@PathVariable Integer Id) { + mtAloneByTrimmingService.deleteById(Id); + return ResultGenerator.genSuccessResult(); + } + + @OperateLog(description = "修改xxx", type = "更新") + @ApiOperation(value = "修改xxx", notes = "修改xxx") + @PostMapping("/update") + public Result update(@RequestBody MtAloneByTrimming mtAloneByTrimming) { + mtAloneByTrimming.setUpdateTime(new Date()); + mtAloneByTrimmingService.update(mtAloneByTrimming); + return ResultGenerator.genSuccessResult(); + } + + @GetMapping("/detail/{id}") + public Result detail(@PathVariable Integer id) { + MtAloneByTrimming mtAloneByTrimming = mtAloneByTrimmingService.findById(id); + return ResultGenerator.genSuccessResult(mtAloneByTrimming); + } + + @GetMapping("/list") + public Result list(MtAloneByTrimmingParams params, @ApiIgnore @User CurrentUser currentUser) { + if(currentUser==null){ + return ResultGenerator.genFailResult(CommonCode.SERVICE_ERROR,"未登录错误",null ); + } + + if (currentUser.getCompanyType() != SystemManageConstant.COMPANY_TYPE_MT){ + params.setCompanyId(currentUser.getCompanyId()); + }else{ + params.setCompanyId(null); + } + PageHelper.startPage(params.getPageNum(), params.getPageSize()); + //List list = mtAloneByTrimmingService.findList(params); + List list = new ArrayList<>(); + PageInfo pageInfo = new PageInfo(list); + return ResultGenerator.genSuccessResult(pageInfo); + } + +} diff --git a/wms-produce-manage/src/test/java/generator/CodeGenerator.java b/wms-produce-manage/src/test/java/generator/CodeGenerator.java index 5979415..5508f7a 100644 --- a/wms-produce-manage/src/test/java/generator/CodeGenerator.java +++ b/wms-produce-manage/src/test/java/generator/CodeGenerator.java @@ -17,15 +17,24 @@ public class CodeGenerator { configurer.setDiverClassName("com.mysql.jdbc.Driver"); //璁剧疆闇€瑕佺敓鎴愪唬鐮佺殑鍩虹璺緞锛岀敓鎴愮殑浠g爜閮戒細鍦ㄨ璺緞涓嬮潰 - configurer.setBasePackage("com.deer.wms.produce.manage"); + configurer.setBasePackage("com.deer.wms.produce.clothflow"); configurer.setAuthor(""); //璁剧疆瀛愭ā鍧楀悕绉濡傛灉瑕佺敓鎴愬瓙妯″潡鐨勪唬鐮侊紝涓€瀹氳璁剧疆璇ュ€硷紝鍚﹀垯浠g爜灏嗕細鐢熸垚鍒扮埗椤圭洰涓簡) - configurer.setModuleName("/wms-produce-manage"); + //configurer.setModuleName("/wms-produce-manage"); //璁剧疆闇€瑕佺敓鎴愮殑琛 - configurer.getTables().add(new Table("mt_stock_provendor", null, "id", "Integer")); -// configurer.getTables().add(new Table("mt_alone_process_methods", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_run_cloth", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_bake_cloth", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_go_dye_factory", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_a_shelf", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_coating_glue", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_coating", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_coating_progress", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_trimming", null, "id", "Integer")); + configurer.getTables().add(new Table("mt_alone_by_logistics", null, "id", "Integer")); + + // configurer.getTables().add(new Table("mt_alone_process_methods", null, "id", "Integer")); //鐢熸垚浠g爜 Generator.genCode(configurer); From a0d7ec0ed431c60ac76ebeca3192b129fdeda753 Mon Sep 17 00:00:00 2001 From: CaiXiang <939387484@qq.com> Date: Tue, 18 Aug 2020 10:27:19 +0800 Subject: [PATCH 2/7] mark --- .idea/workspace.xml | 88 ++++------------------ src/test/java/generator/CodeGenerator.java | 13 +--- 2 files changed, 18 insertions(+), 83 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 764e2a0..36d346c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,77 +5,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -591,10 +529,10 @@ - + - + @@ -624,6 +562,10 @@ + + + + - + + + + + + + + + + + + + + + + + + + + + @@ -529,10 +556,10 @@ - + - + @@ -542,30 +569,30 @@ - + - - + + - - + + - - + + - + - + - + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index be5c7d6..ad5265b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,29 +3,22 @@ + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - + - - - - - - - - - + @@ -502,6 +493,7 @@ + 1597716938734 @@ -517,7 +509,14 @@ - @@ -530,11 +529,12 @@ - - @@ -549,15 +549,15 @@ - + - + - - + + - + @@ -583,10 +583,15 @@ - - + + + + + + +