From 1d8aff98c70fdac36904731fdf17299b8163b91a Mon Sep 17 00:00:00 2001 From: yanyang Date: Wed, 22 Feb 2023 15:59:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8C=85=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/ChangePackagingBoxHistorymysql.sql | 7 + ym-admin/db/PrintModelmysql.sql | 7 + ym-admin/db/WoCompensationPowermysql.sql | 7 + ym-admin/db/WoPackagingBoxSubstratemysql.sql | 7 + ym-admin/db/WoPackagingBoxmysql.sql | 7 + ym-admin/db/WoPackagingPrintHistorymysql.sql | 7 + ym-admin/db/WoPowerLevelmysql.sql | 7 + .../cnbm/admin/utils/CodeGeneratorHelper.java | 683 ++++++++++++++++++ .../com/cnbm/admin/utils/IDGenerator.java | 213 ++++++ .../src/main/resources/mapper/SysDeptDao.xml | 9 +- .../main/resources/mapper/SysDictDataDao.xml | 2 +- .../main/resources/mapper/SysDictTypeDao.xml | 2 +- .../src/main/resources/mapper/SysMenuDao.xml | 13 +- .../main/resources/mapper/SysParamsDao.xml | 5 +- .../resources/mapper/SysRoleDataScopeDao.xml | 4 +- .../main/resources/mapper/SysRoleMenuDao.xml | 5 +- .../main/resources/mapper/SysRoleUserDao.xml | 4 +- .../src/main/resources/mapper/SysUserDao.xml | 11 +- .../com/cnbm/generator/config/DataConfig.java | 2 +- ym-packing/pom.xml | 15 + .../ChangePackagingBoxHistoryController.java | 120 +++ .../controller/PrintModelController.java | 131 ++++ .../WoCompensationPowerController.java | 122 ++++ .../controller/WoPackagingBoxController.java | 129 ++++ .../WoPackagingBoxSubstrateController.java | 220 ++++++ .../WoPackagingPrintHistoryController.java | 156 ++++ .../controller/WoPowerLevelController.java | 122 ++++ .../dto/ChangePackagingBoxHistoryDTO.java | 78 ++ .../com/cnbm/packing/dto/PrintModelDTO.java | 80 ++ .../packing/dto/WoCompensationPowerDTO.java | 72 ++ .../cnbm/packing/dto/WoPackagingBoxDTO.java | 113 +++ .../dto/WoPackagingBoxSubstrateDTO.java | 74 ++ .../dto/WoPackagingPrintHistoryDTO.java | 78 ++ .../com/cnbm/packing/dto/WoPowerLevelDTO.java | 83 +++ .../entity/ChangePackagingBoxHistory.java | 118 +++ .../com/cnbm/packing/entity/PrintModel.java | 118 +++ .../packing/entity/WoCompensationPower.java | 109 +++ .../cnbm/packing/entity/WoPackagingBox.java | 173 +++++ .../entity/WoPackagingBoxSubstrate.java | 108 +++ .../entity/WoPackagingPrintHistory.java | 119 +++ .../com/cnbm/packing/entity/WoPowerLevel.java | 124 ++++ .../excel/ChangePackagingBoxHistoryExcel.java | 56 ++ .../cnbm/packing/excel/PrintModelExcel.java | 56 ++ .../excel/WoCompensationPowerExcel.java | 49 ++ .../packing/excel/WoPackagingBoxExcel.java | 78 ++ .../excel/WoPackagingBoxSubstrateExcel.java | 52 ++ .../excel/WoPackagingPrintHistoryExcel.java | 53 ++ .../cnbm/packing/excel/WoPowerLevelExcel.java | 58 ++ .../ChangePackagingBoxHistoryMapper.java | 21 + .../cnbm/packing/mapper/PrintModelMapper.java | 21 + .../mapper/WoCompensationPowerMapper.java | 21 + .../packing/mapper/WoPackagingBoxMapper.java | 27 + .../mapper/WoPackagingBoxSubstrateMapper.java | 16 + .../mapper/WoPackagingPrintHistoryMapper.java | 21 + .../packing/mapper/WoPowerLevelMapper.java | 21 + .../ChangePackagingBoxHistoryServiceBiz.java | 29 + .../packing/service/PrintModelServiceBiz.java | 34 + .../WoCompensationPowerServiceBiz.java | 31 + .../service/WoPackagingBoxServiceBiz.java | 32 + .../WoPackagingBoxSubstrateServiceBiz.java | 36 + .../WoPackagingPrintHistoryServiceBiz.java | 31 + .../service/WoPowerLevelServiceBiz.java | 31 + ...angePackagingBoxHistoryServiceBizImpl.java | 85 +++ .../impl/PrintModelServiceBizImpl.java | 95 +++ .../WoCompensationPowerServiceBizImpl.java | 90 +++ .../impl/WoPackagingBoxServiceBizImpl.java | 113 +++ ...WoPackagingBoxSubstrateServiceBizImpl.java | 165 +++++ ...WoPackagingPrintHistoryServiceBizImpl.java | 96 +++ .../impl/WoPowerLevelServiceBizImpl.java | 90 +++ .../ChangePackagingBoxHistoryMapper.xml | 30 + .../resources/mapper/PrintModleMapper.xml | 31 + .../mapper/WoCompensationPowerMapper.xml | 28 + .../resources/mapper/WoPackagingBoxMapper.xml | 41 ++ .../mapper/WoPackagingBoxSubstrateMapper.xml | 29 + .../mapper/WoPackagingPrintHistoryMapper.xml | 30 + .../resources/mapper/WoPowerLevelMapper.xml | 31 + 76 files changed, 5168 insertions(+), 24 deletions(-) create mode 100644 ym-admin/db/ChangePackagingBoxHistorymysql.sql create mode 100644 ym-admin/db/PrintModelmysql.sql create mode 100644 ym-admin/db/WoCompensationPowermysql.sql create mode 100644 ym-admin/db/WoPackagingBoxSubstratemysql.sql create mode 100644 ym-admin/db/WoPackagingBoxmysql.sql create mode 100644 ym-admin/db/WoPackagingPrintHistorymysql.sql create mode 100644 ym-admin/db/WoPowerLevelmysql.sql create mode 100644 ym-admin/src/main/java/com/cnbm/admin/utils/CodeGeneratorHelper.java create mode 100644 ym-admin/src/main/java/com/cnbm/admin/utils/IDGenerator.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/controller/WoCompensationPowerController.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxController.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingPrintHistoryController.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/controller/WoPowerLevelController.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/dto/ChangePackagingBoxHistoryDTO.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/dto/PrintModelDTO.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/dto/WoCompensationPowerDTO.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxDTO.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxSubstrateDTO.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingPrintHistoryDTO.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/dto/WoPowerLevelDTO.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/entity/ChangePackagingBoxHistory.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/entity/PrintModel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/entity/WoCompensationPower.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBox.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBoxSubstrate.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingPrintHistory.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/entity/WoPowerLevel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/excel/ChangePackagingBoxHistoryExcel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/excel/PrintModelExcel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/excel/WoCompensationPowerExcel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxExcel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxSubstrateExcel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingPrintHistoryExcel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/excel/WoPowerLevelExcel.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/mapper/ChangePackagingBoxHistoryMapper.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/mapper/PrintModelMapper.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/mapper/WoCompensationPowerMapper.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxMapper.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxSubstrateMapper.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingPrintHistoryMapper.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/mapper/WoPowerLevelMapper.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/ChangePackagingBoxHistoryServiceBiz.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/PrintModelServiceBiz.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/WoCompensationPowerServiceBiz.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingBoxServiceBiz.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingBoxSubstrateServiceBiz.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingPrintHistoryServiceBiz.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/WoPowerLevelServiceBiz.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/impl/WoCompensationPowerServiceBizImpl.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingPrintHistoryServiceBizImpl.java create mode 100644 ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPowerLevelServiceBizImpl.java create mode 100644 ym-packing/src/main/resources/mapper/ChangePackagingBoxHistoryMapper.xml create mode 100644 ym-packing/src/main/resources/mapper/PrintModleMapper.xml create mode 100644 ym-packing/src/main/resources/mapper/WoCompensationPowerMapper.xml create mode 100644 ym-packing/src/main/resources/mapper/WoPackagingBoxMapper.xml create mode 100644 ym-packing/src/main/resources/mapper/WoPackagingBoxSubstrateMapper.xml create mode 100644 ym-packing/src/main/resources/mapper/WoPackagingPrintHistoryMapper.xml create mode 100644 ym-packing/src/main/resources/mapper/WoPowerLevelMapper.xml diff --git a/ym-admin/db/ChangePackagingBoxHistorymysql.sql b/ym-admin/db/ChangePackagingBoxHistorymysql.sql new file mode 100644 index 0000000..97b067d --- /dev/null +++ b/ym-admin/db/ChangePackagingBoxHistorymysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1626059890161434625, 1067246875800000035, '包装箱拆合箱历史表', 'packing/changePackagingBoxHistory', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434626, 1626059890161434625, '查看', NULL, 'packing:changePackagingBoxHistory:page,packing:changePackagingBoxHistory:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434627, 1626059890161434625, '新增', NULL, 'packing:changePackagingBoxHistory:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434628, 1626059890161434625, '修改', NULL, 'packing:changePackagingBoxHistory:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434629, 1626059890161434625, '删除', NULL, 'packing:changePackagingBoxHistory:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434630, 1626059890161434625, '导出', NULL, 'packing:changePackagingBoxHistory:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-admin/db/PrintModelmysql.sql b/ym-admin/db/PrintModelmysql.sql new file mode 100644 index 0000000..ca99f9c --- /dev/null +++ b/ym-admin/db/PrintModelmysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627506543435272194, 1067246875800000035, '打印标签模板表', 'packing/printModel', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272195, 1627506543435272194, '查看', NULL, 'packing:printModel:page,packing:printModel:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272196, 1627506543435272194, '新增', NULL, 'packing:printModel:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272197, 1627506543435272194, '修改', NULL, 'packing:printModel:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272198, 1627506543435272194, '删除', NULL, 'packing:printModel:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272199, 1627506543435272194, '导出', NULL, 'packing:printModel:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-admin/db/WoCompensationPowermysql.sql b/ym-admin/db/WoCompensationPowermysql.sql new file mode 100644 index 0000000..1fbf67a --- /dev/null +++ b/ym-admin/db/WoCompensationPowermysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627488175458189314, 1067246875800000035, '基板补偿功率 表', 'packing/woCompensationPower', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189315, 1627488175458189314, '查看', NULL, 'packing:woCompensationPower:page,packing:woCompensationPower:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189316, 1627488175458189314, '新增', NULL, 'packing:woCompensationPower:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189317, 1627488175458189314, '修改', NULL, 'packing:woCompensationPower:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189318, 1627488175458189314, '删除', NULL, 'packing:woCompensationPower:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189319, 1627488175458189314, '导出', NULL, 'packing:woCompensationPower:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-admin/db/WoPackagingBoxSubstratemysql.sql b/ym-admin/db/WoPackagingBoxSubstratemysql.sql new file mode 100644 index 0000000..f3b3d2f --- /dev/null +++ b/ym-admin/db/WoPackagingBoxSubstratemysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627855073022648322, 1067246875800000035, '包装箱基板关联表 ( 基板表 )', 'packing/woPackagingBoxSubstrate', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648323, 1627855073022648322, '查看', NULL, 'packing:woPackagingBoxSubstrate:page,packing:woPackagingBoxSubstrate:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648324, 1627855073022648322, '新增', NULL, 'packing:woPackagingBoxSubstrate:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648325, 1627855073022648322, '修改', NULL, 'packing:woPackagingBoxSubstrate:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648326, 1627855073022648322, '删除', NULL, 'packing:woPackagingBoxSubstrate:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648327, 1627855073022648322, '导出', NULL, 'packing:woPackagingBoxSubstrate:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-admin/db/WoPackagingBoxmysql.sql b/ym-admin/db/WoPackagingBoxmysql.sql new file mode 100644 index 0000000..fbc5955 --- /dev/null +++ b/ym-admin/db/WoPackagingBoxmysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1628230581925277697, 1067246875800000035, '包装箱表', 'code/woPackagingBox', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277698, 1628230581925277697, '查看', NULL, 'code:woPackagingBox:page,code:woPackagingBox:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277699, 1628230581925277697, '新增', NULL, 'code:woPackagingBox:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277700, 1628230581925277697, '修改', NULL, 'code:woPackagingBox:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277701, 1628230581925277697, '删除', NULL, 'code:woPackagingBox:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277702, 1628230581925277697, '导出', NULL, 'code:woPackagingBox:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-admin/db/WoPackagingPrintHistorymysql.sql b/ym-admin/db/WoPackagingPrintHistorymysql.sql new file mode 100644 index 0000000..6eecc68 --- /dev/null +++ b/ym-admin/db/WoPackagingPrintHistorymysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627603723110080513, 1067246875800000035, '包装箱打印历史表', 'packing/woPackagingPrintHistory', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080514, 1627603723110080513, '查看', NULL, 'packing:woPackagingPrintHistory:page,packing:woPackagingPrintHistory:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080515, 1627603723110080513, '新增', NULL, 'packing:woPackagingPrintHistory:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080516, 1627603723110080513, '修改', NULL, 'packing:woPackagingPrintHistory:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080517, 1627603723110080513, '删除', NULL, 'packing:woPackagingPrintHistory:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080518, 1627603723110080513, '导出', NULL, 'packing:woPackagingPrintHistory:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-admin/db/WoPowerLevelmysql.sql b/ym-admin/db/WoPowerLevelmysql.sql new file mode 100644 index 0000000..e499d43 --- /dev/null +++ b/ym-admin/db/WoPowerLevelmysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627486255993688065, 1067246875800000035, '功率等级 表', 'packing/woPowerLevel', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688066, 1627486255993688065, '查看', NULL, 'packing:woPowerLevel:page,packing:woPowerLevel:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688067, 1627486255993688065, '新增', NULL, 'packing:woPowerLevel:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688068, 1627486255993688065, '修改', NULL, 'packing:woPowerLevel:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688069, 1627486255993688065, '删除', NULL, 'packing:woPowerLevel:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688070, 1627486255993688065, '导出', NULL, 'packing:woPowerLevel:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-admin/src/main/java/com/cnbm/admin/utils/CodeGeneratorHelper.java b/ym-admin/src/main/java/com/cnbm/admin/utils/CodeGeneratorHelper.java new file mode 100644 index 0000000..16e4a4a --- /dev/null +++ b/ym-admin/src/main/java/com/cnbm/admin/utils/CodeGeneratorHelper.java @@ -0,0 +1,683 @@ +/* + * Copyright (c) 2019. + * http://www.ulabcare.com + */ + +package com.cnbm.admin.utils; + +/** + *

+ * 编号生成帮助类 + * 以2+8+6形式生成(2位编号类型前缀+8位年月日+6位自增序列号 ) + * 2位编号类型前缀定义如下⤵ + * 1x:患者相关编号以 '1' 开头,(病例号:10 ) + * 2x:订单相关编号以 '2' 开头,如订单编号=20 + * 3x: 支付相关编号以 '3' 开头,如系统内部支付订单号=30 + * (未完待续...) + *

+ * + * @author FanYi + * @date 2019-01-03 + * @since 1.0 + */ +public class CodeGeneratorHelper { + + /** + * 订单编号 + */ + public static final String ORDER_CODE = "ORDER_CODE"; + /** + * 工艺编号 + */ + public static final String PROCESS_FLOW_CODE = "PROCESS_FLOW_CODE"; + + /** + * 工艺设备点编号 + */ + public static final String PROCESS_FLOW_EQUIPMENT_CODE = "PROCESS_FLOW_EQUIPMENT_CODE"; + /** + * BOM编号 + */ + public static final String BOM_CODE = "BOM_CODE"; + /** + * 基板编号 + */ + public static final String SUBSTRATESU_CODE = "SUBSTRATESU_CODE"; + + /** + * 报警等级编号 + */ + public static final String ALARM_GRADE_CODE = "ALARM_GRADE_CODE"; + + /** + * 物料信息编号 + */ + public static final String MATERIAL_CODE = "MATERIAL_CODE"; + + /** + * 物料信息编号 + */ + public static final String EQUIPMENT_MATERIAL_BOM_CODE = "EQUIPMENT_MATERIAL_BOM_CODE"; + + /** + * 区域编号 + */ + public static final String AREA_CODE = "AREA_CODE"; + + /** + * 缓存区编号 + */ + public static final String CACHE_CODE = "CACHE_CODE"; + + /** + * 设备报警编号 + */ + public static final String EQUIPMENT_ALARM_CODE = "EQUIPMENT_ALARM_CODE"; + + /** + * 设备保养计划单号 + */ + public static final String EQUIPMENT_MAINTENANCE_PLAN_CODE = "EQUIPMENT_MAINTENANCE_PLAN_CODE"; + + /** + * 设备保养记录单号 + */ + public static final String EQUIPMENT_MAINTENANCE_LOG_CODE = "EQUIPMENT_MAINTENANCE_LOG_CODE"; + + + /** + * 设备类型编号 + */ + public static final String EQUIPMENT_TYPE_CODE = "EQUIPMENT_TYPE_CODE"; + + /** + * 保养周期编号 + */ + public static final String MAINTENANCE_PERIOD_CODE = "MAINTENANCE_PERIOD_CODE"; + + /** + * 维修类型编号 + */ + public static final String MAINTENANCE_TYPE_CODE = "MAINTENANCE_TYPE_CODE"; + + /** + * 物料类型编号 + */ + public static final String MATERIAL_TYPE_CODE = "MATERIAL_TYPE_CODE"; + + /** + * 设备参数编号 编号 + */ + public static final String EQUIPMENT_PARAMETER_CODE = "EQUIPMENT_PARAMETER_CODE"; + + /** + * 设备编号 + */ + public static final String EQUIPMENT_CODE = "EQUIPMENT_CODE"; + + /** + * 库位编号 + */ + public static final String STOCK_CODE = "STOCK_CODE"; + + /** + * 库位位置编号 + */ + public static final String STOCK_POSITION_CODE = "STOCK_POSITION_CODE"; + + /** + * 货架编号 + */ + public static final String SHELF_CODE = "SHELF_CODE"; + + /** + * 废品报废编号 + */ + public static final String SCRAP_CODE = "SCRAP_CODE"; + + /** + * 连线设备编号 + */ + public static final String CONNECTING_DEVICE_CODE = "CONNECTING_DEVICE_CODE"; + + /** + * 报警类型编号 + */ + public static final String ALARM_TYPE_CODE = "ALARM_TYPE_CODE"; + + /** + * 报警信息编号 + */ + public static final String ALARM_CODE = "ALARM_CODE"; + + /** + * 物料批次编号 + */ + public static final String MATERIAL_DATE_CODE = "MATERIAL_DATE_CODE"; + + /** + * 储存箱编号 + */ + public static final String STORAGE_BOX_CODE = "STORAGE_BOX_CODE"; + /** + * 工序编号 + */ + public static final String SEQUENCE_CODE = "SEQUENCE_CODE"; + + private static final String DETECT_EQUIPMENT_SYSTEM_CODE = "DETECT_EQUIPMENT_SYSTEM_CODE"; + + /** + * 标签编码 + */ + public static final String PRINT_MODEL_CODE = "PRINT_MODEL"; + + /** + * 生成物料批次编号 + * + * @return 物料批次编号 + */ + public static String getMaterialDateCode() { + return IDGenerator.gen("PC", "yyyyMMdd", 6, MATERIAL_DATE_CODE); + } + /** + * 连线设备属性编号 + */ + public static final String CONNECTING_DEVICE_ATTR_CODE = "CONNECTING_DEVICE_ATTR_CODE"; + + + /** + * 工厂编号 + */ + public static final String FACTORY_CODE = "FACTORY_CODE"; + + /** + * 产线编号 + */ + public static final String PRODUCTION_LINE_CODE = "PRODUCTION_LINE_CODE"; + + /** + * 设备类型报警明细编号 + */ + public static final String EQUIPMENT_TYPE_ALARM_CODE = "EQUIPMENT_TYPE_ALARM_CODE"; + + + /** + * 工单编号 + */ + public static final String WORK_ORDER_CODE = "WORK_ORDER_CODE"; + + /** + * 报废类型编号 + */ + public static final String SCRAP_TYPE_INFORMATION_CODE = "SCRAP_TYPE_INFORMATION_CODE"; + + /** + * 报废原因编号 + */ + public static final String SCRAP_INFORMATION_CODE = "SCRAP_INFORMATION_CODE"; + + /** + * 报废原因编号 + */ + public static final String SUBSTRATE_BATCH_INFO_CODE = "SUBSTRATE_BATCH_INFO_CODE"; + + /** + * 检测下发区域编号 + */ + public static final String DETECT_DISTRIBUTION_AREA_CODE = "DETECT_DISTRIBUTION_AREA_CODE"; + + /** + * 离线检测参数编码 + */ + public static final String OFFLINE_DETECT_PARAM_CODE = "OFFLINE_DETECT_PARAM_CODE"; + + /** + * 设备配方CODE + */ + public static final String EQUIPMENT_RECIPE_CODE = "EQUIPMENT_RECIPE_CODE"; + + /** + * 设备事件CODE + */ + public static final String EQUIPMENT_EVENT_CODE = "EQUIPMENT_EVENT_CODE"; + + /** + * 设备分组CODE + */ + public static final String EQUIPMENT_GROUP_CODE = "EQUIPMENT_GROUP_CODE"; + + /** + * power class CODE + */ + public static final String POWER_CLASSIFICATION_CODE = "POWER_CLASSIFICATION_CODE"; + + /** + * power class CODE + */ + public static final String EQUIPMENT_REPAIR_CODE = "EQUIPMENT_REPAIR_CODE"; + + /** + * 存储箱 CODE + */ + public static final String STORAGE_TANK_CODE = "STORAGE_TANK_CODE"; + + /** + * 权限 CODE + */ + public static final String ROLE_CODE = "STORAGE_TANK_CODE"; + /** + * 权限CODE + * + * @return 权限CODE + */ + public static String getRoleCode() { + return IDGenerator.gen("ROLE", "yyyyMMdd", 6, ROLE_CODE); + } + + /** + * 存储箱CODE + * + * @return 存储箱CODE + */ + public static String getStorageTankCode() { + return IDGenerator.gen("CCX", "yyyyMMdd", 6, STORAGE_TANK_CODE); + } + + /** + * 生成工艺设备点CODE + * + * @return 工艺设备点CODE + */ + public static String getEquipmentRepairCode() { + return IDGenerator.gen("SBWX", "yyyyMMdd", 6, EQUIPMENT_REPAIR_CODE); + } + + /** + * 生成工艺设备点CODE + * + * @return 工艺设备点CODE + */ + public static String getProcessFlowEquipmentGroupCode() { + return IDGenerator.gen("GYSBD", "yyyyMMdd", 6, PROCESS_FLOW_EQUIPMENT_CODE); + } + + /** + * 生成设备分组CODE + * + * @return 设备分组CODE + */ + public static String getEquipmentGroupCode() { + return IDGenerator.gen("SBFZ", "yyyyMMdd", 6, EQUIPMENT_GROUP_CODE); + } + + /** + * 生成设备事件CODE + * + * @return 生成设备事件CODE + */ + public static String getEquipmentEventCode() { + return IDGenerator.gen("SBSJ", "yyyyMMdd", 6, EQUIPMENT_EVENT_CODE); + } + + /** + * 生成设备配方编码 + * + * @return 生成设备配方编码 + */ + public static String getEquipmentRecipeCode() { + return IDGenerator.gen("SBPF", "yyyyMMdd", 6, EQUIPMENT_RECIPE_CODE); + } + + /** + * 生成离线检测参数编码 + * + * @return 生成离线检测参数编码 + */ + public static String getOfflineDetectParamCode() { + return IDGenerator.gen("LXCS", "yyyyMMdd", 6, OFFLINE_DETECT_PARAM_CODE); + } + + /** + * 生成设备类型报警明细编号 + * + * @return 设备类型报警明细编号 + */ + public static String getEquipmentTypeAlarmCode() { + return IDGenerator.gen("20", "yyyyMMdd", 6, EQUIPMENT_TYPE_ALARM_CODE); + } + + /** + * 生成设备类型报警明细编号 + * + * @return 设备类型报警明细编号 + */ + public static String getStorageBoxCode() { + return IDGenerator.gen("CCX", "yyyyMMdd", 6, STORAGE_BOX_CODE); + } + + + + /** + * 生成订单编号 + * + * @return 订单编号 + */ + public static String getOrderCode() { + return IDGenerator.gen("20", "yyyyMMdd", 6, ORDER_CODE); + } + /** + * 生成工艺编号 + * + * @return 工艺编号 + */ + public static String getProcessFlowCode() { + return IDGenerator.gen("GY", "yyyyMMdd", 6, PROCESS_FLOW_CODE); + } + /** + * 生成基板编号 + * + * @return 基板编号 + */ + public static String getSubstrateCode() { + return IDGenerator.gen("JB", "yyyyMMdd", 6, SUBSTRATESU_CODE); + } + /** + * 生成BOM编号 + * + * @return BOM编号 + */ + public static String getBomCode() { + return IDGenerator.gen("BOM", "yyyyMMdd", 6, BOM_CODE); + } + + /** + * 生成编号 + * + * @return 编号 + */ + public static String getCode(String code) { + return IDGenerator.gen("20", "yyyyMMdd", 6, code); + } + + /** + * 生成报警等级编号 + * + * @return 编号 + */ + public static String getAlarmGradeCode() { + return IDGenerator.gen("BJDJ", "yyyyMMdd", 6, ALARM_GRADE_CODE); + } + + /** + * 生成物料信息编号 + * + * @return 编号 + */ + public static String getMaterialCode() { + return IDGenerator.gen("WLXX", "yyyyMMdd", 6, MATERIAL_CODE); + } + + /** + * 生成设备物料Bom 编号 + * + * @return 编号 + */ + public static String getEquipmentMaterialBomCode() { + return IDGenerator.gen("SBWLBOM", "yyyyMMdd", 6, EQUIPMENT_MATERIAL_BOM_CODE); + } + + /** + * 生成设备参数 编号 + * + * @return 编号 + */ + public static String getEquipmentParameterCode() { + return IDGenerator.gen("SBCS", "yyyyMMdd", 6, EQUIPMENT_PARAMETER_CODE); + } + + /** + * 生成区域编号 + * + * @return 编号 + */ + public static String getAreaCode() { + return IDGenerator.gen("QY", "yyyyMMdd", 6, AREA_CODE); + } + + /** + * 生成缓存区编号 + * + * @return 编号 + */ + public static String getCacheCode() { + return IDGenerator.gen("HCQ", "yyyyMMdd", 6, CACHE_CODE); + } + + /** + * 生成设备报警编号 + * + * @return 编号 + */ + public static String getEquipmentAlarmCode() { + return IDGenerator.gen("SBBJ", "yyyyMMdd", 6, EQUIPMENT_ALARM_CODE); + } + + /** + * 生成设备保养计划编号 + * + * @return 编号 + */ + public static String getEquipmentMaintenancePlanCode() { + return IDGenerator.gen("SBBYJH", "yyyyMMdd", 6, EQUIPMENT_MAINTENANCE_PLAN_CODE); + } + + /** + * 生成设备保养记录编号 + * + * @return 编号 + */ + public static String getEquipmentMaintenanceLogCode() { + return IDGenerator.gen("SBBYJL", "yyyyMMdd", 6, EQUIPMENT_MAINTENANCE_LOG_CODE); + } + + /** + * 生成设备类型编号 + * + * @return 编号 + */ + public static String getEquipmentTypeCode() { + return IDGenerator.gen("SBLX", "yyyyMMdd", 6, EQUIPMENT_TYPE_CODE); + } + + /** + * 生成保养周期编号 + * + * @return 编号 + */ + public static String getMaintenancePeriodCode() { + return IDGenerator.gen("BYZQ", "yyyyMMdd", 6, MAINTENANCE_PERIOD_CODE); + } + + /** + * 生成维修类型编号 + * + * @return 编号 + */ + public static String getMaintenanceTypeCode() { + return IDGenerator.gen("WXLX", "yyyyMMdd", 6, MAINTENANCE_TYPE_CODE); + } + + /** + * 生成物料类型编号 + * + * @return 编号 + */ + public static String getMaterialTypeCode() { + return IDGenerator.gen("WLLX", "yyyyMMdd", 6, MATERIAL_TYPE_CODE); + } + + /** + * 生成设备编号 + * + * @return 编号 + */ + public static String getEquipmentCode() { + return IDGenerator.gen("SB", "yyyyMMdd", 6, EQUIPMENT_CODE); + } + + /** + * 生成库位位置编号 + * + * @return 编号 + */ + public static String getStockPositionCode() { + return IDGenerator.gen("KWWZ", "yyyyMMdd", 6, STOCK_POSITION_CODE); + } + + /** + * 生成库位编号 + * + * @return 编号 + */ + public static String getStockCode() { + return IDGenerator.gen("KW", "yyyyMMdd", 6, STOCK_CODE); + } + + /** + * 生成货架编号 + * + * @return 编号 + */ + public static String getShelfCode() { + return IDGenerator.gen("HJ", "yyyyMMdd", 6, SHELF_CODE); + } + + /** + * 生成废品报废编号 + * + * @return 编号 + */ + public static String getScrapCode() { + return IDGenerator.gen("FPBF", "yyyyMMdd", 6, SCRAP_CODE); + } + + + /** + * 生成连线设备编号 + * + * @return 编号 + */ + public static String getConnectingDeviceCode() { + return IDGenerator.gen("LXSB", "yyyyMMdd", 6, CONNECTING_DEVICE_CODE); + } + + /** + * 生成报警类型编号 + * + * @return 编号 + */ + public static String getAlarmTypeCode() { + return IDGenerator.gen("BJLX", "yyyyMMdd", 6, ALARM_TYPE_CODE); + } + + + /** + * 生成报警信息编号 + * + * @return 编号 + */ + public static String getAlarmCode() { + return IDGenerator.gen("BJXX", "yyyyMMdd", 6, ALARM_CODE); + } + + /** + * 生成连线设备属性编号 + * + * @return 编号 + */ + public static String getConnectingDeviceAttrCode() { + return IDGenerator.gen("LXSBSX", "yyyyMMdd", 6, CONNECTING_DEVICE_ATTR_CODE); + } + + /** + * 生成工厂编号 + * + * @return 编号 + */ + public static String getFactoryCode() { + return IDGenerator.gen("GC", "yyyyMMdd", 6, FACTORY_CODE); + } + + + /** + * 生成产线编号 + * + * @return 编号 + */ + public static String getProductionLineCode() { + return IDGenerator.gen("CX", "yyyyMMdd", 6, PRODUCTION_LINE_CODE); + } + + /** + * 生成工单编号 + * + * @return 编号 + */ + public static String getWorkOrderCode() { + return IDGenerator.gen("ZGD", "yyyyMMdd", 6, WORK_ORDER_CODE); + } + + /** + * 生成报废类型编号 + * + * @return 编号 + */ + public static String getScrapTypeInformationCode() { + return IDGenerator.gen("BFLX", "yyyyMMdd", 6, SCRAP_TYPE_INFORMATION_CODE); + } + + /** + * 生成报废原因编号 + * + * @return 编号 + */ + public static String getScrapInformationCode() { + return IDGenerator.gen("BFYY", "yyyyMMdd", 6, SCRAP_INFORMATION_CODE); + } + + + public static String getSubstrateBatchInfoCode() { + return IDGenerator.gen("PC", "yyyyMMdd", 6, SUBSTRATE_BATCH_INFO_CODE); + } + /** + * 生成工序编号 + * + * @return + */ + public static String getSequenceCode() { + return IDGenerator.gen("20", "yyyyMMdd", 6, SEQUENCE_CODE); + } + + + /** + * 生成检测下发区域编号 + * + * @return + */ + public static String getDetectDistributionAreaCode() { + return IDGenerator.gen("JCQY", "yyyyMMdd", 6, DETECT_DISTRIBUTION_AREA_CODE); + } + + + public static String getDetectEquipmentSystemCode() { + return IDGenerator.gen("LX", "yyyyMMdd", 6, DETECT_EQUIPMENT_SYSTEM_CODE); + } + + public static String getPowerClassificationCode() { + return IDGenerator.gen("PC", "yyyyMMdd", 6, POWER_CLASSIFICATION_CODE); + } + + public static String getPrintModelCode() { + return IDGenerator.gen("PM", "yyyyMMdd", 6, PRINT_MODEL_CODE); + } +} diff --git a/ym-admin/src/main/java/com/cnbm/admin/utils/IDGenerator.java b/ym-admin/src/main/java/com/cnbm/admin/utils/IDGenerator.java new file mode 100644 index 0000000..3a8aede --- /dev/null +++ b/ym-admin/src/main/java/com/cnbm/admin/utils/IDGenerator.java @@ -0,0 +1,213 @@ +package com.cnbm.admin.utils; + +import org.apache.commons.lang3.RandomStringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer; +import org.springframework.data.redis.serializer.RedisSerializer; +import org.springframework.data.redis.serializer.StringRedisSerializer; +import org.springframework.stereotype.Component; + +import javax.annotation.PostConstruct; +import java.text.DecimalFormat; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * id生成器,使用redis自增接口实现 + * TODO 待完善 + * + * @author jiff + * @date 2018-12-1 + * @since 1.0 + */ +@Component +public class IDGenerator { + private RedisTemplate redisTemplate; + private static IDGenerator idGenerator; + + /** + * 4位年格式 + */ + public static final String PATTERN_YYYY = "yyyy"; + /** + * 6位年月格式 + */ + public static final String PATTERN_YYYYMM = "yyyyMM"; + /** + * 8位年月日格式 + */ + public static final String PATTERN_YYYYMMDD = "yyyyMMdd"; + /** + * 10位年月日时格式 + */ + public static final String PATTERN_YYYYMMDDHH = "yyyyMMddHH"; + /** + * 12位年月日时分格式 + */ + public static final String PATTERN_YYYYMMDDHHMM = "yyyyMMddHHmm"; + + + /** + * 最大序列号长度 + */ + private static final int MAX_SEQUENCE_LENGTH = 20; + /** + * 最大随机数长度 + */ + private static final int MAX_RANDOM_LENGTH = 10; + /** + * 序列命名空间 + */ + private static final String KEY_PREFIX_SEQUENCE = "SEQUENCE_"; + private static final Map commonDateFormats = new HashMap<>(); + private static final List sequenceFormats = new ArrayList<>(); + + static { + commonDateFormats.put(PATTERN_YYYY, new SimpleDateFormat(PATTERN_YYYY)); + commonDateFormats.put(PATTERN_YYYYMM, new SimpleDateFormat( + PATTERN_YYYYMM)); + commonDateFormats.put(PATTERN_YYYYMMDD, new SimpleDateFormat( + PATTERN_YYYYMMDD)); + commonDateFormats.put(PATTERN_YYYYMMDDHH, new SimpleDateFormat( + PATTERN_YYYYMMDDHH)); + commonDateFormats.put(PATTERN_YYYYMMDDHHMM, new SimpleDateFormat( + PATTERN_YYYYMMDDHHMM)); + StringBuilder sequencePattern = new StringBuilder(MAX_SEQUENCE_LENGTH); + for (int i = 0; i < MAX_SEQUENCE_LENGTH; i++) { + sequencePattern.append("0"); + sequenceFormats.add(new DecimalFormat(sequencePattern.toString())); + } + } + + @Autowired(required = false) + public void setRedisTemplate(RedisTemplate redisTemplate) { + RedisSerializer stringSerializer = new StringRedisSerializer(); + //设置序列化Key的实例化对象 + redisTemplate.setKeySerializer(stringSerializer); + //设置序列化Value的实例化对象 + redisTemplate.setValueSerializer(new GenericJackson2JsonRedisSerializer()); + redisTemplate.setHashKeySerializer(stringSerializer); + redisTemplate.setHashValueSerializer(new GenericJackson2JsonRedisSerializer()); + redisTemplate.setStringSerializer(stringSerializer); + redisTemplate.afterPropertiesSet(); + this.redisTemplate = redisTemplate; + } + + @PostConstruct + private void init() { + idGenerator = this; + idGenerator.redisTemplate = this.redisTemplate; + } + + /** + * 生成主键 + * + * @param sequenceName 序列名 + * @return 主键 + */ + public static long gen(String sequenceName) { + return idGenerator.redisTemplate.opsForValue().increment( + KEY_PREFIX_SEQUENCE + sequenceName, 1); + } + + /** + * 生成主键 + * + * @param prefix 前缀,为空或null时则不使用前缀 + * @param pattern 时间戳格式,为空或null时不使用时间戳,已定义5种格式:{@link #PATTERN_YYYY}、{@link #PATTERN_YYYYMM}、{@link #PATTERN_YYYYMMDD}、{@link #PATTERN_YYYYMMDDHH}、{@link #PATTERN_YYYYMMDDHHMM}、 + * @param sequenceLength 序列长度,大于0时有效,否则使用序列原始值,最多{@value #MAX_SEQUENCE_LENGTH}位,超过{@value #MAX_SEQUENCE_LENGTH}默认为{@value #MAX_SEQUENCE_LENGTH}位 + * @param sequenceName 序列名,为空或null时则不生成序列值 + * @return prefix+timestamp+sequence + */ + public static String gen(String prefix, String pattern, int sequenceLength, + String sequenceName) { + return gen(prefix, pattern, sequenceLength, sequenceName, 0); + } + + /** + * 生成主键 + * + * @param prefix 前缀,为空或null时则不使用前缀 + * @param pattern 时间戳格式,为空或null时不使用时间戳,已定义5种格式:{@link #PATTERN_YYYY}、{@link #PATTERN_YYYYMM}、{@link #PATTERN_YYYYMMDD}、{@link #PATTERN_YYYYMMDDHH}、{@link #PATTERN_YYYYMMDDHHMM}、 + * @param sequenceLength 序列长度,大于0时有效,否则使用序列原始值,最多{@value #MAX_SEQUENCE_LENGTH}位,超过{@value #MAX_SEQUENCE_LENGTH}默认为{@value #MAX_SEQUENCE_LENGTH}位 + * @param sequenceName 序列名,为空或null时则不生成序列值 + * @param randomLength 随机数长度,大于0时有效,最多{@value #MAX_RANDOM_LENGTH}位,超过{@value #MAX_RANDOM_LENGTH}默认为{@value #MAX_RANDOM_LENGTH}位 + * @return prefix+timestamp+sequence+random + */ + public static String gen(String prefix, String pattern, int sequenceLength, + String sequenceName, int randomLength) { + StringBuilder ids = new StringBuilder(); + if (!isEmpty(prefix)) { + ids.append(prefix); + } + String timestamp = null; + if (!isEmpty(pattern)) { + timestamp = getFormattedDate(pattern); + } + if (timestamp != null) { + ids.append(timestamp); + } + if (!isEmpty(sequenceName)) { + long sequence = gen(sequenceName); + if (sequenceLength > 0) { + if (sequenceLength > MAX_SEQUENCE_LENGTH) { + sequenceLength = MAX_SEQUENCE_LENGTH; + } + String formatSequence = sequenceFormats.get(sequenceLength - 1) + .format(sequence); + if (formatSequence.length() > sequenceLength) { + formatSequence = formatSequence.substring(formatSequence + .length() - sequenceLength); + } + ids.append(formatSequence); + } else { + ids.append(sequence); + } + } + //随机数长度大于0时添加随机数 + if (randomLength > 0) { + String random = RandomStringUtils.randomNumeric(randomLength); + ids.append(random); + } + return ids.toString(); + } + + private static String getFormattedDate(String pattern) { + SimpleDateFormat sdf = commonDateFormats.get(pattern); + if (sdf == null) { + try { + sdf = new SimpleDateFormat(pattern); + } catch (Exception e) { + e.printStackTrace(); + } + } + if (sdf == null) { + return null; + } + java.util.Date now = new java.util.Date(); + return sdf.format(now); + } + + private static boolean isEmpty(String str) { + if (str == null || str.trim().isEmpty()) { + return true; + } + return false; + } + + public static void main(String[] args) { + for (int i = 0; i < 100; i++) { + System.out.println(RandomStringUtils.randomNumeric(1)); + System.out.println(RandomStringUtils.randomNumeric(2)); + System.out.println(RandomStringUtils.randomNumeric(4)); + } + System.out.println(new DecimalFormat("00").format(103)); + System.out.println(new DecimalFormat("000").format(13)); + + } + +} diff --git a/ym-admin/src/main/resources/mapper/SysDeptDao.xml b/ym-admin/src/main/resources/mapper/SysDeptDao.xml index a558f10..5101128 100644 --- a/ym-admin/src/main/resources/mapper/SysDeptDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDeptDao.xml @@ -6,8 +6,9 @@ select t1.*,(select t2.name from sys_dept t2 where t2.id=t1.pid)parentName from sys_dept t1 - where t1.id = #{value} + where t1.id = #{value} AND t1.valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysDictDataDao.xml b/ym-admin/src/main/resources/mapper/SysDictDataDao.xml index fa2f89f..8c88067 100644 --- a/ym-admin/src/main/resources/mapper/SysDictDataDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDictDataDao.xml @@ -4,7 +4,7 @@ \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml b/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml index 0698e4e..e2863a1 100644 --- a/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml @@ -4,7 +4,7 @@ \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysMenuDao.xml b/ym-admin/src/main/resources/mapper/SysMenuDao.xml index 94922c6..a831e30 100644 --- a/ym-admin/src/main/resources/mapper/SysMenuDao.xml +++ b/ym-admin/src/main/resources/mapper/SysMenuDao.xml @@ -5,14 +5,15 @@ select t3.permissions from sys_role_user t1 left join sys_role_menu t2 on t1.role_id = t2.role_id left join sys_menu t3 on t2.menu_id = t3.id - where t1.user_id = #{userId} order by t3.sort asc + where t1.user_id = #{userId} AND t1.valid = 1 order by t3.sort asc \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysParamsDao.xml b/ym-admin/src/main/resources/mapper/SysParamsDao.xml index 3ada3b6..3bbf120 100644 --- a/ym-admin/src/main/resources/mapper/SysParamsDao.xml +++ b/ym-admin/src/main/resources/mapper/SysParamsDao.xml @@ -5,7 +5,7 @@ @@ -14,10 +14,11 @@ #{id} + AND valid = 1 - update sys_params set param_value = #{paramValue} where param_code = #{paramCode} + update sys_params set param_value = #{paramValue} where param_code = #{paramCode} AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml b/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml index e01c48a..60c96d4 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml @@ -4,12 +4,13 @@ @@ -17,6 +18,7 @@ #{roleId} + AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml b/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml index aa4261a..8ceb0f2 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml @@ -4,7 +4,7 @@ @@ -12,9 +12,10 @@ #{roleId} + AND valid = 1 - delete from sys_role_menu where menu_id = #{value} + delete from sys_role_menu where menu_id = #{value} AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml b/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml index 1ece0b5..0380ae0 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml @@ -8,6 +8,7 @@ #{roleId} + AND valid = 1 @@ -15,10 +16,11 @@ #{userId} + AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysUserDao.xml b/ym-admin/src/main/resources/mapper/SysUserDao.xml index c305412..399968f 100644 --- a/ym-admin/src/main/resources/mapper/SysUserDao.xml +++ b/ym-admin/src/main/resources/mapper/SysUserDao.xml @@ -5,7 +5,7 @@ select t1.*, (select t2.name from sys_dept t2 where t2.id=t1.dept_id) deptName from sys_user t1 - where t1.id = #{value} + where t1.id = #{value} AND t1.valid = 1 - update sys_user set password = #{newPassword} where id = #{id} + update sys_user set password = #{newPassword} where id = #{id} AND valid = 1 \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/config/DataConfig.java b/ym-generator/src/main/java/com/cnbm/generator/config/DataConfig.java index 6258ed3..90b36ed 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/config/DataConfig.java +++ b/ym-generator/src/main/java/com/cnbm/generator/config/DataConfig.java @@ -10,7 +10,7 @@ import java.nio.file.Paths; * @Version 1.0 */ public class DataConfig { - public static final String url = "jdbc:mysql://mysql.picaiba.com:30307/ym_pass?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true"; + public static final String url = "jdbc:mysql://mysql.picaiba.com:30307/mt_cigs4?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true"; public static final String username = "root"; public static final String password = "1qaz@WSX3edc$RFV"; } diff --git a/ym-packing/pom.xml b/ym-packing/pom.xml index c3b729f..f2001c9 100644 --- a/ym-packing/pom.xml +++ b/ym-packing/pom.xml @@ -23,5 +23,20 @@ ym-common 1.0-SNAPSHOT + + com.cnbm + ym-core + 1.0-SNAPSHOT + + + org.springframework.security + spring-security-core + + + com.cnbm + ym-admin + 1.0-SNAPSHOT + compile + \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java new file mode 100644 index 0000000..42032d9 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java @@ -0,0 +1,120 @@ +package com.cnbm.packing.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.packing.excel.ChangePackagingBoxHistoryExcel; +import com.cnbm.packing.service.ChangePackagingBoxHistoryServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.time.LocalDateTime; +import java.util.List; +import java.util.Map; + + +/** + * 包装箱拆合箱历史表 前端控制器 + * + * @author packingGenerator + * @since 2023-02-16 + */ +@RestController +@RequestMapping("/packing/changePackagingBoxHistory") +@Api(tags="包装箱拆合箱历史表") +public class ChangePackagingBoxHistoryController { + @Autowired + private ChangePackagingBoxHistoryServiceBiz changePackagingBoxHistoryService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataTypeClass = LocalDateTime.class), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataTypeClass = LocalDateTime.class), + @ApiImplicitParam(name = "type", value = "类型,1=加入包装箱;2=移除包装箱;3=换箱", paramType = "query", dataTypeClass=Integer.class) + }) +// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = changePackagingBoxHistoryService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") +// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:info')") + public Result get(@PathVariable("id") Long id){ + ChangePackagingBoxHistoryDTO data = changePackagingBoxHistoryService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") +// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:save')") + public Result save(@RequestBody ChangePackagingBoxHistoryDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + changePackagingBoxHistoryService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") +// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:update')") + public Result update(@RequestBody ChangePackagingBoxHistoryDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + changePackagingBoxHistoryService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") +// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + changePackagingBoxHistoryService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") +// @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = changePackagingBoxHistoryService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, ChangePackagingBoxHistoryExcel.class); + } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java new file mode 100644 index 0000000..7a39094 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/PrintModelController.java @@ -0,0 +1,131 @@ +package com.cnbm.packing.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.packing.dto.PrintModelDTO; +import com.cnbm.packing.excel.PrintModelExcel; +import com.cnbm.packing.service.PrintModelServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.time.LocalDateTime; +import java.util.List; +import java.util.Map; + + +/** + * 打印标签模板表 前端控制器 + * + * @author packingGenerator + * @since 2023-02-15 + */ +@RestController +@RequestMapping("/packing/printModel") +@Api(tags="打印标签模板表") +public class PrintModelController { + @Autowired + private PrintModelServiceBiz printModelService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "name", value = "标签名称", paramType = "query", dataTypeClass = String.class) + }) +// @PreAuthorize("@ex.hasAuthority('packing:printModel:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = printModelService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") +// @PreAuthorize("@ex.hasAuthority('packing:printModel:info')") + public Result get(@PathVariable("id") Long id){ + PrintModelDTO data = printModelService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") +// @PreAuthorize("@ex.hasAuthority('packing:printModel:save')") + public Result save(@RequestBody PrintModelDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + printModelService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") +// @PreAuthorize("@ex.hasAuthority('packing:printModel:update')") + public Result update(@RequestBody PrintModelDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + printModelService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") +// @PreAuthorize("@ex.hasAuthority('packing:printModel:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + printModelService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") +// @PreAuthorize("@ex.hasAuthority('packing:printModel:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = printModelService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, PrintModelExcel.class); + } + + @PostMapping(value = "list") + @ApiOperation(value = "获取班组列表") + @LogOperation("获取班组列表") + public List list() { return printModelService.list(); } + + @PostMapping(value = "get-packing") + @ApiOperation(value = "获取标签编码") + @LogOperation("获取标签编码") + private Result getCode() { + String packing = printModelService.getCode(); + return new Result().ok(packing); + } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoCompensationPowerController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoCompensationPowerController.java new file mode 100644 index 0000000..f451967 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoCompensationPowerController.java @@ -0,0 +1,122 @@ +package com.cnbm.packing.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.packing.dto.WoCompensationPowerDTO; +import com.cnbm.packing.excel.WoCompensationPowerExcel; +import com.cnbm.packing.service.WoCompensationPowerServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 基板补偿功率 表 前端控制器 + * + * @author packingGenerator + * @since 2023-02-20 + */ +@RestController +@RequestMapping("/packing/woCompensationPower") +@Api(tags="基板补偿功率 表") +public class WoCompensationPowerController { + @Autowired + private WoCompensationPowerServiceBiz woCompensationPowerService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "lineBody", value = "线体", paramType = "query", dataTypeClass = Integer.class) + }) +// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woCompensationPowerService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") +// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:info')") + public Result get(@PathVariable("id") Long id){ + WoCompensationPowerDTO data = woCompensationPowerService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") +// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:save')") + public Result save(@RequestBody WoCompensationPowerDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woCompensationPowerService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") +// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:update')") + public Result update(@RequestBody WoCompensationPowerDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woCompensationPowerService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") +// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woCompensationPowerService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") +// @PreAuthorize("@ex.hasAuthority('packing:woCompensationPower:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woCompensationPowerService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoCompensationPowerExcel.class); + } + + @PostMapping(value = "list") + @ApiOperation(value = "获取基板补偿功率") + @LogOperation("获取基板补偿功率") + public List list() { return woCompensationPowerService.list(); } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxController.java new file mode 100644 index 0000000..841ff2b --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxController.java @@ -0,0 +1,129 @@ +package com.cnbm.packing.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.packing.dto.PrintModelDTO; +import com.cnbm.packing.dto.WoPackagingBoxDTO; +import com.cnbm.packing.excel.WoPackagingBoxExcel; +import com.cnbm.packing.service.WoPackagingBoxServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.time.LocalDateTime; +import java.util.List; +import java.util.Map; + + +/** + * 包装箱表 前端控制器 + * + * @author packingGenerator + * @since 2023-02-15 + */ +@RestController +@RequestMapping("/packing/woPackagingBox") +@Api(tags="包装箱表") +public class WoPackagingBoxController { + @Autowired + private WoPackagingBoxServiceBiz woPackagingBoxService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataTypeClass = LocalDateTime.class), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataTypeClass = LocalDateTime.class), + @ApiImplicitParam(name = "boxNo", value = "boxid", paramType = "query", dataTypeClass = String.class), + @ApiImplicitParam(name = "lineBody", value = "线体", paramType = "query", dataTypeClass = Integer.class), + @ApiImplicitParam(name = "printStatus", value = "打印状态:0、未打印,1、已打印", paramType = "query", dataTypeClass = Integer.class), + @ApiImplicitParam(name = "model", value = "模式,1-手动模式;2-自动模式", paramType = "query", dataTypeClass = Integer.class) + }) +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woPackagingBoxService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:info')") + public Result get(@PathVariable("id") Long id){ + WoPackagingBoxDTO data = woPackagingBoxService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:save')") + public Result save(@RequestBody WoPackagingBoxDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woPackagingBoxService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:update')") + public Result update(@RequestBody WoPackagingBoxDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woPackagingBoxService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woPackagingBoxService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woPackagingBoxService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoPackagingBoxExcel.class); + } + + @PostMapping(value = "list") + @ApiOperation(value = "获取列表") + @LogOperation("获取列表") + public List list() { return woPackagingBoxService.list(); } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java new file mode 100644 index 0000000..2ee2cdb --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java @@ -0,0 +1,220 @@ +package com.cnbm.packing.controller; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.packing.dto.WoPackagingBoxSubstrateDTO; +import com.cnbm.packing.entity.WoPackagingBox; +import com.cnbm.packing.entity.WoPackagingBoxSubstrate; +import com.cnbm.packing.excel.WoPackagingBoxSubstrateExcel; +import com.cnbm.packing.mapper.WoPackagingBoxMapper; +import com.cnbm.packing.mapper.WoPackagingBoxSubstrateMapper; +import com.cnbm.packing.service.WoPackagingBoxSubstrateServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 包装箱基板关联表 前端控制器 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@RestController +@RequestMapping("/packing/woPackagingBoxSubstrate") +@Api(tags="包装箱基板关联表") +public class WoPackagingBoxSubstrateController { + @Autowired + private WoPackagingBoxSubstrateServiceBiz woPackagingBoxSubstrateService; + + @Autowired + private WoPackagingBoxSubstrateMapper woPackagingBoxSubstrateMapper; + + @Autowired + private WoPackagingBoxMapper woPackagingBoxMapper; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "packagingBoxId", value = "包装箱ID,BoxId", paramType = "query", dataTypeClass = String.class), + @ApiImplicitParam(name = "woSubstrateId", value = "基板ID(关联T_SUBSTRATE表)", paramType = "query", dataTypeClass = String.class) + }) +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woPackagingBoxSubstrateService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:info')") + public Result get(@PathVariable("id") Long id){ + WoPackagingBoxSubstrateDTO data = woPackagingBoxSubstrateService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:save')") + public Result save(@RequestBody WoPackagingBoxSubstrateDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woPackagingBoxSubstrateService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:update')") + public Result update(@RequestBody WoPackagingBoxSubstrateDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woPackagingBoxSubstrateService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woPackagingBoxSubstrateService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingBoxSubstrate:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woPackagingBoxSubstrateService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoPackagingBoxSubstrateExcel.class); + } + + @PostMapping("removeSubstrate") + @ApiOperation("移箱") + @LogOperation("移箱") + public Result removeSubstrate(@RequestBody Long id){ + + woPackagingBoxSubstrateService.removeSubstrate(id); + + return new Result(); + } + + @PostMapping("insertSubstrate") + @ApiOperation("合箱") + @LogOperation("合箱") + public Result insertSubstrate(@RequestBody WoPackagingBoxSubstrateDTO dto){ + + String woSubstrateId = dto.getWoSubstrateId(); + //验证模组是否存在 + QueryWrapper substrateQueryWrapper1 = new QueryWrapper<>(); + substrateQueryWrapper1.eq(StringUtils.isNotBlank(woSubstrateId), "woSubstrateId", woSubstrateId); + if(woPackagingBoxSubstrateMapper.selectCount(substrateQueryWrapper1 )== 0){ + return new Result().error(1,"该模组不存在,请重新输入"); + } + WoPackagingBoxSubstrate substrate = woPackagingBoxSubstrateMapper.selectList(substrateQueryWrapper1).get(0); + //验证模组是否包装箱为空 + if(substrate.getPackagingBoxId()!=null){ + return new Result().error(1,"该模组在其他包装箱内"); + } + + //验证slot是否被占用 + QueryWrapper substrateQueryWrapper2 = new QueryWrapper<>(); + substrateQueryWrapper2.eq(StringUtils.isNotBlank(dto.getPackagingBoxId()), "packagingBoxId", dto.getPackagingBoxId()); + substrateQueryWrapper2.eq(ObjectUtils.isNotNull(dto.getSlot()), "slot", dto.getSlot()); + if(woPackagingBoxSubstrateMapper.selectCount(substrateQueryWrapper2) != 0){ + return new Result().error(1,"该slot已被占用"); + } + + //验证该模组的线体、功率等级是否BoxID的线体、功率等级一致,一致,保存成功,数据发生更新。不一致,则显示保存失败,数据不发生更新 + String packagingBoxId = dto.getPackagingBoxId(); + QueryWrapper boxQueryWrapper = new QueryWrapper<>(); + boxQueryWrapper.eq(StringUtils.isNotBlank(packagingBoxId), "boxNo", packagingBoxId); + WoPackagingBox box = woPackagingBoxMapper.selectList(boxQueryWrapper).get(0); + + if((substrate.getLineBody()==box.getLineBody()) && (substrate.getPowerLevel()==box.getPowerLevel()) ) + { + dto.setId(substrate.getId()); + woPackagingBoxSubstrateService.insertSubstrate(dto); + return new Result(); + } + else{ + return new Result().error(1,"保存失败"); + } + } + + @PostMapping("replaceSubstrate") + @ApiOperation("换箱") + @LogOperation("换箱") + public Result replaceSubstrate(@RequestBody WoPackagingBoxSubstrateDTO[] dtos){ + + woPackagingBoxSubstrateService.replaceSubstrate(dtos); + + return new Result(); + } + + @PostMapping("slotValidation") + @ApiOperation("slot是否占用验证") + @LogOperation("slot是否占用验证") + public boolean slotValidation(@RequestBody WoPackagingBoxSubstrateDTO dto){ + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(dto.getPackagingBoxId()), "packagingBoxId", dto.getPackagingBoxId()); + wrapper.eq(ObjectUtils.isNotNull(dto.getSlot()), "slot", dto.getSlot()); + if(woPackagingBoxSubstrateMapper.selectCount(wrapper) == 0){ + return true; + } + else { + return false; + } + } + + @PostMapping("batchInsert") + @ApiOperation("手动装箱") + @LogOperation("手动装箱") + public Result batchInsert(@RequestBody WoPackagingBoxSubstrateDTO[] lists){ + + woPackagingBoxSubstrateService.batchInsert(lists); + + return new Result(); + } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingPrintHistoryController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingPrintHistoryController.java new file mode 100644 index 0000000..f07a055 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingPrintHistoryController.java @@ -0,0 +1,156 @@ +package com.cnbm.packing.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.admin.enums.WhetherEnum; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; + +import com.cnbm.packing.dto.WoPackagingBoxDTO; +import com.cnbm.packing.dto.WoPackagingPrintHistoryDTO; +import com.cnbm.packing.entity.WoPackagingBox; +import com.cnbm.packing.excel.WoPackagingPrintHistoryExcel; +import com.cnbm.packing.service.WoPackagingBoxServiceBiz; +import com.cnbm.packing.service.WoPackagingPrintHistoryServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.time.LocalDateTime; +import java.util.List; +import java.util.Map; + + +/** + * 包装箱打印历史表 前端控制器 + * + * @author packingGenerator + * @since 2023-02-15 + */ +@RestController +@RequestMapping("/packing/woPackagingPrintHistory") +@Api(tags="包装箱打印历史表") +public class WoPackagingPrintHistoryController { + @Autowired + private WoPackagingPrintHistoryServiceBiz woPackagingPrintHistoryService; + @Autowired + private WoPackagingBoxServiceBiz woPackagingBoxServiceBiz; + + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataTypeClass = LocalDateTime.class), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataTypeClass = LocalDateTime.class), + @ApiImplicitParam(name = "boxNo", value = "包装箱编号", paramType = "query", dataTypeClass = String.class) + }) +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woPackagingPrintHistoryService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:info')") + public Result get(@PathVariable("id") Long id){ + WoPackagingPrintHistoryDTO data = woPackagingPrintHistoryService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:save')") + public Result save(@RequestBody WoPackagingPrintHistoryDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woPackagingPrintHistoryService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:update')") + public Result update(@RequestBody WoPackagingPrintHistoryDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woPackagingPrintHistoryService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woPackagingPrintHistoryService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") +// @PreAuthorize("@ex.hasAuthority('packing:woPackagingPrintHistory:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woPackagingPrintHistoryService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoPackagingPrintHistoryExcel.class); + } + + @PostMapping("print") + @ApiOperation("打印") + @LogOperation("打印") + public Result print(@RequestBody Long id) { + + WoPackagingBoxDTO woPackagingBox = woPackagingBoxServiceBiz.get(id); + + WoPackagingPrintHistoryDTO woPackagingPrintHistory = new WoPackagingPrintHistoryDTO(); + BeanUtils.copyProperties(woPackagingBox, woPackagingPrintHistory); + woPackagingPrintHistory.setId(null); + woPackagingPrintHistory.setPrintTime(LocalDateTime.now()); + //效验数据 + ValidatorUtils.validateEntity(woPackagingPrintHistory, AddGroup.class, DefaultGroup.class); + woPackagingPrintHistoryService.save(woPackagingPrintHistory); + //更新包装箱表中打印状态和时间 + woPackagingBox.setPrintTime(woPackagingPrintHistory.getPrintTime()); + if(woPackagingBox.getPrintStatus()==0){ + woPackagingBox.setPrintCount(1); + woPackagingBox.setPrintStatus(WhetherEnum.YES.getValue()); + } + else{ + woPackagingBox.setPrintCount(woPackagingBox.getPrintCount()+1); + } + + return new Result().ok(woPackagingPrintHistory.getId()); + } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WoPowerLevelController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPowerLevelController.java new file mode 100644 index 0000000..e000790 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WoPowerLevelController.java @@ -0,0 +1,122 @@ +package com.cnbm.packing.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.packing.dto.WoPowerLevelDTO; +import com.cnbm.packing.excel.WoPowerLevelExcel; +import com.cnbm.packing.service.WoPowerLevelServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 功率等级 表 前端控制器 + * + * @author packingGenerator + * @since 2023-02-15 + */ +@RestController +@RequestMapping("/packing/woPowerLevel") +@Api(tags="功率等级 表") +public class WoPowerLevelController { + @Autowired + private WoPowerLevelServiceBiz woPowerLevelService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "lineBody", value = "线体", paramType = "query", dataTypeClass = Integer.class) + }) +// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woPowerLevelService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") +// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:info')") + public Result get(@PathVariable("id") Long id){ + WoPowerLevelDTO data = woPowerLevelService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") +// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:save')") + public Result save(@RequestBody WoPowerLevelDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woPowerLevelService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") +// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:update')") + public Result update(@RequestBody WoPowerLevelDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woPowerLevelService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") +// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woPowerLevelService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") +// @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woPowerLevelService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoPowerLevelExcel.class); + } + + @PostMapping(value = "list") + @ApiOperation(value = "获取功率等级") + @LogOperation("获取功率等级") + public List list() { return woPowerLevelService.list(); } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/ChangePackagingBoxHistoryDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/ChangePackagingBoxHistoryDTO.java new file mode 100644 index 0000000..aed4463 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/ChangePackagingBoxHistoryDTO.java @@ -0,0 +1,78 @@ +package com.cnbm.packing.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Data +@ApiModel(value = "包装箱拆合箱历史表DTO对象") +public class ChangePackagingBoxHistoryDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "基板ID或模组id") + private String substrateId; + + @ApiModelProperty(value = "源包装箱box no, 关联t_wo_packaging_box.box_no 字段") + private String sourceBoxNo; + + @ApiModelProperty(value = "源箱slot") + private Integer sourceSlot; + + @ApiModelProperty(value = "离开时间") + private LocalDateTime leaveTime; + + @ApiModelProperty(value = "目标箱box no, 关联t_wo_packaging_box.box_no 字段") + private String targetBoxNo; + + @ApiModelProperty(value = "目标箱slot") + private Integer targetSlot; + + @ApiModelProperty(value = "进入时间") + private LocalDateTime inputTime; + + @ApiModelProperty(value = "等级") + private String grade; + + @ApiModelProperty(value = "类型,1=加入包装箱;2=移除包装箱;3=换箱") + private Integer type; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/PrintModelDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/PrintModelDTO.java new file mode 100644 index 0000000..03ee07d --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/PrintModelDTO.java @@ -0,0 +1,80 @@ +package com.cnbm.packing.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@ApiModel(value = "打印标签模板表DTO对象") +public class PrintModelDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "id") + private Long id; + + @ApiModelProperty(value = "编码") + private String code; + + @ApiModelProperty(value = "班组名称") + private String name; + + @ApiModelProperty(value = "启用状态:0 、停用,1、启用") + private Integer enabled; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "类型,0:模组标签,1:等级标签") + private Integer type; + + @ApiModelProperty(value = "是否默认模板,0:否,1:是") + private Integer isDefault; + + @ApiModelProperty(value = "是否要预览,0:否,1:是") + private Integer isPreview; + + @ApiModelProperty(value = "模板内容") + private String content; + + @ApiModelProperty(value = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/WoCompensationPowerDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/WoCompensationPowerDTO.java new file mode 100644 index 0000000..b551731 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/WoCompensationPowerDTO.java @@ -0,0 +1,72 @@ +package com.cnbm.packing.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@ApiModel(value = "基板补偿功率 表DTO对象") +public class WoCompensationPowerDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "实际功率下限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppLow; + + @ApiModelProperty(value = "实际功率上限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppHigh; + + @ApiModelProperty(value = "计算公式") + private String formula; + + @ApiModelProperty(value = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + @ApiModelProperty(value = "系数a,(手动录入)") + private Float coefficientA; + + @ApiModelProperty(value = "系数b,(手动录入)") + private Float coefficientB; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxDTO.java new file mode 100644 index 0000000..4414625 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxDTO.java @@ -0,0 +1,113 @@ +package com.cnbm.packing.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@ApiModel(value = "包装箱表DTO对象") +public class WoPackagingBoxDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "订单ID") + private Long orderId; + + @ApiModelProperty(value = "工单ID(舍弃啊)") + private Long workOrderId; + + @ApiModelProperty(value = "包装箱编号,这个就是boxId,关联 t_wo_packaging_box表的 boxId") + private String boxNo; + + @ApiModelProperty(value = "功率,单位瓦(舍弃)") + private Integer power; + + @ApiModelProperty(value = "等级(舍弃)") + private Integer grade; + + @ApiModelProperty(value = "基板数量,每个包装箱最大20片(舍弃)") + private Integer substrateQuantity; + + @ApiModelProperty(value = "装箱完成时间,指的是包装完成时间") + private LocalDateTime packagingTime; + + @ApiModelProperty(value = "打印时间(最近一次打印时间)") + private LocalDateTime printTime; + + @ApiModelProperty(value = "打印状态:0、未打印,1、已打印") + private Integer printStatus; + + @ApiModelProperty(value = "报工状态:0、未报工,1、已报工(舍弃)") + private Integer completionReportingStatus; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + + @ApiModelProperty(value = "离开产线时间(舍弃)") + private LocalDateTime leaveLineTime; + + @ApiModelProperty(value = "下片端口id(舍弃)") + private String portId; + + @ApiModelProperty(value = "打印次数") + private Integer printCount; + + @ApiModelProperty(value = "功率等级") + private String powerLevel; + + @ApiModelProperty(value = "客户id(舍弃)") + private Long customerId; + + @ApiModelProperty(value = "SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + + @ApiModelProperty(value = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + + @ApiModelProperty(value = "模式,1-手动模式;2-自动模式") + private Integer model; + + @ApiModelProperty(value = "是否到达包装台,1=到达;2=未达到") + private Integer isArrived; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxSubstrateDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxSubstrateDTO.java new file mode 100644 index 0000000..972e654 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxSubstrateDTO.java @@ -0,0 +1,74 @@ +package com.cnbm.packing.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 包装箱基板关联表 ( 基板表 ) + * + * @author codeGenerator + * @since 2023-02-21 + */ +@Data +@ApiModel(value = "包装箱基板关联表 ( 基板表 )DTO对象") +public class WoPackagingBoxSubstrateDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "包装箱ID,BoxId") + private String packagingBoxId; + + @ApiModelProperty(value = "基板ID") + private String woSubstrateId; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + + @ApiModelProperty(value = "箱中位置") + private Integer slot; + + @ApiModelProperty(value = "进入时间") + private LocalDateTime inputTime; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + + @ApiModelProperty(value = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + + @ApiModelProperty(value = "功率等级") + private String powerLevel; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingPrintHistoryDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingPrintHistoryDTO.java new file mode 100644 index 0000000..d1a5fbf --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingPrintHistoryDTO.java @@ -0,0 +1,78 @@ +package com.cnbm.packing.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Data +@ApiModel(value = "包装箱打印历史表DTO对象") +public class WoPackagingPrintHistoryDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "包装箱编号,关联t_wo_packaging_box.box_no") + private String boxNo; + + @ApiModelProperty(value = "打印时间") + private LocalDateTime printTime; + + @ApiModelProperty(value = "报工时间") + private LocalDateTime completionReportingTime; + + @ApiModelProperty(value = "打印状态:0、未打印,1、已打印") + private Integer printStatus; + + @ApiModelProperty(value = "报工状态:0、未报工,1、已报工, 指的是向ERP报工") + private Integer completionReportingStatus; + + @ApiModelProperty(value = "移箱时间,指的是 箱子离开产线时间") + private LocalDateTime leaveLineTime; + + @ApiModelProperty(value = "下片端口id") + private String portId; + + @ApiModelProperty(value = "打印次数") + private Integer printCount; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + + @ApiModelProperty(value = "备注") + private String remark; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/WoPowerLevelDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPowerLevelDTO.java new file mode 100644 index 0000000..991004c --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPowerLevelDTO.java @@ -0,0 +1,83 @@ +package com.cnbm.packing.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@ApiModel(value = "功率等级 表DTO对象") +public class WoPowerLevelDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "功率等级名称,(现场人员手动录入)") + private Integer powerClass; + + @ApiModelProperty(value = "pmpp_low,(现场人员手动录入)") + private Float pmppLow; + + @ApiModelProperty(value = "pmpp_high,(现场人员手动录入)") + private Float pmppHigh; + + @ApiModelProperty(value = "物料号,(现场人员手动录入)") + private String sapMaterialNum; + + @ApiModelProperty(value = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + @ApiModelProperty(value = "lable_voc,(手动录入)") + private BigDecimal lableVoc; + + @ApiModelProperty(value = "lable_isc,(手动录入)") + private BigDecimal lableIsc; + + @ApiModelProperty(value = "lable_vmpp,(手动录入)") + private BigDecimal lableVmpp; + + @ApiModelProperty(value = "lable_impp,(手动录入)") + private BigDecimal lableImpp; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/ChangePackagingBoxHistory.java b/ym-packing/src/main/java/com/cnbm/packing/entity/ChangePackagingBoxHistory.java new file mode 100644 index 0000000..a2281fd --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/ChangePackagingBoxHistory.java @@ -0,0 +1,118 @@ +package com.cnbm.packing.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 包装箱拆合箱历史表 + *

+ * + * @author codeGenerator + * @since 2023-02-16 + */ +@Data +@TableName("t_change_packaging_box_history") +@ApiModel(value = "ChangePackagingBoxHistory对象", description = "包装箱拆合箱历史表") +public class ChangePackagingBoxHistory implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("基板ID或模组id") + private String substrateId; + + @ApiModelProperty("源包装箱box no, 关联t_wo_packaging_box.box_no 字段") + private String sourceBoxNo; + + @ApiModelProperty("源箱slot") + private Integer sourceSlot; + + @ApiModelProperty("离开时间") + private LocalDateTime leaveTime; + + @ApiModelProperty("目标箱box no, 关联t_wo_packaging_box.box_no 字段") + private String targetBoxNo; + + @ApiModelProperty("目标箱slot") + private Integer targetSlot; + + @ApiModelProperty("进入时间") + private LocalDateTime inputTime; + + @ApiModelProperty("等级") + private String grade; + + @ApiModelProperty("类型,1=加入包装箱;2=移除包装箱;3=换箱") + private Integer type; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + + public static final String ID = "ID"; + + public static final String SUBSTRATE_ID = "SUBSTRATE_ID"; + + public static final String SOURCE_BOX_NO = "SOURCE_BOX_NO"; + + public static final String SOURCE_SLOT = "SOURCE_SLOT"; + + public static final String LEAVE_TIME = "LEAVE_TIME"; + + public static final String TARGET_BOX_NO = "TARGET_BOX_NO"; + + public static final String TARGET_SLOT = "TARGET_SLOT"; + + public static final String INPUT_TIME = "INPUT_TIME"; + + public static final String GRADE = "GRADE"; + + public static final String TYPE = "TYPE"; + + public static final String VALID = "VALID"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + +} diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/PrintModel.java b/ym-packing/src/main/java/com/cnbm/packing/entity/PrintModel.java new file mode 100644 index 0000000..d061943 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/PrintModel.java @@ -0,0 +1,118 @@ +package com.cnbm.packing.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 打印标签模板表 + *

+ * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@TableName("t_print_model") +@ApiModel(value = "PrintModel对象", description = "打印标签模板表") +public class PrintModel implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("id") + private Long id; + + @ApiModelProperty("编码") + private String code; + + @ApiModelProperty("班组名称") + private String name; + + @ApiModelProperty("启用状态:0 、停用,1、启用") + private Integer enabled; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("类型,0:模组标签,1:等级标签") + private Integer type; + + @ApiModelProperty("是否默认模板,0:否,1:是") + private Integer isDefault; + + @ApiModelProperty("是否要预览,0:否,1:是") + private Integer isPreview; + + @ApiModelProperty("模板内容") + private String content; + + @ApiModelProperty("线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + + public static final String ID = "ID"; + + public static final String CODE = "CODE"; + + public static final String NAME = "NAME"; + + public static final String ENABLED = "ENABLED"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + + public static final String VALID = "VALID"; + + public static final String REMARK = "REMARK"; + + public static final String TYPE = "TYPE"; + + public static final String IS_DEFAULT = "IS_DEFAULT"; + + public static final String IS_PREVIEW = "IS_PREVIEW"; + + public static final String CONTENT = "CONTENT"; + + public static final String LINE_BODY = "line_body"; + +} diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/WoCompensationPower.java b/ym-packing/src/main/java/com/cnbm/packing/entity/WoCompensationPower.java new file mode 100644 index 0000000..2ef5a29 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/WoCompensationPower.java @@ -0,0 +1,109 @@ +package com.cnbm.packing.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 基板补偿功率 表 + *

+ * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@TableName("t_wo_compensation_power") +@ApiModel(value = "WoCompensationPower对象", description = "基板补偿功率 表") +public class WoCompensationPower implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("实际功率下限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppLow; + + @ApiModelProperty("实际功率上限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppHigh; + + @ApiModelProperty("计算公式") + private String formula; + + @ApiModelProperty("线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + @ApiModelProperty("系数a,(手动录入)") + private Float coefficientA; + + @ApiModelProperty("系数b,(手动录入)") + private Float coefficientB; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + + public static final String ID = "id"; + + public static final String ACTL_PMPP_LOW = "actl_pmpp_low"; + + public static final String ACTL_PMPP_HIGH = "actl_pmpp_high"; + + public static final String FORMULA = "formula"; + + public static final String LINE_BODY = "line_body"; + + public static final String COEFFICIENT_A = "coefficient_a"; + + public static final String COEFFICIENT_B = "coefficient_b"; + + public static final String REMARK = "remark"; + + public static final String VALID = "valid"; + + public static final String CREATOR_ID = "creator_id"; + + public static final String CREATOR_NAME = "creator_name"; + + public static final String CREATE_TIME = "create_time"; + + public static final String UPDATER_ID = "updater_id"; + + public static final String UPDATER_NAME = "updater_name"; + + public static final String UPDATE_TIME = "update_time"; + + public static final String VERSION = "version"; + +} diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBox.java b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBox.java new file mode 100644 index 0000000..22d1e59 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBox.java @@ -0,0 +1,173 @@ +package com.cnbm.packing.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 包装箱表 + *

+ * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@TableName("t_wo_packaging_box") +@ApiModel(value = "WoPackagingBox对象", description = "包装箱表") +public class WoPackagingBox implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("订单ID") + private Long orderId; + + @ApiModelProperty("工单ID(舍弃啊)") + private Long workOrderId; + + @ApiModelProperty("包装箱编号,这个就是boxId,关联 t_wo_packaging_box表的 boxId") + private String boxNo; + + @ApiModelProperty("功率,单位瓦(舍弃)") + private Integer power; + + @ApiModelProperty("等级(舍弃)") + private Integer grade; + + @ApiModelProperty("基板数量,每个包装箱最大20片(舍弃)") + private Integer substrateQuantity; + + @ApiModelProperty("装箱完成时间,指的是包装完成时间") + private LocalDateTime packagingTime; + + @ApiModelProperty("打印时间(最近一次打印时间)") + private LocalDateTime printTime; + + @ApiModelProperty("打印状态:0、未打印,1、已打印") + private Integer printStatus; + + @ApiModelProperty("报工状态:0、未报工,1、已报工(舍弃)") + private Integer completionReportingStatus; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + @ApiModelProperty("离开产线时间(舍弃)") + private LocalDateTime leaveLineTime; + + @ApiModelProperty("下片端口id(舍弃)") + private String portId; + + @ApiModelProperty("打印次数") + private Integer printCount; + + @ApiModelProperty("功率等级") + private String powerLevel; + + @ApiModelProperty("客户id(舍弃)") + private Long customerId; + + @ApiModelProperty("SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + + @ApiModelProperty("线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + + @ApiModelProperty("模式,1-手动模式;2-自动模式") + private Integer model; + + @ApiModelProperty("是否到达包装台,1=到达;2=未达到") + private Integer isArrived; + + + public static final String ID = "ID"; + + public static final String ORDER_ID = "ORDER_ID"; + + public static final String WORK_ORDER_ID = "WORK_ORDER_ID"; + + public static final String BOX_NO = "BOX_NO"; + + public static final String POWER = "POWER"; + + public static final String GRADE = "GRADE"; + + public static final String SUBSTRATE_QUANTITY = "SUBSTRATE_QUANTITY"; + + public static final String PACKAGING_TIME = "PACKAGING_TIME"; + + public static final String PRINT_TIME = "PRINT_TIME"; + + public static final String PRINT_STATUS = "PRINT_STATUS"; + + public static final String COMPLETION_REPORTING_STATUS = "COMPLETION_REPORTING_STATUS"; + + public static final String REMARK = "REMARK"; + + public static final String VALID = "VALID"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + + public static final String LEAVE_LINE_TIME = "LEAVE_LINE_TIME"; + + public static final String PORT_ID = "PORT_ID"; + + public static final String PRINT_COUNT = "PRINT_COUNT"; + + public static final String POWER_LEVEL = "POWER_LEVEL"; + + public static final String CUSTOMER_ID = "CUSTOMER_ID"; + + public static final String SAP_MATERIAL = "SAP_MATERIAL"; + + public static final String LINE_BODY = "LINE_BODY"; + + public static final String MODEL = "model"; + + public static final String IS_ARRIVED = "is_arrived"; + +} diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBoxSubstrate.java b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBoxSubstrate.java new file mode 100644 index 0000000..a77be54 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBoxSubstrate.java @@ -0,0 +1,108 @@ +package com.cnbm.packing.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 包装箱基板关联表 ( 基板表 ) + *

+ * + * @author codeGenerator + * @since 2023-02-21 + */ +@Data +@TableName("t_wo_packaging_box_substrate") +@ApiModel(value = "WoPackagingBoxSubstrate对象", description = "包装箱基板关联表 ( 基板表 )") +public class WoPackagingBoxSubstrate implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("包装箱ID,BoxId") + private String packagingBoxId; + + @ApiModelProperty("基板ID") + private String woSubstrateId; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + @ApiModelProperty("箱中位置") + private Integer slot; + + @ApiModelProperty("进入时间") + private LocalDateTime inputTime; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + + @ApiModelProperty("线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + + @ApiModelProperty("功率等级") + private String powerLevel; + + + public static final String ID = "ID"; + + public static final String PACKAGING_BOX_ID = "PACKAGING_BOX_ID"; + + public static final String WO_SUBSTRATE_ID = "WO_SUBSTRATE_ID"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + + public static final String SLOT = "SLOT"; + + public static final String INPUT_TIME = "INPUT_TIME"; + + public static final String VALID = "VALID"; + + public static final String SAP_MATERIAL = "SAP_MATERIAL"; + + public static final String LINE_BODY = "LINE_BODY"; + + public static final String POWER_LEVEL = "POWER_LEVEL"; + +} diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingPrintHistory.java b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingPrintHistory.java new file mode 100644 index 0000000..b595875 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingPrintHistory.java @@ -0,0 +1,119 @@ +package com.cnbm.packing.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 包装箱打印历史表 + *

+ * + * @author codeGenerator + * @since 2023-02-15 + */ +@Data +@TableName("t_wo_packaging_print_history") +@ApiModel(value = "WoPackagingPrintHistory对象", description = "包装箱打印历史表") +public class WoPackagingPrintHistory implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("包装箱编号,关联t_wo_packaging_box.box_no") + private String boxNo; + + @ApiModelProperty("打印时间") + private LocalDateTime printTime; + + @ApiModelProperty("报工时间") + private LocalDateTime completionReportingTime; + + @ApiModelProperty("打印状态:0、未打印,1、已打印") + private Integer printStatus; + + @ApiModelProperty("报工状态:0、未报工,1、已报工, 指的是向ERP报工") + private Integer completionReportingStatus; + + @ApiModelProperty("移箱时间,指的是 箱子离开产线时间") + private LocalDateTime leaveLineTime; + + @ApiModelProperty("下片端口id") + private String portId; + + @ApiModelProperty("打印次数") + private Integer printCount; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + @ApiModelProperty("备注") + private String remark; + + + public static final String ID = "ID"; + + public static final String BOX_NO = "BOX_NO"; + + public static final String PRINT_TIME = "PRINT_TIME"; + + public static final String COMPLETION_REPORTING_TIME = "COMPLETION_REPORTING_TIME"; + + public static final String PRINT_STATUS = "PRINT_STATUS"; + + public static final String COMPLETION_REPORTING_STATUS = "COMPLETION_REPORTING_STATUS"; + + public static final String LEAVE_LINE_TIME = "LEAVE_LINE_TIME"; + + public static final String PORT_ID = "PORT_ID"; + + public static final String PRINT_COUNT = "PRINT_COUNT"; + + public static final String VALID = "VALID"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + + public static final String REMARK = "REMARK"; + +} diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/WoPowerLevel.java b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPowerLevel.java new file mode 100644 index 0000000..6a453a1 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPowerLevel.java @@ -0,0 +1,124 @@ +package com.cnbm.packing.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 功率等级 表 + *

+ * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@TableName("t_wo_power_level") +@ApiModel(value = "WoPowerLevel对象", description = "功率等级 表") +public class WoPowerLevel implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("功率等级名称,(现场人员手动录入)") + private Integer powerClass; + + @ApiModelProperty("pmpp_low,(现场人员手动录入)") + private Float pmppLow; + + @ApiModelProperty("pmpp_high,(现场人员手动录入)") + private Float pmppHigh; + + @ApiModelProperty("物料号,(现场人员手动录入)") + private String sapMaterialNum; + + @ApiModelProperty("线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + @ApiModelProperty("lable_voc,(手动录入)") + private BigDecimal lableVoc; + + @ApiModelProperty("lable_isc,(手动录入)") + private BigDecimal lableIsc; + + @ApiModelProperty("lable_vmpp,(手动录入)") + private BigDecimal lableVmpp; + + @ApiModelProperty("lable_impp,(手动录入)") + private BigDecimal lableImpp; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + + public static final String ID = "id"; + + public static final String POWER_CLASS = "power_class"; + + public static final String PMPP_LOW = "pmpp_low"; + + public static final String PMPP_HIGH = "pmpp_high"; + + public static final String SAP_MATERIAL_NUM = "sap_material_num"; + + public static final String LINE_BODY = "line_body"; + + public static final String LABLE_VOC = "lable_voc"; + + public static final String LABLE_ISC = "lable_isc"; + + public static final String LABLE_VMPP = "lable_vmpp"; + + public static final String LABLE_IMPP = "lable_impp"; + + public static final String REMARK = "remark"; + + public static final String VALID = "valid"; + + public static final String CREATOR_ID = "creator_id"; + + public static final String CREATOR_NAME = "creator_name"; + + public static final String CREATE_TIME = "create_time"; + + public static final String UPDATER_ID = "updater_id"; + + public static final String UPDATER_NAME = "updater_name"; + + public static final String UPDATE_TIME = "update_time"; + + public static final String VERSION = "version"; + +} diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/ChangePackagingBoxHistoryExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/ChangePackagingBoxHistoryExcel.java new file mode 100644 index 0000000..a192065 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/ChangePackagingBoxHistoryExcel.java @@ -0,0 +1,56 @@ +package com.cnbm.packing.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Data +public class ChangePackagingBoxHistoryExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "基板ID或模组id") + private String substrateId; + @Excel(name = "源包装箱box no, 关联t_wo_packaging_box.box_no 字段") + private String sourceBoxNo; + @Excel(name = "源箱slot") + private Integer sourceSlot; + @Excel(name = "离开时间") + private LocalDateTime leaveTime; + @Excel(name = "目标箱box no, 关联t_wo_packaging_box.box_no 字段") + private String targetBoxNo; + @Excel(name = "目标箱slot") + private Integer targetSlot; + @Excel(name = "进入时间") + private LocalDateTime inputTime; + @Excel(name = "等级") + private String grade; + @Excel(name = "类型,1=加入包装箱;2=移除包装箱;3=换箱") + private Integer type; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/PrintModelExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/PrintModelExcel.java new file mode 100644 index 0000000..23bf461 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/PrintModelExcel.java @@ -0,0 +1,56 @@ +package com.cnbm.packing.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +public class PrintModelExcel { + @Excel(name = "id") + private Long id; + @Excel(name = "编码") + private String code; + @Excel(name = "班组名称") + private String name; + @Excel(name = "启用状态:0 、停用,1、启用") + private Integer enabled; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "备注") + private String remark; + @Excel(name = "类型,0:模组标签,1:等级标签") + private Integer type; + @Excel(name = "是否默认模板,0:否,1:是") + private Integer isDefault; + @Excel(name = "是否要预览,0:否,1:是") + private Integer isPreview; + @Excel(name = "模板内容") + private String content; + @Excel(name = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/WoCompensationPowerExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/WoCompensationPowerExcel.java new file mode 100644 index 0000000..5c07936 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/WoCompensationPowerExcel.java @@ -0,0 +1,49 @@ +package com.cnbm.packing.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +public class WoCompensationPowerExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "实际功率下限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppLow; + @Excel(name = "实际功率上限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppHigh; + @Excel(name = "计算公式") + private String formula; + @Excel(name = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + @Excel(name = "系数a,(手动录入)") + private Float coefficientA; + @Excel(name = "系数b,(手动录入)") + private Float coefficientB; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxExcel.java new file mode 100644 index 0000000..9eabebb --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxExcel.java @@ -0,0 +1,78 @@ +package com.cnbm.packing.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +public class WoPackagingBoxExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "订单ID") + private Long orderId; + @Excel(name = "工单ID(舍弃啊)") + private Long workOrderId; + @Excel(name = "包装箱编号,这个就是boxId,关联 t_wo_packaging_box表的 boxId") + private String boxNo; + @Excel(name = "功率,单位瓦(舍弃)") + private Integer power; + @Excel(name = "等级(舍弃)") + private Integer grade; + @Excel(name = "基板数量,每个包装箱最大20片(舍弃)") + private Integer substrateQuantity; + @Excel(name = "装箱完成时间,指的是包装完成时间") + private LocalDateTime packagingTime; + @Excel(name = "打印时间(最近一次打印时间)") + private LocalDateTime printTime; + @Excel(name = "打印状态:0、未打印,1、已打印") + private Integer printStatus; + @Excel(name = "报工状态:0、未报工,1、已报工(舍弃)") + private Integer completionReportingStatus; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + @Excel(name = "离开产线时间(舍弃)") + private LocalDateTime leaveLineTime; + @Excel(name = "下片端口id(舍弃)") + private String portId; + @Excel(name = "打印次数") + private Integer printCount; + @Excel(name = "功率等级") + private String powerLevel; + @Excel(name = "客户id(舍弃)") + private Long customerId; + @Excel(name = "SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + @Excel(name = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + @Excel(name = "模式,1-手动模式;2-自动模式") + private Integer model; + @Excel(name = "是否到达包装台,1=到达;2=未达到") + private Integer isArrived; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxSubstrateExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxSubstrateExcel.java new file mode 100644 index 0000000..9649b51 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxSubstrateExcel.java @@ -0,0 +1,52 @@ +package com.cnbm.packing.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 包装箱基板关联表 ( 基板表 ) + * + * @author codeGenerator + * @since 2023-02-21 + */ +@Data +public class WoPackagingBoxSubstrateExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "包装箱ID,BoxId") + private String packagingBoxId; + @Excel(name = "基板ID") + private String woSubstrateId; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + @Excel(name = "箱中位置") + private Integer slot; + @Excel(name = "进入时间") + private LocalDateTime inputTime; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + @Excel(name = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + @Excel(name = "功率等级") + private String powerLevel; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingPrintHistoryExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingPrintHistoryExcel.java new file mode 100644 index 0000000..025a205 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingPrintHistoryExcel.java @@ -0,0 +1,53 @@ +package com.cnbm.packing.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Data +public class WoPackagingPrintHistoryExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "包装箱编号,关联t_wo_packaging_box.box_no") + private String boxNo; + @Excel(name = "打印时间") + private LocalDateTime printTime; + @Excel(name = "报工时间") + private LocalDateTime completionReportingTime; + @Excel(name = "打印状态:0、未打印,1、已打印") + private Integer printStatus; + @Excel(name = "报工状态:0、未报工,1、已报工, 指的是向ERP报工") + private Integer completionReportingStatus; + @Excel(name = "移箱时间,指的是 箱子离开产线时间") + private LocalDateTime leaveLineTime; + @Excel(name = "下片端口id") + private String portId; + @Excel(name = "打印次数") + private Integer printCount; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + @Excel(name = "备注") + private String remark; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/WoPowerLevelExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPowerLevelExcel.java new file mode 100644 index 0000000..2b46d13 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPowerLevelExcel.java @@ -0,0 +1,58 @@ +package com.cnbm.packing.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +public class WoPowerLevelExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "功率等级名称,(现场人员手动录入)") + private Integer powerClass; + @Excel(name = "pmpp_low,(现场人员手动录入)") + private Float pmppLow; + @Excel(name = "pmpp_high,(现场人员手动录入)") + private Float pmppHigh; + @Excel(name = "物料号,(现场人员手动录入)") + private String sapMaterialNum; + @Excel(name = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + @Excel(name = "lable_voc,(手动录入)") + private BigDecimal lableVoc; + @Excel(name = "lable_isc,(手动录入)") + private BigDecimal lableIsc; + @Excel(name = "lable_vmpp,(手动录入)") + private BigDecimal lableVmpp; + @Excel(name = "lable_impp,(手动录入)") + private BigDecimal lableImpp; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/mapper/ChangePackagingBoxHistoryMapper.java b/ym-packing/src/main/java/com/cnbm/packing/mapper/ChangePackagingBoxHistoryMapper.java new file mode 100644 index 0000000..45921e5 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/mapper/ChangePackagingBoxHistoryMapper.java @@ -0,0 +1,21 @@ +package com.cnbm.packing.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.packing.entity.ChangePackagingBoxHistory; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Mapper +public interface ChangePackagingBoxHistoryMapper extends BaseDao { + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/mapper/PrintModelMapper.java b/ym-packing/src/main/java/com/cnbm/packing/mapper/PrintModelMapper.java new file mode 100644 index 0000000..831a3d0 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/mapper/PrintModelMapper.java @@ -0,0 +1,21 @@ +package com.cnbm.packing.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.packing.dto.PrintModelDTO; +import com.cnbm.packing.entity.PrintModel; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Mapper +public interface PrintModelMapper extends BaseDao { + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/mapper/WoCompensationPowerMapper.java b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoCompensationPowerMapper.java new file mode 100644 index 0000000..9a0e68e --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoCompensationPowerMapper.java @@ -0,0 +1,21 @@ +package com.cnbm.packing.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.packing.dto.WoCompensationPowerDTO; +import com.cnbm.packing.entity.WoCompensationPower; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Mapper +public interface WoCompensationPowerMapper extends BaseDao { + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxMapper.java b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxMapper.java new file mode 100644 index 0000000..6bed476 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxMapper.java @@ -0,0 +1,27 @@ +package com.cnbm.packing.mapper; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.cnbm.common.dao.BaseDao; +import com.cnbm.common.page.PageData; +import com.cnbm.packing.dto.WoPackagingBoxDTO; +import com.cnbm.packing.dto.WoPowerLevelDTO; +import com.cnbm.packing.entity.WoPackagingBox; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; +import java.util.Map; + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Mapper +public interface WoPackagingBoxMapper extends BaseDao { + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxSubstrateMapper.java b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxSubstrateMapper.java new file mode 100644 index 0000000..985ed54 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxSubstrateMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.packing.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.packing.entity.WoPackagingBoxSubstrate; +import org.apache.ibatis.annotations.Mapper; + +/** + * 包装箱基板关联表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Mapper +public interface WoPackagingBoxSubstrateMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingPrintHistoryMapper.java b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingPrintHistoryMapper.java new file mode 100644 index 0000000..0e41091 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingPrintHistoryMapper.java @@ -0,0 +1,21 @@ +package com.cnbm.packing.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.packing.dto.WoPackagingPrintHistoryDTO; +import com.cnbm.packing.entity.WoPackagingPrintHistory; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Mapper +public interface WoPackagingPrintHistoryMapper extends BaseDao { + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPowerLevelMapper.java b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPowerLevelMapper.java new file mode 100644 index 0000000..971ca97 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/mapper/WoPowerLevelMapper.java @@ -0,0 +1,21 @@ +package com.cnbm.packing.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.packing.dto.WoPowerLevelDTO; +import com.cnbm.packing.entity.WoPowerLevel; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Mapper +public interface WoPowerLevelMapper extends BaseDao { + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/ChangePackagingBoxHistoryServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/ChangePackagingBoxHistoryServiceBiz.java new file mode 100644 index 0000000..30e83df --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/ChangePackagingBoxHistoryServiceBiz.java @@ -0,0 +1,29 @@ +package com.cnbm.packing.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.packing.entity.ChangePackagingBoxHistory; + +import java.util.Map; + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +public interface ChangePackagingBoxHistoryServiceBiz extends CrudService { + + PageData page (Map params); + + ChangePackagingBoxHistoryDTO get(Long id); + + void save(ChangePackagingBoxHistoryDTO dto); + + void update(ChangePackagingBoxHistoryDTO dto); + + void delete(Long[] ids); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/PrintModelServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/PrintModelServiceBiz.java new file mode 100644 index 0000000..3317afb --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/PrintModelServiceBiz.java @@ -0,0 +1,34 @@ +package com.cnbm.packing.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.packing.dto.PrintModelDTO; +import com.cnbm.packing.dto.PrintModelDTO; +import com.cnbm.packing.entity.PrintModel; + +import java.util.List; +import java.util.Map; + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +public interface PrintModelServiceBiz extends CrudService { + + + PageData page (Map params); + + PrintModelDTO get(Long id); + + void save(PrintModelDTO dto); + + void update(PrintModelDTO dto); + + void delete(Long[] ids); + + List list(); + + String getCode(); +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/WoCompensationPowerServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/WoCompensationPowerServiceBiz.java new file mode 100644 index 0000000..9f4d381 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/WoCompensationPowerServiceBiz.java @@ -0,0 +1,31 @@ +package com.cnbm.packing.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.packing.dto.WoCompensationPowerDTO; +import com.cnbm.packing.entity.WoCompensationPower; + +import java.util.List; +import java.util.Map; + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +public interface WoCompensationPowerServiceBiz extends CrudService { + + PageData page (Map params); + + WoCompensationPowerDTO get(Long id); + + void save(WoCompensationPowerDTO dto); + + void update(WoCompensationPowerDTO dto); + + void delete(Long[] ids); + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingBoxServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingBoxServiceBiz.java new file mode 100644 index 0000000..7baca8b --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingBoxServiceBiz.java @@ -0,0 +1,32 @@ +package com.cnbm.packing.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.packing.dto.WoPackagingBoxDTO; +import com.cnbm.packing.dto.WoPackagingBoxDTO; +import com.cnbm.packing.entity.WoPackagingBox; + +import java.util.List; +import java.util.Map; + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +public interface WoPackagingBoxServiceBiz extends CrudService { + + PageData page (Map params); + + WoPackagingBoxDTO get(Long id); + + void save(WoPackagingBoxDTO dto); + + void update(WoPackagingBoxDTO dto); + + void delete(Long[] ids); + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingBoxSubstrateServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingBoxSubstrateServiceBiz.java new file mode 100644 index 0000000..4906841 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingBoxSubstrateServiceBiz.java @@ -0,0 +1,36 @@ +package com.cnbm.packing.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.packing.dto.WoPackagingBoxSubstrateDTO; +import com.cnbm.packing.entity.WoPackagingBoxSubstrate; + +import java.util.Map; + +/** + * 包装箱基板关联表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +public interface WoPackagingBoxSubstrateServiceBiz extends CrudService { + + PageData page (Map params); + + WoPackagingBoxSubstrateDTO get(Long id); + + void save(WoPackagingBoxSubstrateDTO dto); + + void update(WoPackagingBoxSubstrateDTO dto); + + void delete(Long[] ids); + + void removeSubstrate(Long id); + + void insertSubstrate(WoPackagingBoxSubstrateDTO dto); + + void replaceSubstrate(WoPackagingBoxSubstrateDTO[] dtos); + + void batchInsert(WoPackagingBoxSubstrateDTO[] lists); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingPrintHistoryServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingPrintHistoryServiceBiz.java new file mode 100644 index 0000000..11bc10c --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/WoPackagingPrintHistoryServiceBiz.java @@ -0,0 +1,31 @@ +package com.cnbm.packing.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.packing.dto.WoPackagingPrintHistoryDTO; +import com.cnbm.packing.entity.WoPackagingPrintHistory; + +import java.util.List; +import java.util.Map; + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +public interface WoPackagingPrintHistoryServiceBiz extends CrudService { + + PageData page (Map params); + + WoPackagingPrintHistoryDTO get(Long id); + + void save(WoPackagingPrintHistoryDTO dto); + + void update(WoPackagingPrintHistoryDTO dto); + + void delete(Long[] ids); + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/WoPowerLevelServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/WoPowerLevelServiceBiz.java new file mode 100644 index 0000000..c845a92 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/WoPowerLevelServiceBiz.java @@ -0,0 +1,31 @@ +package com.cnbm.packing.service; + +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.CrudService; +import com.cnbm.packing.dto.WoPowerLevelDTO; +import com.cnbm.packing.entity.WoPowerLevel; + +import java.util.List; +import java.util.Map; + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +public interface WoPowerLevelServiceBiz extends CrudService { + + PageData page (Map params); + + WoPowerLevelDTO get(Long id); + + void save(WoPowerLevelDTO dto); + + void update(WoPowerLevelDTO dto); + + void delete(Long[] ids); + + List list(); + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java new file mode 100644 index 0000000..5723762 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java @@ -0,0 +1,85 @@ +package com.cnbm.packing.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.common.utils.ConvertUtils; +import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.packing.entity.ChangePackagingBoxHistory; +import com.cnbm.packing.entity.ChangePackagingBoxHistory; +import com.cnbm.packing.entity.WoPowerLevel; +import com.cnbm.packing.mapper.ChangePackagingBoxHistoryMapper; +import com.cnbm.packing.service.ChangePackagingBoxHistoryServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.Map; + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Service +public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl implements ChangePackagingBoxHistoryServiceBiz { + + @Override + public QueryWrapper getWrapper(Map params){ + LocalDateTime startTime = (LocalDateTime) params.get("startTime"); + LocalDateTime endTime = (LocalDateTime) params.get("endTime"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.between(startTime!=null && endTime!=null,ChangePackagingBoxHistory.INPUT_TIME, startTime, endTime); + wrapper.between(startTime!=null && endTime!=null,ChangePackagingBoxHistory.LEAVE_TIME, startTime, endTime); + if(params.get("type")!=null) { + Integer type = Integer.parseInt( params.get("type").toString()); + wrapper.eq(ObjectUtils.isNotNull(type), ChangePackagingBoxHistory.TYPE, type); + } + + return wrapper; + } + + @Override + public PageData page (Map params){ + IPage page = baseDao.selectPage( + getPage(params, ChangePackagingBoxHistory.CREATE_TIME, true), + getWrapper(params) + ); + return getPageData(page, ChangePackagingBoxHistoryDTO.class); + } + + @Override + public ChangePackagingBoxHistoryDTO get(Long id) { + ChangePackagingBoxHistory entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, ChangePackagingBoxHistoryDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(ChangePackagingBoxHistoryDTO dto) { + ChangePackagingBoxHistory entity = ConvertUtils.sourceToTarget(dto, ChangePackagingBoxHistory.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(ChangePackagingBoxHistoryDTO dto) { + ChangePackagingBoxHistory entity = ConvertUtils.sourceToTarget(dto, ChangePackagingBoxHistory.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(Long[] ids) { + //删除 + deleteBatchIds(Arrays.asList(ids)); + } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java new file mode 100644 index 0000000..be2ee58 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java @@ -0,0 +1,95 @@ +package com.cnbm.packing.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.cnbm.admin.utils.CodeGeneratorHelper; +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.common.utils.ConvertUtils; +import com.cnbm.packing.dto.PrintModelDTO; +import com.cnbm.packing.entity.PrintModel; +import com.cnbm.packing.mapper.PrintModelMapper; +import com.cnbm.packing.service.PrintModelServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Service +public class PrintModelServiceBizImpl extends CrudServiceImpl implements PrintModelServiceBiz { + + @Autowired + private PrintModelMapper mapper; + + @Override + public QueryWrapper getWrapper(Map params){ + String name = (String)params.get("name"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.like(StringUtils.isNotBlank(name), PrintModel.NAME, name); + + return wrapper; + } + + @Override + public PageData page (Map params){ + IPage page = baseDao.selectPage( + getPage(params, PrintModel.ID, true), + getWrapper(params) + ); + return getPageData(page, PrintModelDTO.class); + } + + @Override + public PrintModelDTO get(Long id) { + PrintModel entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, PrintModelDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(PrintModelDTO dto) { + PrintModel entity = ConvertUtils.sourceToTarget(dto, PrintModel.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(PrintModelDTO dto) { + PrintModel entity = ConvertUtils.sourceToTarget(dto, PrintModel.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(Long[] ids) { + //删除 + deleteBatchIds(Arrays.asList(ids)); + } + + + @Override + @Transactional(rollbackFor = Exception.class) + public List list() { + List list = mapper.list(); + return list; + } + + @Override + @Transactional(rollbackFor = Exception.class) + public String getCode() { + return CodeGeneratorHelper.getPrintModelCode(); + } + + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoCompensationPowerServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoCompensationPowerServiceBizImpl.java new file mode 100644 index 0000000..9e42234 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoCompensationPowerServiceBizImpl.java @@ -0,0 +1,90 @@ +package com.cnbm.packing.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.common.utils.ConvertUtils; +import com.cnbm.packing.dto.WoCompensationPowerDTO; +import com.cnbm.packing.entity.WoCompensationPower; +import com.cnbm.packing.entity.WoPowerLevel; +import com.cnbm.packing.mapper.WoCompensationPowerMapper; +import com.cnbm.packing.service.WoCompensationPowerServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Service +public class WoCompensationPowerServiceBizImpl extends CrudServiceImpl implements WoCompensationPowerServiceBiz { + + @Autowired + private WoCompensationPowerMapper mapper; + + @Override + public QueryWrapper getWrapper(Map params){ + + QueryWrapper wrapper = new QueryWrapper<>(); + if(params.get("lineBody")!=null) { + Integer lineBody = Integer.parseInt(params.get("lineBody").toString()); + wrapper.eq(ObjectUtils.isNotNull(lineBody), WoCompensationPower.LINE_BODY, lineBody); + } + + return wrapper; + } + + @Override + public PageData page (Map params){ + IPage page = baseDao.selectPage( + getPage(params, WoCompensationPower.ID, true), + getWrapper(params) + ); + return getPageData(page, WoCompensationPowerDTO.class); + } + + @Override + public WoCompensationPowerDTO get(Long id) { + WoCompensationPower entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WoCompensationPowerDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WoCompensationPowerDTO dto) { + WoCompensationPower entity = ConvertUtils.sourceToTarget(dto, WoCompensationPower.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WoCompensationPowerDTO dto) { + WoCompensationPower entity = ConvertUtils.sourceToTarget(dto, WoCompensationPower.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(Long[] ids) { + //删除 + deleteBatchIds(Arrays.asList(ids)); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public List list() { + List list = mapper.list(); + return list; + } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java new file mode 100644 index 0000000..bd469e7 --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java @@ -0,0 +1,113 @@ +package com.cnbm.packing.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.common.utils.ConvertUtils; +import com.cnbm.packing.dto.WoPackagingBoxDTO; +import com.cnbm.packing.dto.WoPackagingBoxDTO; +import com.cnbm.packing.dto.WoPowerLevelDTO; +import com.cnbm.packing.entity.WoPackagingBox; +import com.cnbm.packing.entity.WoPackagingBox; +import com.cnbm.packing.entity.WoPowerLevel; +import com.cnbm.packing.mapper.WoPackagingBoxMapper; +import com.cnbm.packing.mapper.WoPackagingBoxMapper; +import com.cnbm.packing.service.WoPackagingBoxServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Service +public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl implements WoPackagingBoxServiceBiz { + + @Autowired + private WoPackagingBoxMapper mapper; + + @Override + public QueryWrapper getWrapper(Map params){ + + LocalDateTime startTime = (LocalDateTime) params.get("startTime"); + LocalDateTime endTime = (LocalDateTime) params.get("endTime"); + String boxNo = (String) params.get("boxNo"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.between(startTime!=null && endTime!=null,WoPackagingBox.PACKAGING_TIME, startTime, endTime); + wrapper.like(StringUtils.isNotBlank(boxNo), WoPackagingBox.BOX_NO, boxNo); + if(params.get("lineBody")!=null) { + Integer lineBody = Integer.parseInt(params.get("lineBody").toString()); + wrapper.eq(ObjectUtils.isNotNull(lineBody), WoPackagingBox.LINE_BODY, lineBody); + } + if(params.get("lineBody")!=null) { + Integer printStatus = Integer.parseInt(params.get("printStatus").toString()); + wrapper.eq(ObjectUtils.isNotNull(printStatus), WoPackagingBox.PRINT_STATUS, printStatus); + } + if(params.get("lineBody")!=null) { + Integer model = Integer.parseInt(params.get("model").toString()); + wrapper.eq(ObjectUtils.isNotNull(model), WoPackagingBox.MODEL, model); + } + + return wrapper; + } + + @Override + public PageData page (Map params){ + + IPage page = baseDao.selectPage( + getPage(params, WoPackagingBox.CREATE_TIME, false), + getWrapper(params) + ); + return getPageData(page, WoPackagingBoxDTO.class); + } + + @Override + public WoPackagingBoxDTO get(Long id) { + WoPackagingBox entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WoPackagingBoxDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WoPackagingBoxDTO dto) { + WoPackagingBox entity = ConvertUtils.sourceToTarget(dto, WoPackagingBox.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WoPackagingBoxDTO dto) { + WoPackagingBox entity = ConvertUtils.sourceToTarget(dto, WoPackagingBox.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(Long[] ids) { + //删除 + deleteBatchIds(Arrays.asList(ids)); + } + + + @Override + @Transactional(rollbackFor = Exception.class) + public List list() { + List list = mapper.list(); + return list; + } + + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java new file mode 100644 index 0000000..5a710cc --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java @@ -0,0 +1,165 @@ +package com.cnbm.packing.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.common.utils.ConvertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.packing.dto.WoPackagingBoxSubstrateDTO; +import com.cnbm.packing.entity.ChangePackagingBoxHistory; +import com.cnbm.packing.entity.WoPackagingBoxSubstrate; +import com.cnbm.packing.mapper.WoPackagingBoxMapper; +import com.cnbm.packing.mapper.WoPackagingBoxSubstrateMapper; +import com.cnbm.packing.service.ChangePackagingBoxHistoryServiceBiz; +import com.cnbm.packing.service.WoPackagingBoxSubstrateServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.Map; + +/** + * 包装箱基板关联表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Service +public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl implements WoPackagingBoxSubstrateServiceBiz { + + @Autowired + private ChangePackagingBoxHistoryServiceBiz changePackagingBoxHistoryService; + + @Resource + private WoPackagingBoxMapper woPackagingBoxMapper; + + @Resource + private WoPackagingBoxSubstrateMapper woPackagingBoxSubstrateMapper; + + @Override + public QueryWrapper getWrapper(Map params){ + String packagingBoxId = (String) params.get("packagingBoxId"); + String woSubstrateId = (String)params.get("woSubstrateId"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.like(StringUtils.isNotBlank(packagingBoxId), WoPackagingBoxSubstrate.PACKAGING_BOX_ID, packagingBoxId); + wrapper.like(StringUtils.isNotBlank(woSubstrateId), WoPackagingBoxSubstrate.WO_SUBSTRATE_ID, woSubstrateId); + + return wrapper; + } + + @Override + public PageData page (Map params){ + IPage page = baseDao.selectPage( + getPage(params, WoPackagingBoxSubstrate.SLOT, true), + getWrapper(params) + ); + return getPageData(page, WoPackagingBoxSubstrateDTO.class); + } + + @Override + public WoPackagingBoxSubstrateDTO get(Long id) { + WoPackagingBoxSubstrate entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WoPackagingBoxSubstrateDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WoPackagingBoxSubstrateDTO dto) { + WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WoPackagingBoxSubstrateDTO dto) { + WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(Long[] ids) { + //删除 + deleteBatchIds(Arrays.asList(ids)); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void removeSubstrate(Long id) { + WoPackagingBoxSubstrate entity = baseDao.selectById(id); + //移箱写入包装箱拆合箱历史表 + ChangePackagingBoxHistory changePackagingBoxHistory = new ChangePackagingBoxHistory(); + changePackagingBoxHistory.setSubstrateId(entity.getWoSubstrateId()); + changePackagingBoxHistory.setSourceBoxNo(entity.getPackagingBoxId()); + changePackagingBoxHistory.setSourceSlot(entity.getSlot()); + changePackagingBoxHistory.setLeaveTime(LocalDateTime.now()); + changePackagingBoxHistory.setType(2); + changePackagingBoxHistoryService.insert(changePackagingBoxHistory); + //模组从该包装箱中移出,该模组变为未绑定BoxID的模组 + entity.setPackagingBoxId(null); + entity.setSlot(null); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void insertSubstrate(WoPackagingBoxSubstrateDTO dto) { + WoPackagingBoxSubstrate entity = baseDao.selectById(dto.getId()); + //合箱写入包装箱拆合箱历史表 + ChangePackagingBoxHistory changePackagingBoxHistory = new ChangePackagingBoxHistory(); + changePackagingBoxHistory.setSubstrateId(dto.getWoSubstrateId()); + changePackagingBoxHistory.setTargetBoxNo(dto.getPackagingBoxId()); + changePackagingBoxHistory.setTargetSlot(dto.getSlot()); + changePackagingBoxHistory.setInputTime(LocalDateTime.now()); + changePackagingBoxHistory.setType(1); + changePackagingBoxHistoryService.insert(changePackagingBoxHistory); + //更新 + entity.setPackagingBoxId(dto.getPackagingBoxId()); + entity.setSlot(dto.getSlot()); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void replaceSubstrate(WoPackagingBoxSubstrateDTO[] dtos) { + for(WoPackagingBoxSubstrateDTO dto : dtos){ + WoPackagingBoxSubstrate entity = baseDao.selectById(dto.getId()); + //换箱写入包装箱拆合箱历史表 + ChangePackagingBoxHistory changePackagingBoxHistory = new ChangePackagingBoxHistory(); + changePackagingBoxHistory.setSubstrateId(dto.getWoSubstrateId()); + changePackagingBoxHistory.setTargetBoxNo(entity.getPackagingBoxId()); + changePackagingBoxHistory.setTargetSlot(entity.getSlot()); + changePackagingBoxHistory.setTargetBoxNo(dto.getPackagingBoxId()); + changePackagingBoxHistory.setTargetSlot(dto.getSlot()); + changePackagingBoxHistory.setType(3); + changePackagingBoxHistoryService.insert(changePackagingBoxHistory); + //更新 + entity.setPackagingBoxId(dto.getPackagingBoxId()); + entity.setSlot(dto.getSlot()); + updateById(entity); + } + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void batchInsert(WoPackagingBoxSubstrateDTO[] lists) { + for(WoPackagingBoxSubstrateDTO dto:lists){ + if(dto.getWoSubstrateId()==null){ + dto.setWoSubstrateId("无码"); + } + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class); + insert(entity); + } + } + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingPrintHistoryServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingPrintHistoryServiceBizImpl.java new file mode 100644 index 0000000..c530b2a --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingPrintHistoryServiceBizImpl.java @@ -0,0 +1,96 @@ +package com.cnbm.packing.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.common.utils.ConvertUtils; +import com.cnbm.packing.dto.WoPackagingPrintHistoryDTO; +import com.cnbm.packing.dto.WoPackagingPrintHistoryDTO; +import com.cnbm.packing.entity.WoPackagingBox; +import com.cnbm.packing.entity.WoPackagingPrintHistory; +import com.cnbm.packing.entity.WoPackagingPrintHistory; +import com.cnbm.packing.mapper.WoPackagingPrintHistoryMapper; +import com.cnbm.packing.mapper.WoPackagingPrintHistoryMapper; +import com.cnbm.packing.service.WoPackagingPrintHistoryServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Service +public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl implements WoPackagingPrintHistoryServiceBiz { + + @Autowired + private WoPackagingPrintHistoryMapper mapper; + + @Override + public QueryWrapper getWrapper(Map params){ + LocalDateTime startTime = (LocalDateTime) params.get("startTime"); + LocalDateTime endTime = (LocalDateTime) params.get("endTime"); + String boxNo = (String) params.get("boxNo"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.between(startTime!=null && endTime!=null, WoPackagingPrintHistory.PRINT_TIME, startTime, endTime); + wrapper.like(StringUtils.isNotBlank(boxNo), WoPackagingPrintHistory.BOX_NO, boxNo); + + return wrapper; + } + + @Override + public PageData page (Map params){ + IPage page = baseDao.selectPage( + getPage(params, WoPackagingPrintHistory.PRINT_TIME, false), + getWrapper(params) + ); + return getPageData(page, WoPackagingPrintHistoryDTO.class); + } + + @Override + public WoPackagingPrintHistoryDTO get(Long id) { + WoPackagingPrintHistory entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WoPackagingPrintHistoryDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WoPackagingPrintHistoryDTO dto) { + WoPackagingPrintHistory entity = ConvertUtils.sourceToTarget(dto, WoPackagingPrintHistory.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WoPackagingPrintHistoryDTO dto) { + WoPackagingPrintHistory entity = ConvertUtils.sourceToTarget(dto, WoPackagingPrintHistory.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(Long[] ids) { + //删除 + deleteBatchIds(Arrays.asList(ids)); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public List list() { + List list = mapper.list(); + return list; + } + + +} \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPowerLevelServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPowerLevelServiceBizImpl.java new file mode 100644 index 0000000..82ddbeb --- /dev/null +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPowerLevelServiceBizImpl.java @@ -0,0 +1,90 @@ +package com.cnbm.packing.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; +import com.cnbm.common.page.PageData; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.common.utils.ConvertUtils; +import com.cnbm.packing.dto.WoPowerLevelDTO; +import com.cnbm.packing.entity.WoPowerLevel; +import com.cnbm.packing.mapper.WoPowerLevelMapper; +import com.cnbm.packing.service.WoPowerLevelServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-15 + */ +@Service +public class WoPowerLevelServiceBizImpl extends CrudServiceImpl implements WoPowerLevelServiceBiz { + + @Autowired + private WoPowerLevelMapper mapper; + + @Override + public QueryWrapper getWrapper(Map params){ + + QueryWrapper wrapper = new QueryWrapper<>(); + if(params.get("lineBody")!=null) { + Integer lineBody = Integer.parseInt(params.get("lineBody").toString()); + wrapper.eq(ObjectUtils.isNotNull(lineBody), WoPowerLevel.LINE_BODY, lineBody); + } + + + return wrapper; + } + + @Override + public PageData page (Map params){ + IPage page = baseDao.selectPage( + getPage(params, WoPowerLevel.ID, true), + getWrapper(params) + ); + return getPageData(page, WoPowerLevelDTO.class); + } + + @Override + public WoPowerLevelDTO get(Long id) { + WoPowerLevel entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, WoPowerLevelDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(WoPowerLevelDTO dto) { + WoPowerLevel entity = ConvertUtils.sourceToTarget(dto, WoPowerLevel.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(WoPowerLevelDTO dto) { + WoPowerLevel entity = ConvertUtils.sourceToTarget(dto, WoPowerLevel.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(Long[] ids) { + //删除 + deleteBatchIds(Arrays.asList(ids)); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public List list() { + List list = mapper.list(); + return list; + } + +} \ No newline at end of file diff --git a/ym-packing/src/main/resources/mapper/ChangePackagingBoxHistoryMapper.xml b/ym-packing/src/main/resources/mapper/ChangePackagingBoxHistoryMapper.xml new file mode 100644 index 0000000..2b1c875 --- /dev/null +++ b/ym-packing/src/main/resources/mapper/ChangePackagingBoxHistoryMapper.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-packing/src/main/resources/mapper/PrintModleMapper.xml b/ym-packing/src/main/resources/mapper/PrintModleMapper.xml new file mode 100644 index 0000000..8fde847 --- /dev/null +++ b/ym-packing/src/main/resources/mapper/PrintModleMapper.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-packing/src/main/resources/mapper/WoCompensationPowerMapper.xml b/ym-packing/src/main/resources/mapper/WoCompensationPowerMapper.xml new file mode 100644 index 0000000..ff6a097 --- /dev/null +++ b/ym-packing/src/main/resources/mapper/WoCompensationPowerMapper.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-packing/src/main/resources/mapper/WoPackagingBoxMapper.xml b/ym-packing/src/main/resources/mapper/WoPackagingBoxMapper.xml new file mode 100644 index 0000000..cfc88c0 --- /dev/null +++ b/ym-packing/src/main/resources/mapper/WoPackagingBoxMapper.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-packing/src/main/resources/mapper/WoPackagingBoxSubstrateMapper.xml b/ym-packing/src/main/resources/mapper/WoPackagingBoxSubstrateMapper.xml new file mode 100644 index 0000000..5290639 --- /dev/null +++ b/ym-packing/src/main/resources/mapper/WoPackagingBoxSubstrateMapper.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-packing/src/main/resources/mapper/WoPackagingPrintHistoryMapper.xml b/ym-packing/src/main/resources/mapper/WoPackagingPrintHistoryMapper.xml new file mode 100644 index 0000000..fc9cdbe --- /dev/null +++ b/ym-packing/src/main/resources/mapper/WoPackagingPrintHistoryMapper.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-packing/src/main/resources/mapper/WoPowerLevelMapper.xml b/ym-packing/src/main/resources/mapper/WoPowerLevelMapper.xml new file mode 100644 index 0000000..58448fb --- /dev/null +++ b/ym-packing/src/main/resources/mapper/WoPowerLevelMapper.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.45.2 From ff4bfe3a8b548a21b66348241afd232372474386 Mon Sep 17 00:00:00 2001 From: yanyang Date: Wed, 22 Feb 2023 16:13:08 +0800 Subject: [PATCH 2/2] m --- .../ChangePackagingBoxHistoryController.java | 116 ++++++++++++ .../code/controller/PrintModelController.java | 116 ++++++++++++ .../WoCompensationPowerController.java | 116 ++++++++++++ .../controller/WoPackagingBoxController.java | 116 ++++++++++++ .../WoPackagingBoxSubstrateController.java | 116 ++++++++++++ .../WoPackagingPrintHistoryController.java | 116 ++++++++++++ .../controller/WoPowerLevelController.java | 116 ++++++++++++ .../dto/ChangePackagingBoxHistoryDTO.java | 80 ++++++++ .../generator/code/dto/PrintModelDTO.java | 80 ++++++++ .../code/dto/WoCompensationPowerDTO.java | 74 ++++++++ .../generator/code/dto/WoPackagingBoxDTO.java | 113 ++++++++++++ .../code/dto/WoPackagingBoxSubstrateDTO.java | 74 ++++++++ .../code/dto/WoPackagingPrintHistoryDTO.java | 83 +++++++++ .../generator/code/dto/WoPowerLevelDTO.java | 83 +++++++++ .../entity/ChangePackagingBoxHistory.java | 118 ++++++++++++ .../generator/code/entity/PrintModel.java | 118 ++++++++++++ .../code/entity/WoCompensationPower.java | 108 +++++++++++ .../generator/code/entity/WoPackagingBox.java | 173 ++++++++++++++++++ .../code/entity/WoPackagingBoxSubstrate.java | 108 +++++++++++ .../code/entity/WoPackagingPrintHistory.java | 123 +++++++++++++ .../generator/code/entity/WoPowerLevel.java | 124 +++++++++++++ .../excel/ChangePackagingBoxHistoryExcel.java | 56 ++++++ .../generator/code/excel/PrintModelExcel.java | 56 ++++++ .../code/excel/WoCompensationPowerExcel.java | 52 ++++++ .../code/excel/WoPackagingBoxExcel.java | 78 ++++++++ .../excel/WoPackagingBoxSubstrateExcel.java | 52 ++++++ .../excel/WoPackagingPrintHistoryExcel.java | 58 ++++++ .../code/excel/WoPowerLevelExcel.java | 58 ++++++ .../ChangePackagingBoxHistoryMapper.java | 16 ++ .../ChangePackagingBoxHistoryMapper.xml | 25 +++ .../code/mapper/PrintModelMapper.java | 16 ++ .../code/mapper/PrintModelMapper.xml | 25 +++ .../mapper/WoCompensationPowerMapper.java | 16 ++ .../code/mapper/WoCompensationPowerMapper.xml | 23 +++ .../code/mapper/WoPackagingBoxMapper.java | 16 ++ .../code/mapper/WoPackagingBoxMapper.xml | 36 ++++ .../mapper/WoPackagingBoxSubstrateMapper.java | 16 ++ .../mapper/WoPackagingBoxSubstrateMapper.xml | 23 +++ .../mapper/WoPackagingPrintHistoryMapper.java | 16 ++ .../mapper/WoPackagingPrintHistoryMapper.xml | 26 +++ .../code/mapper/WoPowerLevelMapper.java | 16 ++ .../code/mapper/WoPowerLevelMapper.xml | 26 +++ .../mysql/ChangePackagingBoxHistorymysql.sql | 7 + .../generator/code/mysql/PrintModelmysql.sql | 7 + .../code/mysql/WoCompensationPowermysql.sql | 7 + .../mysql/WoPackagingBoxSubstratemysql.sql | 7 + .../code/mysql/WoPackagingBoxmysql.sql | 7 + .../mysql/WoPackagingPrintHistorymysql.sql | 7 + .../code/mysql/WoPowerLevelmysql.sql | 7 + .../ChangePackagingBoxHistoryServiceBiz.java | 15 ++ .../code/service/PrintModelServiceBiz.java | 15 ++ .../WoCompensationPowerServiceBiz.java | 15 ++ .../service/WoPackagingBoxServiceBiz.java | 15 ++ .../WoPackagingBoxSubstrateServiceBiz.java | 15 ++ .../WoPackagingPrintHistoryServiceBiz.java | 15 ++ .../code/service/WoPowerLevelServiceBiz.java | 15 ++ ...angePackagingBoxHistoryServiceBizImpl.java | 34 ++++ .../impl/PrintModelServiceBizImpl.java | 34 ++++ .../WoCompensationPowerServiceBizImpl.java | 34 ++++ .../impl/WoPackagingBoxServiceBizImpl.java | 34 ++++ ...WoPackagingBoxSubstrateServiceBizImpl.java | 34 ++++ ...WoPackagingPrintHistoryServiceBizImpl.java | 34 ++++ .../impl/WoPowerLevelServiceBizImpl.java | 34 ++++ ym-packing/pom.xml | 5 - 64 files changed, 3369 insertions(+), 5 deletions(-) create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/controller/ChangePackagingBoxHistoryController.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/controller/PrintModelController.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/controller/WoCompensationPowerController.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxController.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxSubstrateController.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingPrintHistoryController.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPowerLevelController.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/dto/ChangePackagingBoxHistoryDTO.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/dto/PrintModelDTO.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/dto/WoCompensationPowerDTO.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxDTO.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxSubstrateDTO.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingPrintHistoryDTO.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPowerLevelDTO.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/entity/ChangePackagingBoxHistory.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/entity/PrintModel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/entity/WoCompensationPower.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBox.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBoxSubstrate.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingPrintHistory.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPowerLevel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/excel/ChangePackagingBoxHistoryExcel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/excel/PrintModelExcel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/excel/WoCompensationPowerExcel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxExcel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxSubstrateExcel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingPrintHistoryExcel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPowerLevelExcel.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/ChangePackagingBoxHistoryMapper.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/ChangePackagingBoxHistoryMapper.xml create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.xml create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoCompensationPowerMapper.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoCompensationPowerMapper.xml create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxMapper.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxMapper.xml create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.xml create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingPrintHistoryMapper.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingPrintHistoryMapper.xml create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPowerLevelMapper.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPowerLevelMapper.xml create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mysql/ChangePackagingBoxHistorymysql.sql create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mysql/PrintModelmysql.sql create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoCompensationPowermysql.sql create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxSubstratemysql.sql create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxmysql.sql create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingPrintHistorymysql.sql create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPowerLevelmysql.sql create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/ChangePackagingBoxHistoryServiceBiz.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/PrintModelServiceBiz.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/WoCompensationPowerServiceBiz.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxServiceBiz.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxSubstrateServiceBiz.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingPrintHistoryServiceBiz.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/WoPowerLevelServiceBiz.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/impl/PrintModelServiceBizImpl.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoCompensationPowerServiceBizImpl.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxServiceBizImpl.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingPrintHistoryServiceBizImpl.java create mode 100644 ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPowerLevelServiceBizImpl.java diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/ChangePackagingBoxHistoryController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/ChangePackagingBoxHistoryController.java new file mode 100644 index 0000000..82d7f80 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/ChangePackagingBoxHistoryController.java @@ -0,0 +1,116 @@ +package com.cnbm.generator.code.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.generator.code.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.generator.code.excel.ChangePackagingBoxHistoryExcel; +import com.cnbm.generator.code.service.ChangePackagingBoxHistoryServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 包装箱拆合箱历史表 前端控制器 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@RestController +@RequestMapping("/code/changePackagingBoxHistory") +@Api(tags="包装箱拆合箱历史表") +public class ChangePackagingBoxHistoryController { + @Autowired + private ChangePackagingBoxHistoryServiceBiz changePackagingBoxHistoryService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + @PreAuthorize("@ex.hasAuthority('code:changePackagingBoxHistory:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = changePackagingBoxHistoryService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @PreAuthorize("@ex.hasAuthority('code:changePackagingBoxHistory:info')") + public Result get(@PathVariable("id") Long id){ + ChangePackagingBoxHistoryDTO data = changePackagingBoxHistoryService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('code:changePackagingBoxHistory:save')") + public Result save(@RequestBody ChangePackagingBoxHistoryDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + changePackagingBoxHistoryService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('code:changePackagingBoxHistory:update')") + public Result update(@RequestBody ChangePackagingBoxHistoryDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + changePackagingBoxHistoryService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('code:changePackagingBoxHistory:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + changePackagingBoxHistoryService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('code:changePackagingBoxHistory:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = changePackagingBoxHistoryService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, ChangePackagingBoxHistoryExcel.class); + } + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/PrintModelController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/PrintModelController.java new file mode 100644 index 0000000..804f2a2 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/PrintModelController.java @@ -0,0 +1,116 @@ +package com.cnbm.generator.code.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.generator.code.dto.PrintModelDTO; +import com.cnbm.generator.code.excel.PrintModelExcel; +import com.cnbm.generator.code.service.PrintModelServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 打印标签模板表 前端控制器 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@RestController +@RequestMapping("/code/printModel") +@Api(tags="打印标签模板表") +public class PrintModelController { + @Autowired + private PrintModelServiceBiz printModelService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + @PreAuthorize("@ex.hasAuthority('code:printModel:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = printModelService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @PreAuthorize("@ex.hasAuthority('code:printModel:info')") + public Result get(@PathVariable("id") Long id){ + PrintModelDTO data = printModelService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('code:printModel:save')") + public Result save(@RequestBody PrintModelDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + printModelService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('code:printModel:update')") + public Result update(@RequestBody PrintModelDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + printModelService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('code:printModel:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + printModelService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('code:printModel:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = printModelService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, PrintModelExcel.class); + } + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoCompensationPowerController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoCompensationPowerController.java new file mode 100644 index 0000000..6e7e0e4 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoCompensationPowerController.java @@ -0,0 +1,116 @@ +package com.cnbm.generator.code.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.generator.code.dto.WoCompensationPowerDTO; +import com.cnbm.generator.code.excel.WoCompensationPowerExcel; +import com.cnbm.generator.code.service.WoCompensationPowerServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 基板补偿功率 表 前端控制器 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@RestController +@RequestMapping("/code/woCompensationPower") +@Api(tags="基板补偿功率 表") +public class WoCompensationPowerController { + @Autowired + private WoCompensationPowerServiceBiz woCompensationPowerService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + @PreAuthorize("@ex.hasAuthority('code:woCompensationPower:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woCompensationPowerService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @PreAuthorize("@ex.hasAuthority('code:woCompensationPower:info')") + public Result get(@PathVariable("id") Long id){ + WoCompensationPowerDTO data = woCompensationPowerService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('code:woCompensationPower:save')") + public Result save(@RequestBody WoCompensationPowerDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woCompensationPowerService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('code:woCompensationPower:update')") + public Result update(@RequestBody WoCompensationPowerDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woCompensationPowerService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('code:woCompensationPower:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woCompensationPowerService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('code:woCompensationPower:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woCompensationPowerService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoCompensationPowerExcel.class); + } + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxController.java new file mode 100644 index 0000000..8dece49 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxController.java @@ -0,0 +1,116 @@ +package com.cnbm.generator.code.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.generator.code.dto.WoPackagingBoxDTO; +import com.cnbm.generator.code.excel.WoPackagingBoxExcel; +import com.cnbm.generator.code.service.WoPackagingBoxServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 包装箱表 前端控制器 + * + * @author codeGenerator + * @since 2023-02-22 + */ +@RestController +@RequestMapping("/code/woPackagingBox") +@Api(tags="包装箱表") +public class WoPackagingBoxController { + @Autowired + private WoPackagingBoxServiceBiz woPackagingBoxService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + @PreAuthorize("@ex.hasAuthority('code:woPackagingBox:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woPackagingBoxService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBox:info')") + public Result get(@PathVariable("id") Long id){ + WoPackagingBoxDTO data = woPackagingBoxService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBox:save')") + public Result save(@RequestBody WoPackagingBoxDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woPackagingBoxService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBox:update')") + public Result update(@RequestBody WoPackagingBoxDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woPackagingBoxService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBox:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woPackagingBoxService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBox:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woPackagingBoxService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoPackagingBoxExcel.class); + } + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxSubstrateController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxSubstrateController.java new file mode 100644 index 0000000..39796ba --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxSubstrateController.java @@ -0,0 +1,116 @@ +package com.cnbm.generator.code.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.generator.code.dto.WoPackagingBoxSubstrateDTO; +import com.cnbm.generator.code.excel.WoPackagingBoxSubstrateExcel; +import com.cnbm.generator.code.service.WoPackagingBoxSubstrateServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 包装箱基板关联表 ( 基板表 ) 前端控制器 + * + * @author codeGenerator + * @since 2023-02-21 + */ +@RestController +@RequestMapping("/code/woPackagingBoxSubstrate") +@Api(tags="包装箱基板关联表 ( 基板表 )") +public class WoPackagingBoxSubstrateController { + @Autowired + private WoPackagingBoxSubstrateServiceBiz woPackagingBoxSubstrateService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + @PreAuthorize("@ex.hasAuthority('code:woPackagingBoxSubstrate:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woPackagingBoxSubstrateService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBoxSubstrate:info')") + public Result get(@PathVariable("id") Long id){ + WoPackagingBoxSubstrateDTO data = woPackagingBoxSubstrateService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBoxSubstrate:save')") + public Result save(@RequestBody WoPackagingBoxSubstrateDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woPackagingBoxSubstrateService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBoxSubstrate:update')") + public Result update(@RequestBody WoPackagingBoxSubstrateDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woPackagingBoxSubstrateService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBoxSubstrate:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woPackagingBoxSubstrateService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('code:woPackagingBoxSubstrate:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woPackagingBoxSubstrateService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoPackagingBoxSubstrateExcel.class); + } + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingPrintHistoryController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingPrintHistoryController.java new file mode 100644 index 0000000..9404059 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingPrintHistoryController.java @@ -0,0 +1,116 @@ +package com.cnbm.generator.code.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.generator.code.dto.WoPackagingPrintHistoryDTO; +import com.cnbm.generator.code.excel.WoPackagingPrintHistoryExcel; +import com.cnbm.generator.code.service.WoPackagingPrintHistoryServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 包装箱打印历史表 前端控制器 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@RestController +@RequestMapping("/code/woPackagingPrintHistory") +@Api(tags="包装箱打印历史表") +public class WoPackagingPrintHistoryController { + @Autowired + private WoPackagingPrintHistoryServiceBiz woPackagingPrintHistoryService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + @PreAuthorize("@ex.hasAuthority('code:woPackagingPrintHistory:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woPackagingPrintHistoryService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @PreAuthorize("@ex.hasAuthority('code:woPackagingPrintHistory:info')") + public Result get(@PathVariable("id") Long id){ + WoPackagingPrintHistoryDTO data = woPackagingPrintHistoryService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('code:woPackagingPrintHistory:save')") + public Result save(@RequestBody WoPackagingPrintHistoryDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woPackagingPrintHistoryService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('code:woPackagingPrintHistory:update')") + public Result update(@RequestBody WoPackagingPrintHistoryDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woPackagingPrintHistoryService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('code:woPackagingPrintHistory:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woPackagingPrintHistoryService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('code:woPackagingPrintHistory:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woPackagingPrintHistoryService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoPackagingPrintHistoryExcel.class); + } + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPowerLevelController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPowerLevelController.java new file mode 100644 index 0000000..ca94b5b --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPowerLevelController.java @@ -0,0 +1,116 @@ +package com.cnbm.generator.code.controller; + +import com.cnbm.admin.annotation.LogOperation; +import com.cnbm.common.constant.Constant; +import com.cnbm.common.page.PageData; +import com.cnbm.common.utils.ExcelUtils; +import com.cnbm.common.utils.Result; +import com.cnbm.common.validator.AssertUtils; +import com.cnbm.common.validator.ValidatorUtils; +import com.cnbm.common.validator.group.AddGroup; +import com.cnbm.common.validator.group.DefaultGroup; +import com.cnbm.common.validator.group.UpdateGroup; +import com.cnbm.generator.code.dto.WoPowerLevelDTO; +import com.cnbm.generator.code.excel.WoPowerLevelExcel; +import com.cnbm.generator.code.service.WoPowerLevelServiceBiz; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 功率等级 表 前端控制器 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@RestController +@RequestMapping("/code/woPowerLevel") +@Api(tags="功率等级 表") +public class WoPowerLevelController { + @Autowired + private WoPowerLevelServiceBiz woPowerLevelService; + + @GetMapping("page") + @ApiOperation("分页") + @ApiImplicitParams({ + @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , + @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + }) + @PreAuthorize("@ex.hasAuthority('code:woPowerLevel:page')") + public Result> page(@ApiIgnore @RequestParam Map params){ + PageData page = woPowerLevelService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @PreAuthorize("@ex.hasAuthority('code:woPowerLevel:info')") + public Result get(@PathVariable("id") Long id){ + WoPowerLevelDTO data = woPowerLevelService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('code:woPowerLevel:save')") + public Result save(@RequestBody WoPowerLevelDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + woPowerLevelService.save(dto); + + return new Result().ok(dto.getId()); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('code:woPowerLevel:update')") + public Result update(@RequestBody WoPowerLevelDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + woPowerLevelService.update(dto); + + return new Result().ok(dto.getId()); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('code:woPowerLevel:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + woPowerLevelService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('code:woPowerLevel:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = woPowerLevelService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, WoPowerLevelExcel.class); + } + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/ChangePackagingBoxHistoryDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/ChangePackagingBoxHistoryDTO.java new file mode 100644 index 0000000..6c014d1 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/ChangePackagingBoxHistoryDTO.java @@ -0,0 +1,80 @@ +package com.cnbm.generator.code.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Data +@ApiModel(value = "包装箱拆合箱历史表DTO对象") +public class ChangePackagingBoxHistoryDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "基板ID或模组id") + private String substrateId; + + @ApiModelProperty(value = "源包装箱box no, 关联t_wo_packaging_box.box_no 字段") + private Long sourceBoxNo; + + @ApiModelProperty(value = "源箱slot") + private Integer sourceSlot; + + @ApiModelProperty(value = "离开时间") + private LocalDateTime leaveTime; + + @ApiModelProperty(value = "目标箱box no, 关联t_wo_packaging_box.box_no 字段") + private Long targetBoxNo; + + @ApiModelProperty(value = "目标箱slot") + private Integer targetSlot; + + @ApiModelProperty(value = "进入时间") + private LocalDateTime inputTime; + + @ApiModelProperty(value = "等级") + private String grade; + + @ApiModelProperty(value = "类型,1为拆箱,2为合箱") + private Integer type; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/PrintModelDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/PrintModelDTO.java new file mode 100644 index 0000000..7f77aa0 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/PrintModelDTO.java @@ -0,0 +1,80 @@ +package com.cnbm.generator.code.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@ApiModel(value = "打印标签模板表DTO对象") +public class PrintModelDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "id") + private Long id; + + @ApiModelProperty(value = "编码") + private String code; + + @ApiModelProperty(value = "班组名称") + private String name; + + @ApiModelProperty(value = "启用状态:0 、停用,1、启用") + private Integer enabled; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "类型,0:模组标签,1:等级标签") + private Integer type; + + @ApiModelProperty(value = "是否默认模板,0:否,1:是") + private Integer isDefault; + + @ApiModelProperty(value = "是否要预览,0:否,1:是") + private Integer isPreview; + + @ApiModelProperty(value = "模板内容") + private String content; + + @ApiModelProperty(value = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoCompensationPowerDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoCompensationPowerDTO.java new file mode 100644 index 0000000..bf6b305 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoCompensationPowerDTO.java @@ -0,0 +1,74 @@ +package com.cnbm.generator.code.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@ApiModel(value = "基板补偿功率 表DTO对象") +public class WoCompensationPowerDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "实际功率下限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppLow; + + @ApiModelProperty(value = "实际功率上限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppHigh; + + @ApiModelProperty(value = "计算公式") + private String formula; + + @ApiModelProperty(value = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + @ApiModelProperty(value = "系数a,(手动录入)") + private Float coefficientA; + + @ApiModelProperty(value = "系数b,(手动录入)") + private Float coefficientB; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxDTO.java new file mode 100644 index 0000000..fedf84a --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxDTO.java @@ -0,0 +1,113 @@ +package com.cnbm.generator.code.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-22 + */ +@Data +@ApiModel(value = "包装箱表DTO对象") +public class WoPackagingBoxDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "订单ID") + private Long orderId; + + @ApiModelProperty(value = "工单ID(舍弃啊)") + private Long workOrderId; + + @ApiModelProperty(value = "包装箱编号,这个就是boxId,关联 t_wo_packaging_box表的 boxId") + private String boxNo; + + @ApiModelProperty(value = "功率,单位瓦(舍弃)") + private Integer power; + + @ApiModelProperty(value = "等级(舍弃)") + private Integer grade; + + @ApiModelProperty(value = "基板数量,每个包装箱最大20片(舍弃)") + private Integer substrateQuantity; + + @ApiModelProperty(value = "装箱完成时间,指的是包装完成时间") + private LocalDateTime packagingTime; + + @ApiModelProperty(value = "打印时间(最近一次打印时间)") + private LocalDateTime printTime; + + @ApiModelProperty(value = "打印状态:0、未打印,1、已打印") + private Integer printStatus; + + @ApiModelProperty(value = "报工状态:0、未报工,1、已报工(舍弃)") + private Integer completionReportingStatus; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + + @ApiModelProperty(value = "离开产线时间(舍弃)") + private LocalDateTime leaveLineTime; + + @ApiModelProperty(value = "下片端口id(舍弃)") + private String portId; + + @ApiModelProperty(value = "打印次数") + private Integer printCount; + + @ApiModelProperty(value = "功率等级") + private String powerLevel; + + @ApiModelProperty(value = "客户id(舍弃)") + private Long customerId; + + @ApiModelProperty(value = "SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + + @ApiModelProperty(value = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + + @ApiModelProperty(value = "模式,1-手动模式;2-自动模式") + private Integer model; + + @ApiModelProperty(value = "是否到达包装台,1=到达;2=未达到") + private Integer isArrived; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxSubstrateDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxSubstrateDTO.java new file mode 100644 index 0000000..2e7569f --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxSubstrateDTO.java @@ -0,0 +1,74 @@ +package com.cnbm.generator.code.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 包装箱基板关联表 ( 基板表 ) + * + * @author codeGenerator + * @since 2023-02-21 + */ +@Data +@ApiModel(value = "包装箱基板关联表 ( 基板表 )DTO对象") +public class WoPackagingBoxSubstrateDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "包装箱ID,BoxId") + private String packagingBoxId; + + @ApiModelProperty(value = "基板ID") + private String woSubstrateId; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + + @ApiModelProperty(value = "箱中位置") + private Integer slot; + + @ApiModelProperty(value = "进入时间") + private LocalDateTime inputTime; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + + @ApiModelProperty(value = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + + @ApiModelProperty(value = "功率等级") + private String powerLevel; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingPrintHistoryDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingPrintHistoryDTO.java new file mode 100644 index 0000000..3250838 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingPrintHistoryDTO.java @@ -0,0 +1,83 @@ +package com.cnbm.generator.code.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@ApiModel(value = "包装箱打印历史表DTO对象") +public class WoPackagingPrintHistoryDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "包装箱编号,关联t_wo_packaging_box.box_no") + private Long boxNo; + + @ApiModelProperty(value = "打印时间") + private LocalDateTime printTime; + + @ApiModelProperty(value = "报工时间(舍弃)") + private LocalDateTime completionReportingTime; + + @ApiModelProperty(value = "打印状态:0、未打印,1、已打印") + private Integer printStatus; + + @ApiModelProperty(value = "报工状态:0、未报工,1、已报工, 指的是向ERP报工(舍弃)") + private Integer completionReportingStatus; + + @ApiModelProperty(value = "移箱时间(点击打印后,这个时间从t_wo_packaging_box 里面带过来)") + private LocalDateTime leaveLineTime; + + @ApiModelProperty(value = "下片端口id(舍弃)") + private String portId; + + @ApiModelProperty(value = "打印次数") + private Integer printCount; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "模式,1-手动模式;2-自动模式") + private Integer model; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPowerLevelDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPowerLevelDTO.java new file mode 100644 index 0000000..5dd0390 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPowerLevelDTO.java @@ -0,0 +1,83 @@ +package com.cnbm.generator.code.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@ApiModel(value = "功率等级 表DTO对象") +public class WoPowerLevelDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "ID") + private Long id; + + @ApiModelProperty(value = "功率等级名称,(现场人员手动录入)") + private Integer powerClass; + + @ApiModelProperty(value = "pmpp_low,(现场人员手动录入)") + private Float pmppLow; + + @ApiModelProperty(value = "pmpp_high,(现场人员手动录入)") + private Float pmppHigh; + + @ApiModelProperty(value = "物料号,(现场人员手动录入)") + private String sapMaterialNum; + + @ApiModelProperty(value = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + @ApiModelProperty(value = "lable_voc,(手动录入)") + private BigDecimal lableVoc; + + @ApiModelProperty(value = "lable_isc,(手动录入)") + private BigDecimal lableIsc; + + @ApiModelProperty(value = "lable_vmpp,(手动录入)") + private BigDecimal lableVmpp; + + @ApiModelProperty(value = "lable_impp,(手动录入)") + private BigDecimal lableImpp; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "创建人") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "更新人") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/ChangePackagingBoxHistory.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/ChangePackagingBoxHistory.java new file mode 100644 index 0000000..d50196c --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/ChangePackagingBoxHistory.java @@ -0,0 +1,118 @@ +package com.cnbm.generator.code.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 包装箱拆合箱历史表 + *

+ * + * @author codeGenerator + * @since 2023-02-16 + */ +@Data +@TableName("t_change_packaging_box_history") +@ApiModel(value = "ChangePackagingBoxHistory对象", description = "包装箱拆合箱历史表") +public class ChangePackagingBoxHistory implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("基板ID或模组id") + private String substrateId; + + @ApiModelProperty("源包装箱box no, 关联t_wo_packaging_box.box_no 字段") + private Long sourceBoxNo; + + @ApiModelProperty("源箱slot") + private Integer sourceSlot; + + @ApiModelProperty("离开时间") + private LocalDateTime leaveTime; + + @ApiModelProperty("目标箱box no, 关联t_wo_packaging_box.box_no 字段") + private Long targetBoxNo; + + @ApiModelProperty("目标箱slot") + private Integer targetSlot; + + @ApiModelProperty("进入时间") + private LocalDateTime inputTime; + + @ApiModelProperty("等级") + private String grade; + + @ApiModelProperty("类型,1为拆箱,2为合箱") + private Integer type; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + + public static final String ID = "ID"; + + public static final String SUBSTRATE_ID = "SUBSTRATE_ID"; + + public static final String SOURCE_BOX_NO = "SOURCE_BOX_NO"; + + public static final String SOURCE_SLOT = "SOURCE_SLOT"; + + public static final String LEAVE_TIME = "LEAVE_TIME"; + + public static final String TARGET_BOX_NO = "TARGET_BOX_NO"; + + public static final String TARGET_SLOT = "TARGET_SLOT"; + + public static final String INPUT_TIME = "INPUT_TIME"; + + public static final String GRADE = "GRADE"; + + public static final String TYPE = "TYPE"; + + public static final String VALID = "VALID"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + +} diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/PrintModel.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/PrintModel.java new file mode 100644 index 0000000..58df496 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/PrintModel.java @@ -0,0 +1,118 @@ +package com.cnbm.generator.code.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 打印标签模板表 + *

+ * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@TableName("t_print_model") +@ApiModel(value = "PrintModel对象", description = "打印标签模板表") +public class PrintModel implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("id") + private Long id; + + @ApiModelProperty("编码") + private String code; + + @ApiModelProperty("班组名称") + private String name; + + @ApiModelProperty("启用状态:0 、停用,1、启用") + private Integer enabled; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("类型,0:模组标签,1:等级标签") + private Integer type; + + @ApiModelProperty("是否默认模板,0:否,1:是") + private Integer isDefault; + + @ApiModelProperty("是否要预览,0:否,1:是") + private Integer isPreview; + + @ApiModelProperty("模板内容") + private String content; + + @ApiModelProperty("线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + + public static final String ID = "ID"; + + public static final String CODE = "CODE"; + + public static final String NAME = "NAME"; + + public static final String ENABLED = "ENABLED"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + + public static final String VALID = "VALID"; + + public static final String REMARK = "REMARK"; + + public static final String TYPE = "TYPE"; + + public static final String IS_DEFAULT = "IS_DEFAULT"; + + public static final String IS_PREVIEW = "IS_PREVIEW"; + + public static final String CONTENT = "CONTENT"; + + public static final String LINE_BODY = "line_body"; + +} diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoCompensationPower.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoCompensationPower.java new file mode 100644 index 0000000..da5805a --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoCompensationPower.java @@ -0,0 +1,108 @@ +package com.cnbm.generator.code.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 基板补偿功率 表 + *

+ * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@TableName("t_wo_compensation_power") +@ApiModel(value = "WoCompensationPower对象", description = "基板补偿功率 表") +public class WoCompensationPower implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("实际功率下限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppLow; + + @ApiModelProperty("实际功率上限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppHigh; + + @ApiModelProperty("计算公式") + private String formula; + + @ApiModelProperty("线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + @ApiModelProperty("系数a,(手动录入)") + private Float coefficientA; + + @ApiModelProperty("系数b,(手动录入)") + private Float coefficientB; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + + public static final String ID = "id"; + + public static final String ACTL_PMPP_LOW = "actl_pmpp_low"; + + public static final String ACTL_PMPP_HIGH = "actl_pmpp_high"; + + public static final String FORMULA = "formula"; + + public static final String LINE_BODY = "line_body"; + + public static final String COEFFICIENT_A = "coefficient_a"; + + public static final String COEFFICIENT_B = "coefficient_b"; + + public static final String REMARK = "remark"; + + public static final String VALID = "valid"; + + public static final String CREATOR_ID = "creator_id"; + + public static final String CREATOR_NAME = "creator_name"; + + public static final String CREATE_TIME = "create_time"; + + public static final String UPDATER_ID = "updater_id"; + + public static final String UPDATER_NAME = "updater_name"; + + public static final String UPDATE_TIME = "update_time"; + + public static final String VERSION = "version"; + +} diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBox.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBox.java new file mode 100644 index 0000000..caed2b2 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBox.java @@ -0,0 +1,173 @@ +package com.cnbm.generator.code.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 包装箱表 + *

+ * + * @author codeGenerator + * @since 2023-02-22 + */ +@Data +@TableName("t_wo_packaging_box") +@ApiModel(value = "WoPackagingBox对象", description = "包装箱表") +public class WoPackagingBox implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("订单ID") + private Long orderId; + + @ApiModelProperty("工单ID(舍弃啊)") + private Long workOrderId; + + @ApiModelProperty("包装箱编号,这个就是boxId,关联 t_wo_packaging_box表的 boxId") + private String boxNo; + + @ApiModelProperty("功率,单位瓦(舍弃)") + private Integer power; + + @ApiModelProperty("等级(舍弃)") + private Integer grade; + + @ApiModelProperty("基板数量,每个包装箱最大20片(舍弃)") + private Integer substrateQuantity; + + @ApiModelProperty("装箱完成时间,指的是包装完成时间") + private LocalDateTime packagingTime; + + @ApiModelProperty("打印时间(最近一次打印时间)") + private LocalDateTime printTime; + + @ApiModelProperty("打印状态:0、未打印,1、已打印") + private Integer printStatus; + + @ApiModelProperty("报工状态:0、未报工,1、已报工(舍弃)") + private Integer completionReportingStatus; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + @ApiModelProperty("离开产线时间(舍弃)") + private LocalDateTime leaveLineTime; + + @ApiModelProperty("下片端口id(舍弃)") + private String portId; + + @ApiModelProperty("打印次数") + private Integer printCount; + + @ApiModelProperty("功率等级") + private String powerLevel; + + @ApiModelProperty("客户id(舍弃)") + private Long customerId; + + @ApiModelProperty("SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + + @ApiModelProperty("线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + + @ApiModelProperty("模式,1-手动模式;2-自动模式") + private Integer model; + + @ApiModelProperty("是否到达包装台,1=到达;2=未达到") + private Integer isArrived; + + + public static final String ID = "ID"; + + public static final String ORDER_ID = "ORDER_ID"; + + public static final String WORK_ORDER_ID = "WORK_ORDER_ID"; + + public static final String BOX_NO = "BOX_NO"; + + public static final String POWER = "POWER"; + + public static final String GRADE = "GRADE"; + + public static final String SUBSTRATE_QUANTITY = "SUBSTRATE_QUANTITY"; + + public static final String PACKAGING_TIME = "PACKAGING_TIME"; + + public static final String PRINT_TIME = "PRINT_TIME"; + + public static final String PRINT_STATUS = "PRINT_STATUS"; + + public static final String COMPLETION_REPORTING_STATUS = "COMPLETION_REPORTING_STATUS"; + + public static final String REMARK = "REMARK"; + + public static final String VALID = "VALID"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + + public static final String LEAVE_LINE_TIME = "LEAVE_LINE_TIME"; + + public static final String PORT_ID = "PORT_ID"; + + public static final String PRINT_COUNT = "PRINT_COUNT"; + + public static final String POWER_LEVEL = "POWER_LEVEL"; + + public static final String CUSTOMER_ID = "CUSTOMER_ID"; + + public static final String SAP_MATERIAL = "SAP_MATERIAL"; + + public static final String LINE_BODY = "LINE_BODY"; + + public static final String MODEL = "model"; + + public static final String IS_ARRIVED = "is_arrived"; + +} diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBoxSubstrate.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBoxSubstrate.java new file mode 100644 index 0000000..da3c388 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBoxSubstrate.java @@ -0,0 +1,108 @@ +package com.cnbm.generator.code.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 包装箱基板关联表 ( 基板表 ) + *

+ * + * @author codeGenerator + * @since 2023-02-21 + */ +@Data +@TableName("t_wo_packaging_box_substrate") +@ApiModel(value = "WoPackagingBoxSubstrate对象", description = "包装箱基板关联表 ( 基板表 )") +public class WoPackagingBoxSubstrate implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("包装箱ID,BoxId") + private String packagingBoxId; + + @ApiModelProperty("基板ID") + private String woSubstrateId; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + @ApiModelProperty("箱中位置") + private Integer slot; + + @ApiModelProperty("进入时间") + private LocalDateTime inputTime; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + + @ApiModelProperty("线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + + @ApiModelProperty("功率等级") + private String powerLevel; + + + public static final String ID = "ID"; + + public static final String PACKAGING_BOX_ID = "PACKAGING_BOX_ID"; + + public static final String WO_SUBSTRATE_ID = "WO_SUBSTRATE_ID"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + + public static final String SLOT = "SLOT"; + + public static final String INPUT_TIME = "INPUT_TIME"; + + public static final String VALID = "VALID"; + + public static final String SAP_MATERIAL = "SAP_MATERIAL"; + + public static final String LINE_BODY = "LINE_BODY"; + + public static final String POWER_LEVEL = "POWER_LEVEL"; + +} diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingPrintHistory.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingPrintHistory.java new file mode 100644 index 0000000..61069fc --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingPrintHistory.java @@ -0,0 +1,123 @@ +package com.cnbm.generator.code.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 包装箱打印历史表 + *

+ * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@TableName("t_wo_packaging_print_history") +@ApiModel(value = "WoPackagingPrintHistory对象", description = "包装箱打印历史表") +public class WoPackagingPrintHistory implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("包装箱编号,关联t_wo_packaging_box.box_no") + private Long boxNo; + + @ApiModelProperty("打印时间") + private LocalDateTime printTime; + + @ApiModelProperty("报工时间(舍弃)") + private LocalDateTime completionReportingTime; + + @ApiModelProperty("打印状态:0、未打印,1、已打印") + private Integer printStatus; + + @ApiModelProperty("报工状态:0、未报工,1、已报工, 指的是向ERP报工(舍弃)") + private Integer completionReportingStatus; + + @ApiModelProperty("移箱时间(点击打印后,这个时间从t_wo_packaging_box 里面带过来)") + private LocalDateTime leaveLineTime; + + @ApiModelProperty("下片端口id(舍弃)") + private String portId; + + @ApiModelProperty("打印次数") + private Integer printCount; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("模式,1-手动模式;2-自动模式") + private Integer model; + + + public static final String ID = "ID"; + + public static final String BOX_NO = "BOX_NO"; + + public static final String PRINT_TIME = "PRINT_TIME"; + + public static final String COMPLETION_REPORTING_TIME = "COMPLETION_REPORTING_TIME"; + + public static final String PRINT_STATUS = "PRINT_STATUS"; + + public static final String COMPLETION_REPORTING_STATUS = "COMPLETION_REPORTING_STATUS"; + + public static final String LEAVE_LINE_TIME = "LEAVE_LINE_TIME"; + + public static final String PORT_ID = "PORT_ID"; + + public static final String PRINT_COUNT = "PRINT_COUNT"; + + public static final String VALID = "VALID"; + + public static final String CREATOR_ID = "CREATOR_ID"; + + public static final String CREATOR_NAME = "CREATOR_NAME"; + + public static final String CREATE_TIME = "CREATE_TIME"; + + public static final String UPDATER_ID = "UPDATER_ID"; + + public static final String UPDATER_NAME = "UPDATER_NAME"; + + public static final String UPDATE_TIME = "UPDATE_TIME"; + + public static final String VERSION = "VERSION"; + + public static final String REMARK = "REMARK"; + + public static final String MODEL = "model"; + +} diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPowerLevel.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPowerLevel.java new file mode 100644 index 0000000..6b81412 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPowerLevel.java @@ -0,0 +1,124 @@ +package com.cnbm.generator.code.entity; + +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 功率等级 表 + *

+ * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +@TableName("t_wo_power_level") +@ApiModel(value = "WoPowerLevel对象", description = "功率等级 表") +public class WoPowerLevel implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty("ID") + private Long id; + + @ApiModelProperty("功率等级名称,(现场人员手动录入)") + private Integer powerClass; + + @ApiModelProperty("pmpp_low,(现场人员手动录入)") + private Float pmppLow; + + @ApiModelProperty("pmpp_high,(现场人员手动录入)") + private Float pmppHigh; + + @ApiModelProperty("物料号,(现场人员手动录入)") + private String sapMaterialNum; + + @ApiModelProperty("线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + + @ApiModelProperty("lable_voc,(手动录入)") + private BigDecimal lableVoc; + + @ApiModelProperty("lable_isc,(手动录入)") + private BigDecimal lableIsc; + + @ApiModelProperty("lable_vmpp,(手动录入)") + private BigDecimal lableVmpp; + + @ApiModelProperty("lable_impp,(手动录入)") + private BigDecimal lableImpp; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + @TableLogic + private Integer valid; + + @ApiModelProperty("创建人") + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + @ApiModelProperty("更新人") + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + + public static final String ID = "id"; + + public static final String POWER_CLASS = "power_class"; + + public static final String PMPP_LOW = "pmpp_low"; + + public static final String PMPP_HIGH = "pmpp_high"; + + public static final String SAP_MATERIAL_NUM = "sap_material_num"; + + public static final String LINE_BODY = "line_body"; + + public static final String LABLE_VOC = "lable_voc"; + + public static final String LABLE_ISC = "lable_isc"; + + public static final String LABLE_VMPP = "lable_vmpp"; + + public static final String LABLE_IMPP = "lable_impp"; + + public static final String REMARK = "remark"; + + public static final String VALID = "valid"; + + public static final String CREATOR_ID = "creator_id"; + + public static final String CREATOR_NAME = "creator_name"; + + public static final String CREATE_TIME = "create_time"; + + public static final String UPDATER_ID = "updater_id"; + + public static final String UPDATER_NAME = "updater_name"; + + public static final String UPDATE_TIME = "update_time"; + + public static final String VERSION = "version"; + +} diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/ChangePackagingBoxHistoryExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/ChangePackagingBoxHistoryExcel.java new file mode 100644 index 0000000..595b11a --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/ChangePackagingBoxHistoryExcel.java @@ -0,0 +1,56 @@ +package com.cnbm.generator.code.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Data +public class ChangePackagingBoxHistoryExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "基板ID或模组id") + private String substrateId; + @Excel(name = "源包装箱box no, 关联t_wo_packaging_box.box_no 字段") + private Long sourceBoxNo; + @Excel(name = "源箱slot") + private Integer sourceSlot; + @Excel(name = "离开时间") + private LocalDateTime leaveTime; + @Excel(name = "目标箱box no, 关联t_wo_packaging_box.box_no 字段") + private Long targetBoxNo; + @Excel(name = "目标箱slot") + private Integer targetSlot; + @Excel(name = "进入时间") + private LocalDateTime inputTime; + @Excel(name = "等级") + private String grade; + @Excel(name = "类型,1为拆箱,2为合箱") + private Integer type; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/PrintModelExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/PrintModelExcel.java new file mode 100644 index 0000000..77d623d --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/PrintModelExcel.java @@ -0,0 +1,56 @@ +package com.cnbm.generator.code.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +public class PrintModelExcel { + @Excel(name = "id") + private Long id; + @Excel(name = "编码") + private String code; + @Excel(name = "班组名称") + private String name; + @Excel(name = "启用状态:0 、停用,1、启用") + private Integer enabled; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "备注") + private String remark; + @Excel(name = "类型,0:模组标签,1:等级标签") + private Integer type; + @Excel(name = "是否默认模板,0:否,1:是") + private Integer isDefault; + @Excel(name = "是否要预览,0:否,1:是") + private Integer isPreview; + @Excel(name = "模板内容") + private String content; + @Excel(name = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoCompensationPowerExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoCompensationPowerExcel.java new file mode 100644 index 0000000..5a5be5f --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoCompensationPowerExcel.java @@ -0,0 +1,52 @@ +package com.cnbm.generator.code.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +public class WoCompensationPowerExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "实际功率下限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppLow; + @Excel(name = "实际功率上限,(现场人员手动录入),如果实际功率不在范围,那么实际功率就是补偿功率") + private Float actlPmppHigh; + @Excel(name = "计算公式") + private String formula; + @Excel(name = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + @Excel(name = "系数a,(手动录入)") + private Float coefficientA; + @Excel(name = "系数b,(手动录入)") + private Float coefficientB; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxExcel.java new file mode 100644 index 0000000..83a31bb --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxExcel.java @@ -0,0 +1,78 @@ +package com.cnbm.generator.code.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-22 + */ +@Data +public class WoPackagingBoxExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "订单ID") + private Long orderId; + @Excel(name = "工单ID(舍弃啊)") + private Long workOrderId; + @Excel(name = "包装箱编号,这个就是boxId,关联 t_wo_packaging_box表的 boxId") + private String boxNo; + @Excel(name = "功率,单位瓦(舍弃)") + private Integer power; + @Excel(name = "等级(舍弃)") + private Integer grade; + @Excel(name = "基板数量,每个包装箱最大20片(舍弃)") + private Integer substrateQuantity; + @Excel(name = "装箱完成时间,指的是包装完成时间") + private LocalDateTime packagingTime; + @Excel(name = "打印时间(最近一次打印时间)") + private LocalDateTime printTime; + @Excel(name = "打印状态:0、未打印,1、已打印") + private Integer printStatus; + @Excel(name = "报工状态:0、未报工,1、已报工(舍弃)") + private Integer completionReportingStatus; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + @Excel(name = "离开产线时间(舍弃)") + private LocalDateTime leaveLineTime; + @Excel(name = "下片端口id(舍弃)") + private String portId; + @Excel(name = "打印次数") + private Integer printCount; + @Excel(name = "功率等级") + private String powerLevel; + @Excel(name = "客户id(舍弃)") + private Long customerId; + @Excel(name = "SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + @Excel(name = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + @Excel(name = "模式,1-手动模式;2-自动模式") + private Integer model; + @Excel(name = "是否到达包装台,1=到达;2=未达到") + private Integer isArrived; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxSubstrateExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxSubstrateExcel.java new file mode 100644 index 0000000..c2758ae --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxSubstrateExcel.java @@ -0,0 +1,52 @@ +package com.cnbm.generator.code.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 包装箱基板关联表 ( 基板表 ) + * + * @author codeGenerator + * @since 2023-02-21 + */ +@Data +public class WoPackagingBoxSubstrateExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "包装箱ID,BoxId") + private String packagingBoxId; + @Excel(name = "基板ID") + private String woSubstrateId; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + @Excel(name = "箱中位置") + private Integer slot; + @Excel(name = "进入时间") + private LocalDateTime inputTime; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "SAP MATERIAL,从t_wo_power_level 对应过来的") + private String sapMaterial; + @Excel(name = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + private Integer lineBody; + @Excel(name = "功率等级") + private String powerLevel; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingPrintHistoryExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingPrintHistoryExcel.java new file mode 100644 index 0000000..b0c295e --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingPrintHistoryExcel.java @@ -0,0 +1,58 @@ +package com.cnbm.generator.code.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +public class WoPackagingPrintHistoryExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "包装箱编号,关联t_wo_packaging_box.box_no") + private Long boxNo; + @Excel(name = "打印时间") + private LocalDateTime printTime; + @Excel(name = "报工时间(舍弃)") + private LocalDateTime completionReportingTime; + @Excel(name = "打印状态:0、未打印,1、已打印") + private Integer printStatus; + @Excel(name = "报工状态:0、未报工,1、已报工, 指的是向ERP报工(舍弃)") + private Integer completionReportingStatus; + @Excel(name = "移箱时间(点击打印后,这个时间从t_wo_packaging_box 里面带过来)") + private LocalDateTime leaveLineTime; + @Excel(name = "下片端口id(舍弃)") + private String portId; + @Excel(name = "打印次数") + private Integer printCount; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + @Excel(name = "备注") + private String remark; + @Excel(name = "模式,1-手动模式;2-自动模式") + private Integer model; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPowerLevelExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPowerLevelExcel.java new file mode 100644 index 0000000..6dd56ea --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPowerLevelExcel.java @@ -0,0 +1,58 @@ +package com.cnbm.generator.code.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Data +public class WoPowerLevelExcel { + @Excel(name = "ID") + private Long id; + @Excel(name = "功率等级名称,(现场人员手动录入)") + private Integer powerClass; + @Excel(name = "pmpp_low,(现场人员手动录入)") + private Float pmppLow; + @Excel(name = "pmpp_high,(现场人员手动录入)") + private Float pmppHigh; + @Excel(name = "物料号,(现场人员手动录入)") + private String sapMaterialNum; + @Excel(name = "线体,1=F ; 2=S (用于过程1比对,和包装打印)(设备传给我们的)") + private Integer lineBody; + @Excel(name = "lable_voc,(手动录入)") + private BigDecimal lableVoc; + @Excel(name = "lable_isc,(手动录入)") + private BigDecimal lableIsc; + @Excel(name = "lable_vmpp,(手动录入)") + private BigDecimal lableVmpp; + @Excel(name = "lable_impp,(手动录入)") + private BigDecimal lableImpp; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "创建人") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "更新人") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ChangePackagingBoxHistoryMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ChangePackagingBoxHistoryMapper.java new file mode 100644 index 0000000..5e70382 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ChangePackagingBoxHistoryMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.generator.code.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.generator.code.entity.ChangePackagingBoxHistory; +import org.apache.ibatis.annotations.Mapper; + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Mapper +public interface ChangePackagingBoxHistoryMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ChangePackagingBoxHistoryMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ChangePackagingBoxHistoryMapper.xml new file mode 100644 index 0000000..1e6c502 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ChangePackagingBoxHistoryMapper.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.java new file mode 100644 index 0000000..92a6750 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.generator.code.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.generator.code.entity.PrintModel; +import org.apache.ibatis.annotations.Mapper; + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Mapper +public interface PrintModelMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.xml new file mode 100644 index 0000000..8092e8a --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/PrintModelMapper.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoCompensationPowerMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoCompensationPowerMapper.java new file mode 100644 index 0000000..fb77586 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoCompensationPowerMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.generator.code.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.generator.code.entity.WoCompensationPower; +import org.apache.ibatis.annotations.Mapper; + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Mapper +public interface WoCompensationPowerMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoCompensationPowerMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoCompensationPowerMapper.xml new file mode 100644 index 0000000..f0b8ec4 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoCompensationPowerMapper.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxMapper.java new file mode 100644 index 0000000..ca1bf93 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.generator.code.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.generator.code.entity.WoPackagingBox; +import org.apache.ibatis.annotations.Mapper; + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-22 + */ +@Mapper +public interface WoPackagingBoxMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxMapper.xml new file mode 100644 index 0000000..b96704f --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxMapper.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.java new file mode 100644 index 0000000..59c2fee --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.generator.code.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.generator.code.entity.WoPackagingBoxSubstrate; +import org.apache.ibatis.annotations.Mapper; + +/** + * 包装箱基板关联表 ( 基板表 ) + * + * @author codeGenerator + * @since 2023-02-21 + */ +@Mapper +public interface WoPackagingBoxSubstrateMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.xml new file mode 100644 index 0000000..61a5420 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingPrintHistoryMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingPrintHistoryMapper.java new file mode 100644 index 0000000..dd20d33 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingPrintHistoryMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.generator.code.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.generator.code.entity.WoPackagingPrintHistory; +import org.apache.ibatis.annotations.Mapper; + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Mapper +public interface WoPackagingPrintHistoryMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingPrintHistoryMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingPrintHistoryMapper.xml new file mode 100644 index 0000000..c665a18 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingPrintHistoryMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPowerLevelMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPowerLevelMapper.java new file mode 100644 index 0000000..b546272 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPowerLevelMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.generator.code.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.generator.code.entity.WoPowerLevel; +import org.apache.ibatis.annotations.Mapper; + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Mapper +public interface WoPowerLevelMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPowerLevelMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPowerLevelMapper.xml new file mode 100644 index 0000000..9ba016c --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPowerLevelMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/ChangePackagingBoxHistorymysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/ChangePackagingBoxHistorymysql.sql new file mode 100644 index 0000000..97b067d --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/ChangePackagingBoxHistorymysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1626059890161434625, 1067246875800000035, '包装箱拆合箱历史表', 'packing/changePackagingBoxHistory', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434626, 1626059890161434625, '查看', NULL, 'packing:changePackagingBoxHistory:page,packing:changePackagingBoxHistory:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434627, 1626059890161434625, '新增', NULL, 'packing:changePackagingBoxHistory:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434628, 1626059890161434625, '修改', NULL, 'packing:changePackagingBoxHistory:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434629, 1626059890161434625, '删除', NULL, 'packing:changePackagingBoxHistory:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1626059890161434630, 1626059890161434625, '导出', NULL, 'packing:changePackagingBoxHistory:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/PrintModelmysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/PrintModelmysql.sql new file mode 100644 index 0000000..ca99f9c --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/PrintModelmysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627506543435272194, 1067246875800000035, '打印标签模板表', 'packing/printModel', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272195, 1627506543435272194, '查看', NULL, 'packing:printModel:page,packing:printModel:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272196, 1627506543435272194, '新增', NULL, 'packing:printModel:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272197, 1627506543435272194, '修改', NULL, 'packing:printModel:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272198, 1627506543435272194, '删除', NULL, 'packing:printModel:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627506543435272199, 1627506543435272194, '导出', NULL, 'packing:printModel:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoCompensationPowermysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoCompensationPowermysql.sql new file mode 100644 index 0000000..1fbf67a --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoCompensationPowermysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627488175458189314, 1067246875800000035, '基板补偿功率 表', 'packing/woCompensationPower', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189315, 1627488175458189314, '查看', NULL, 'packing:woCompensationPower:page,packing:woCompensationPower:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189316, 1627488175458189314, '新增', NULL, 'packing:woCompensationPower:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189317, 1627488175458189314, '修改', NULL, 'packing:woCompensationPower:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189318, 1627488175458189314, '删除', NULL, 'packing:woCompensationPower:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627488175458189319, 1627488175458189314, '导出', NULL, 'packing:woCompensationPower:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxSubstratemysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxSubstratemysql.sql new file mode 100644 index 0000000..f3b3d2f --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxSubstratemysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627855073022648322, 1067246875800000035, '包装箱基板关联表 ( 基板表 )', 'packing/woPackagingBoxSubstrate', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648323, 1627855073022648322, '查看', NULL, 'packing:woPackagingBoxSubstrate:page,packing:woPackagingBoxSubstrate:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648324, 1627855073022648322, '新增', NULL, 'packing:woPackagingBoxSubstrate:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648325, 1627855073022648322, '修改', NULL, 'packing:woPackagingBoxSubstrate:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648326, 1627855073022648322, '删除', NULL, 'packing:woPackagingBoxSubstrate:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627855073022648327, 1627855073022648322, '导出', NULL, 'packing:woPackagingBoxSubstrate:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxmysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxmysql.sql new file mode 100644 index 0000000..fbc5955 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxmysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1628230581925277697, 1067246875800000035, '包装箱表', 'code/woPackagingBox', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277698, 1628230581925277697, '查看', NULL, 'code:woPackagingBox:page,code:woPackagingBox:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277699, 1628230581925277697, '新增', NULL, 'code:woPackagingBox:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277700, 1628230581925277697, '修改', NULL, 'code:woPackagingBox:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277701, 1628230581925277697, '删除', NULL, 'code:woPackagingBox:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628230581925277702, 1628230581925277697, '导出', NULL, 'code:woPackagingBox:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingPrintHistorymysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingPrintHistorymysql.sql new file mode 100644 index 0000000..6eecc68 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingPrintHistorymysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627603723110080513, 1067246875800000035, '包装箱打印历史表', 'packing/woPackagingPrintHistory', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080514, 1627603723110080513, '查看', NULL, 'packing:woPackagingPrintHistory:page,packing:woPackagingPrintHistory:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080515, 1627603723110080513, '新增', NULL, 'packing:woPackagingPrintHistory:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080516, 1627603723110080513, '修改', NULL, 'packing:woPackagingPrintHistory:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080517, 1627603723110080513, '删除', NULL, 'packing:woPackagingPrintHistory:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627603723110080518, 1627603723110080513, '导出', NULL, 'packing:woPackagingPrintHistory:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPowerLevelmysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPowerLevelmysql.sql new file mode 100644 index 0000000..e499d43 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPowerLevelmysql.sql @@ -0,0 +1,7 @@ +-- 菜单初始SQL +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1627486255993688065, 1067246875800000035, '功率等级 表', 'packing/woPowerLevel', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688066, 1627486255993688065, '查看', NULL, 'packing:woPowerLevel:page,packing:woPowerLevel:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688067, 1627486255993688065, '新增', NULL, 'packing:woPowerLevel:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688068, 1627486255993688065, '修改', NULL, 'packing:woPowerLevel:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688069, 1627486255993688065, '删除', NULL, 'packing:woPowerLevel:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1627486255993688070, 1627486255993688065, '导出', NULL, 'packing:woPowerLevel:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/ChangePackagingBoxHistoryServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/ChangePackagingBoxHistoryServiceBiz.java new file mode 100644 index 0000000..f539429 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/ChangePackagingBoxHistoryServiceBiz.java @@ -0,0 +1,15 @@ +package com.cnbm.generator.code.service; + +import com.cnbm.common.service.CrudService; +import com.cnbm.generator.code.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.generator.code.entity.ChangePackagingBoxHistory; + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +public interface ChangePackagingBoxHistoryServiceBiz extends CrudService { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/PrintModelServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/PrintModelServiceBiz.java new file mode 100644 index 0000000..94f931e --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/PrintModelServiceBiz.java @@ -0,0 +1,15 @@ +package com.cnbm.generator.code.service; + +import com.cnbm.common.service.CrudService; +import com.cnbm.generator.code.dto.PrintModelDTO; +import com.cnbm.generator.code.entity.PrintModel; + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +public interface PrintModelServiceBiz extends CrudService { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/WoCompensationPowerServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoCompensationPowerServiceBiz.java new file mode 100644 index 0000000..f44a7c6 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoCompensationPowerServiceBiz.java @@ -0,0 +1,15 @@ +package com.cnbm.generator.code.service; + +import com.cnbm.common.service.CrudService; +import com.cnbm.generator.code.dto.WoCompensationPowerDTO; +import com.cnbm.generator.code.entity.WoCompensationPower; + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +public interface WoCompensationPowerServiceBiz extends CrudService { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxServiceBiz.java new file mode 100644 index 0000000..bc7e126 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxServiceBiz.java @@ -0,0 +1,15 @@ +package com.cnbm.generator.code.service; + +import com.cnbm.common.service.CrudService; +import com.cnbm.generator.code.dto.WoPackagingBoxDTO; +import com.cnbm.generator.code.entity.WoPackagingBox; + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-22 + */ +public interface WoPackagingBoxServiceBiz extends CrudService { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxSubstrateServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxSubstrateServiceBiz.java new file mode 100644 index 0000000..c945274 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxSubstrateServiceBiz.java @@ -0,0 +1,15 @@ +package com.cnbm.generator.code.service; + +import com.cnbm.common.service.CrudService; +import com.cnbm.generator.code.dto.WoPackagingBoxSubstrateDTO; +import com.cnbm.generator.code.entity.WoPackagingBoxSubstrate; + +/** + * 包装箱基板关联表 ( 基板表 ) + * + * @author codeGenerator + * @since 2023-02-21 + */ +public interface WoPackagingBoxSubstrateServiceBiz extends CrudService { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingPrintHistoryServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingPrintHistoryServiceBiz.java new file mode 100644 index 0000000..00444b8 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingPrintHistoryServiceBiz.java @@ -0,0 +1,15 @@ +package com.cnbm.generator.code.service; + +import com.cnbm.common.service.CrudService; +import com.cnbm.generator.code.dto.WoPackagingPrintHistoryDTO; +import com.cnbm.generator.code.entity.WoPackagingPrintHistory; + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +public interface WoPackagingPrintHistoryServiceBiz extends CrudService { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPowerLevelServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPowerLevelServiceBiz.java new file mode 100644 index 0000000..9aee212 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPowerLevelServiceBiz.java @@ -0,0 +1,15 @@ +package com.cnbm.generator.code.service; + +import com.cnbm.common.service.CrudService; +import com.cnbm.generator.code.dto.WoPowerLevelDTO; +import com.cnbm.generator.code.entity.WoPowerLevel; + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +public interface WoPowerLevelServiceBiz extends CrudService { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java new file mode 100644 index 0000000..24ed42d --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java @@ -0,0 +1,34 @@ +package com.cnbm.generator.code.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.generator.code.dto.ChangePackagingBoxHistoryDTO; +import com.cnbm.generator.code.mapper.ChangePackagingBoxHistoryMapper; +import com.cnbm.generator.code.entity.ChangePackagingBoxHistory; +import com.cnbm.generator.code.service.ChangePackagingBoxHistoryServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 包装箱拆合箱历史表 + * + * @author codeGenerator + * @since 2023-02-16 + */ +@Service +public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl implements ChangePackagingBoxHistoryServiceBiz { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/PrintModelServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/PrintModelServiceBizImpl.java new file mode 100644 index 0000000..68291b6 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/PrintModelServiceBizImpl.java @@ -0,0 +1,34 @@ +package com.cnbm.generator.code.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.generator.code.dto.PrintModelDTO; +import com.cnbm.generator.code.mapper.PrintModelMapper; +import com.cnbm.generator.code.entity.PrintModel; +import com.cnbm.generator.code.service.PrintModelServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 打印标签模板表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Service +public class PrintModelServiceBizImpl extends CrudServiceImpl implements PrintModelServiceBiz { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoCompensationPowerServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoCompensationPowerServiceBizImpl.java new file mode 100644 index 0000000..d27edd1 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoCompensationPowerServiceBizImpl.java @@ -0,0 +1,34 @@ +package com.cnbm.generator.code.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.generator.code.dto.WoCompensationPowerDTO; +import com.cnbm.generator.code.mapper.WoCompensationPowerMapper; +import com.cnbm.generator.code.entity.WoCompensationPower; +import com.cnbm.generator.code.service.WoCompensationPowerServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 基板补偿功率 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Service +public class WoCompensationPowerServiceBizImpl extends CrudServiceImpl implements WoCompensationPowerServiceBiz { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxServiceBizImpl.java new file mode 100644 index 0000000..9a742c7 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxServiceBizImpl.java @@ -0,0 +1,34 @@ +package com.cnbm.generator.code.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.generator.code.dto.WoPackagingBoxDTO; +import com.cnbm.generator.code.mapper.WoPackagingBoxMapper; +import com.cnbm.generator.code.entity.WoPackagingBox; +import com.cnbm.generator.code.service.WoPackagingBoxServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 包装箱表 + * + * @author codeGenerator + * @since 2023-02-22 + */ +@Service +public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl implements WoPackagingBoxServiceBiz { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java new file mode 100644 index 0000000..93af080 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java @@ -0,0 +1,34 @@ +package com.cnbm.generator.code.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.generator.code.dto.WoPackagingBoxSubstrateDTO; +import com.cnbm.generator.code.mapper.WoPackagingBoxSubstrateMapper; +import com.cnbm.generator.code.entity.WoPackagingBoxSubstrate; +import com.cnbm.generator.code.service.WoPackagingBoxSubstrateServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 包装箱基板关联表 ( 基板表 ) + * + * @author codeGenerator + * @since 2023-02-21 + */ +@Service +public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl implements WoPackagingBoxSubstrateServiceBiz { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingPrintHistoryServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingPrintHistoryServiceBizImpl.java new file mode 100644 index 0000000..f16e50b --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingPrintHistoryServiceBizImpl.java @@ -0,0 +1,34 @@ +package com.cnbm.generator.code.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.generator.code.dto.WoPackagingPrintHistoryDTO; +import com.cnbm.generator.code.mapper.WoPackagingPrintHistoryMapper; +import com.cnbm.generator.code.entity.WoPackagingPrintHistory; +import com.cnbm.generator.code.service.WoPackagingPrintHistoryServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 包装箱打印历史表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Service +public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl implements WoPackagingPrintHistoryServiceBiz { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPowerLevelServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPowerLevelServiceBizImpl.java new file mode 100644 index 0000000..7f572b9 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPowerLevelServiceBizImpl.java @@ -0,0 +1,34 @@ +package com.cnbm.generator.code.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.generator.code.dto.WoPowerLevelDTO; +import com.cnbm.generator.code.mapper.WoPowerLevelMapper; +import com.cnbm.generator.code.entity.WoPowerLevel; +import com.cnbm.generator.code.service.WoPowerLevelServiceBiz; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 功率等级 表 + * + * @author codeGenerator + * @since 2023-02-20 + */ +@Service +public class WoPowerLevelServiceBizImpl extends CrudServiceImpl implements WoPowerLevelServiceBiz { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + +} \ No newline at end of file diff --git a/ym-packing/pom.xml b/ym-packing/pom.xml index f2001c9..9b736f2 100644 --- a/ym-packing/pom.xml +++ b/ym-packing/pom.xml @@ -23,11 +23,6 @@ ym-common 1.0-SNAPSHOT - - com.cnbm - ym-core - 1.0-SNAPSHOT - org.springframework.security spring-security-core -- 2.45.2