From 413516a4dfbb122ac1c720726b3d938fa3c13d2a Mon Sep 17 00:00:00 2001 From: zhouz <> Date: Wed, 30 Sep 2026 08:14:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=A8=A1=E5=9D=97=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E3=80=81=E7=AE=A1=E8=8A=AF=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E3=80=81=E6=9C=A8=E7=AE=B1?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE=E9=A1=B5=E9=9D=A2=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +- doc/token-authentication-filter-analysis.md | 1 - .../nl-spring-boot-starter-execute/pom.xml | 2 +- .../core/filter/ApiAccessLogFilter.java | 37 +++- .../handler/GlobalResponseBodyHandler.java | 11 +- .../web/core/util/WebFrameworkUtils.java | 35 ++++ nl-module-infra/nl-module-infra-api/pom.xml | 47 ----- .../nl-module-infra-server/Dockerfile | 19 -- .../nl-module-infra-server/pom.xml | 163 ----------------- .../module/infra/InfraServerApplication.java | 30 --- .../src/main/resources/application-dev.yaml | 138 -------------- .../src/main/resources/application-local.yaml | 164 ----------------- .../src/main/resources/application-test.yaml | 138 -------------- .../src/main/resources/application.yaml | 172 ------------------ .../src/main/resources/logback-spring.xml | 56 ------ nl-module-infra/pom.xml | 25 --- nl-module-lms/nl-module-lms-server/pom.xml | 5 - .../admin/dailyplan/DailyPlanController.java | 16 ++ .../vo/DailyPlanCoreTubeUpdateReqVO.java | 14 ++ .../admin/dailyplan/vo/DailyPlanRespVO.java | 4 + .../erp/LmsErpExceptionHandler.java | 14 ++ .../erp/LmsErpInboundController.java | 12 +- .../erp/vo/ErpDailyPlanPushReqVO.java | 24 ++- .../dal/dataobject/dailyplan/DailyPlanDO.java | 7 + .../dal/mysql/dailyplan/DailyPlanMapper.java | 3 + .../IvtShafttubeivtMapper.java | 5 + .../CoreTubeTaskDispatchServiceImpl.java | 24 +++ .../service/dailyplan/DailyPlanService.java | 5 + .../dailyplan/DailyPlanServiceImpl.java | 50 +++++ .../lms/service/erp/ErpInboundService.java | 4 +- .../service/erp/ErpOutboundClientImpl.java | 7 + .../service/erp/LmsErpInboundServiceImpl.java | 116 +++++++----- .../mapper/dailyplan/DailyPlanMapper.xml | 25 +++ .../ivtshafttubeivt/IvtShafttubeivtMapper.xml | 11 ++ .../erp/ErpInboundContractTest.java | 23 ++- .../erp/LmsErpExceptionHandlerTest.java | 10 + .../erp/ErpInboundServiceLocalSpringTest.java | 90 ++++++--- .../nl/module/infra/api/config/ConfigApi.java | 0 .../nl/module/infra/api/file/FileApi.java | 0 .../infra/api/file/dto/FileCreateReqDTO.java | 0 .../nl/module/infra/api/package-info.java | 0 .../api/websocket/WebSocketSenderApi.java | 0 .../websocket/dto/WebSocketSendReqDTO.java | 0 .../nl/module/infra/enums/ApiConstants.java | 0 .../module/infra/enums/DictTypeConstants.java | 0 .../infra/enums/ErrorCodeConstants.java | 0 .../codegen/CodegenColumnHtmlTypeEnum.java | 0 .../CodegenColumnListConditionEnum.java | 0 .../enums/codegen/CodegenFrontTypeEnum.java | 0 .../infra/enums/codegen/CodegenSceneEnum.java | 0 .../codegen/CodegenTemplateTypeEnum.java | 0 .../enums/codegen/CodegenVOTypeEnum.java | 0 .../infra/enums/config/ConfigTypeEnum.java | 0 .../logger/ApiErrorLogProcessStatusEnum.java | 0 .../nl/module/infra/enums/package-info.java | 0 .../nl-module-system-server/pom.xml | 35 +++- .../infra/api/config/ConfigApiImpl.java | 0 .../nl/module/infra/api/file/FileApiImpl.java | 0 .../infra/api/logger/ApiAccessLogApiImpl.java | 0 .../infra/api/logger/ApiErrorLogApiImpl.java | 0 .../nl/module/infra/api/package-info.java | 0 .../api/websocket/WebSocketSenderApiImpl.java | 0 .../admin/codegen/CodegenController.java | 0 .../codegen/vo/CodegenCreateListReqVO.java | 0 .../admin/codegen/vo/CodegenDetailRespVO.java | 0 .../codegen/vo/CodegenPreviewRespVO.java | 0 .../admin/codegen/vo/CodegenUpdateReqVO.java | 0 .../vo/column/CodegenColumnRespVO.java | 0 .../vo/column/CodegenColumnSaveReqVO.java | 0 .../vo/table/CodegenTablePageReqVO.java | 0 .../codegen/vo/table/CodegenTableRespVO.java | 0 .../vo/table/CodegenTableSaveReqVO.java | 0 .../codegen/vo/table/DatabaseTableRespVO.java | 0 .../admin/config/ConfigController.java | 0 .../admin/config/vo/ConfigPageReqVO.java | 0 .../admin/config/vo/ConfigRespVO.java | 0 .../admin/config/vo/ConfigSaveReqVO.java | 0 .../admin/db/DataSourceConfigController.java | 0 .../admin/db/vo/DataSourceConfigRespVO.java | 0 .../db/vo/DataSourceConfigSaveReqVO.java | 0 .../demo/demo01/Demo01ContactController.java | 0 .../demo01/vo/Demo01ContactPageReqVO.java | 0 .../demo/demo01/vo/Demo01ContactRespVO.java | 0 .../demo01/vo/Demo01ContactSaveReqVO.java | 0 .../demo/demo02/Demo02CategoryController.java | 0 .../demo02/vo/Demo02CategoryListReqVO.java | 0 .../demo/demo02/vo/Demo02CategoryRespVO.java | 0 .../demo02/vo/Demo02CategorySaveReqVO.java | 0 .../erp/Demo03StudentErpController.java | 0 .../erp/vo/Demo03StudentErpPageReqVO.java | 0 .../demo03/erp/vo/Demo03StudentErpRespVO.java | 0 .../erp/vo/Demo03StudentErpSaveReqVO.java | 0 .../inner/Demo03StudentInnerController.java | 0 .../inner/vo/Demo03StudentInnerPageReqVO.java | 0 .../inner/vo/Demo03StudentInnerRespVO.java | 0 .../inner/vo/Demo03StudentInnerSaveReqVO.java | 0 .../normal/Demo03StudentNormalController.java | 0 .../vo/Demo03StudentNormalPageReqVO.java | 0 .../normal/vo/Demo03StudentNormalRespVO.java | 0 .../vo/Demo03StudentNormalSaveReqVO.java | 0 .../controller/admin/demo/package-info.java | 0 .../admin/file/FileConfigController.http | 0 .../admin/file/FileConfigController.java | 0 .../controller/admin/file/FileController.java | 0 .../file/vo/config/FileConfigPageReqVO.java | 0 .../file/vo/config/FileConfigRespVO.java | 0 .../file/vo/config/FileConfigSaveReqVO.java | 0 .../admin/file/vo/file/FileCreateReqVO.java | 0 .../admin/file/vo/file/FilePageReqVO.java | 0 .../file/vo/file/FilePresignedUrlRespVO.java | 0 .../admin/file/vo/file/FileRespVO.java | 0 .../admin/file/vo/file/FileUploadReqVO.java | 0 .../admin/logger/ApiAccessLogController.java | 0 .../admin/logger/ApiErrorLogController.java | 0 .../apiaccesslog/ApiAccessLogPageReqVO.java | 0 .../vo/apiaccesslog/ApiAccessLogRespVO.java | 0 .../vo/apierrorlog/ApiErrorLogPageReqVO.java | 0 .../vo/apierrorlog/ApiErrorLogRespVO.java | 0 .../admin/redis/RedisController.http | 0 .../admin/redis/RedisController.java | 0 .../admin/redis/vo/RedisMonitorRespVO.java | 0 .../app/file/AppFileController.java | 0 .../app/file/vo/AppFileUploadReqVO.java | 0 .../infra/controller/app/package-info.java | 0 .../module/infra/controller/package-info.java | 0 .../infra/convert/codegen/CodegenConvert.java | 0 .../infra/convert/config/ConfigConvert.java | 0 .../infra/convert/file/FileConfigConvert.java | 0 .../nl/module/infra/convert/package-info.java | 0 .../infra/convert/redis/RedisConvert.java | 0 .../dataobject/codegen/CodegenColumnDO.java | 0 .../dataobject/codegen/CodegenTableDO.java | 0 .../infra/dal/dataobject/config/ConfigDO.java | 0 .../dal/dataobject/db/DataSourceConfigDO.java | 0 .../demo/demo01/Demo01ContactDO.java | 0 .../demo/demo02/Demo02CategoryDO.java | 0 .../demo/demo03/Demo03CourseDO.java | 0 .../dataobject/demo/demo03/Demo03GradeDO.java | 0 .../demo/demo03/Demo03StudentDO.java | 0 .../dal/dataobject/file/FileConfigDO.java | 0 .../dal/dataobject/file/FileContentDO.java | 0 .../infra/dal/dataobject/file/FileDO.java | 0 .../dal/dataobject/logger/ApiAccessLogDO.java | 0 .../dal/dataobject/logger/ApiErrorLogDO.java | 0 .../mysql/codegen/CodegenColumnMapper.java | 0 .../dal/mysql/codegen/CodegenTableMapper.java | 0 .../infra/dal/mysql/config/ConfigMapper.java | 0 .../dal/mysql/db/DataSourceConfigMapper.java | 0 .../demo/demo01/Demo01ContactMapper.java | 0 .../demo/demo02/Demo02CategoryMapper.java | 0 .../demo03/erp/Demo03CourseErpMapper.java | 0 .../demo/demo03/erp/Demo03GradeErpMapper.java | 0 .../demo03/erp/Demo03StudentErpMapper.java | 0 .../demo03/inner/Demo03CourseInnerMapper.java | 0 .../demo03/inner/Demo03GradeInnerMapper.java | 0 .../inner/Demo03StudentInnerMapper.java | 0 .../normal/Demo03CourseNormalMapper.java | 0 .../normal/Demo03GradeNormalMapper.java | 0 .../normal/Demo03StudentNormalMapper.java | 0 .../dal/mysql/file/FileConfigMapper.java | 0 .../dal/mysql/file/FileContentMapper.java | 0 .../infra/dal/mysql/file/FileMapper.java | 0 .../dal/mysql/logger/ApiAccessLogMapper.java | 0 .../dal/mysql/logger/ApiErrorLogMapper.java | 0 .../codegen/config/CodegenConfiguration.java | 0 .../codegen/config/CodegenProperties.java | 0 .../infra/framework/codegen/package-info.java | 0 .../file/config/NlFileAutoConfiguration.java | 0 .../file/core/client/AbstractFileClient.java | 0 .../file/core/client/FileClient.java | 0 .../file/core/client/FileClientConfig.java | 0 .../file/core/client/FileClientFactory.java | 0 .../core/client/FileClientFactoryImpl.java | 0 .../file/core/client/db/DBFileClient.java | 0 .../core/client/db/DBFileClientConfig.java | 0 .../file/core/client/ftp/FtpFileClient.java | 0 .../core/client/ftp/FtpFileClientConfig.java | 0 .../core/client/local/LocalFileClient.java | 0 .../client/local/LocalFileClientConfig.java | 0 .../file/core/client/s3/S3FileClient.java | 0 .../core/client/s3/S3FileClientConfig.java | 0 .../file/core/client/sftp/SftpFileClient.java | 0 .../client/sftp/SftpFileClientConfig.java | 0 .../file/core/enums/FileStorageEnum.java | 0 .../file/core/utils/FilePathUtils.java | 0 .../file/core/utils/FileTypeUtils.java | 0 .../infra/framework/file/package-info.java | 0 .../config/AdminServerConfiguration.java | 0 .../infra/framework/monitor/package-info.java | 0 .../module/infra/framework/package-info.java | 0 .../rpc/config/RpcConfiguration.java | 0 .../infra/framework/rpc/package-info.java | 0 .../config/SecurityConfiguration.java | 0 .../framework/security/core/package-info.java | 0 .../infra/job/logger/AccessLogCleanJob.java | 0 .../infra/job/logger/ErrorLogCleanJob.java | 0 .../nl/module/infra/job/package-info.java | 0 .../infra/mq/consumer/package-info.java | 0 .../module/infra/mq/message/package-info.java | 0 .../infra/mq/producer/package-info.java | 0 .../cn/code/nl/module/infra/package-info.java | 0 .../infra/service/codegen/CodegenService.java | 0 .../service/codegen/CodegenServiceImpl.java | 0 .../service/codegen/inner/CodegenBuilder.java | 0 .../service/codegen/inner/CodegenEngine.java | 0 .../infra/service/config/ConfigService.java | 0 .../service/config/ConfigServiceImpl.java | 0 .../service/db/DataSourceConfigService.java | 0 .../db/DataSourceConfigServiceImpl.java | 0 .../service/db/DatabaseTableService.java | 0 .../service/db/DatabaseTableServiceImpl.java | 0 .../demo/demo01/Demo01ContactService.java | 0 .../demo/demo01/Demo01ContactServiceImpl.java | 0 .../demo/demo02/Demo02CategoryService.java | 0 .../demo02/Demo02CategoryServiceImpl.java | 0 .../demo03/erp/Demo03StudentErpService.java | 0 .../erp/Demo03StudentErpServiceImpl.java | 0 .../inner/Demo03StudentInnerService.java | 0 .../inner/Demo03StudentInnerServiceImpl.java | 0 .../normal/Demo03StudentNormalService.java | 0 .../Demo03StudentNormalServiceImpl.java | 0 .../infra/service/file/FileConfigService.java | 0 .../service/file/FileConfigServiceImpl.java | 0 .../infra/service/file/FileService.java | 0 .../infra/service/file/FileServiceImpl.java | 0 .../service/logger/ApiAccessLogService.java | 0 .../logger/ApiAccessLogServiceImpl.java | 0 .../service/logger/ApiErrorLogService.java | 0 .../logger/ApiErrorLogServiceImpl.java | 0 .../DemoWebSocketMessageListener.java | 0 .../websocket/message/DemoReceiveMessage.java | 0 .../websocket/message/DemoSendMessage.java | 0 .../system/SystemServerApplication.java | 2 +- .../src/main/resources/application.yaml | 14 +- .../codegen/java/controller/controller.vm | 0 .../java/controller/vo/importExcelVO.vm | 0 .../java/controller/vo/importRespVO.vm | 0 .../codegen/java/controller/vo/listReqVO.vm | 0 .../codegen/java/controller/vo/pageReqVO.vm | 0 .../codegen/java/controller/vo/respVO.vm | 0 .../codegen/java/controller/vo/saveReqVO.vm | 0 .../src/main/resources/codegen/java/dal/do.vm | 0 .../main/resources/codegen/java/dal/do_sub.vm | 0 .../main/resources/codegen/java/dal/mapper.vm | 0 .../resources/codegen/java/dal/mapper.xml.vm | 0 .../resources/codegen/java/dal/mapper_sub.vm | 0 .../resources/codegen/java/enums/errorcode.vm | 0 .../resources/codegen/java/service/service.vm | 0 .../codegen/java/service/serviceImpl.vm | 0 .../codegen/java/test/serviceTest.vm | 0 .../src/main/resources/codegen/sql/h2.vm | 0 .../src/main/resources/codegen/sql/sql.vm | 0 .../main/resources/codegen/vue/api/api.js.vm | 0 .../vue/views/components/form_sub_erp.vue.vm | 0 .../views/components/form_sub_inner.vue.vm | 0 .../views/components/form_sub_normal.vue.vm | 0 .../vue/views/components/list_sub_erp.vue.vm | 0 .../views/components/list_sub_inner.vue.vm | 0 .../resources/codegen/vue/views/form.vue.vm | 0 .../resources/codegen/vue/views/index.vue.vm | 0 .../main/resources/codegen/vue3/api/api.ts.vm | 0 .../vue3/views/components/form_sub_erp.vue.vm | 0 .../views/components/form_sub_inner.vue.vm | 0 .../views/components/form_sub_normal.vue.vm | 0 .../vue3/views/components/list_sub_erp.vue.vm | 0 .../views/components/list_sub_inner.vue.vm | 0 .../resources/codegen/vue3/views/form.vue.vm | 0 .../codegen/vue3/views/import.vue.vm | 0 .../resources/codegen/vue3/views/index.vue.vm | 0 .../codegen/vue3_admin_uniapp/api/api.ts.vm | 0 .../components/search-form.vue.vm | 0 .../views/detail/index.vue.vm | 0 .../vue3_admin_uniapp/views/form/index.vue.vm | 0 .../vue3_admin_uniapp/views/index.vue.vm | 0 .../resources/codegen/vue3_vben/api/api.ts.vm | 0 .../codegen/vue3_vben/views/data.ts.vm | 0 .../codegen/vue3_vben/views/form.vue.vm | 0 .../codegen/vue3_vben/views/index.vue.vm | 0 .../vue3_vben5_antd/general/api/api.ts.vm | 0 .../vue3_vben5_antd/general/views/form.vue.vm | 0 .../general/views/import.vue.vm | 0 .../general/views/index.vue.vm | 0 .../general/views/modules/form_sub_erp.vue.vm | 0 .../views/modules/form_sub_inner.vue.vm | 0 .../views/modules/form_sub_normal.vue.vm | 0 .../general/views/modules/list_sub_erp.vue.vm | 0 .../views/modules/list_sub_inner.vue.vm | 0 .../vue3_vben5_antd/schema/api/api.ts.vm | 0 .../vue3_vben5_antd/schema/views/data.ts.vm | 0 .../vue3_vben5_antd/schema/views/form.vue.vm | 0 .../schema/views/import.vue.vm | 0 .../vue3_vben5_antd/schema/views/index.vue.vm | 0 .../schema/views/modules/form_sub_erp.vue.vm | 0 .../views/modules/form_sub_inner.vue.vm | 0 .../views/modules/form_sub_normal.vue.vm | 0 .../schema/views/modules/list_sub_erp.vue.vm | 0 .../views/modules/list_sub_inner.vue.vm | 0 .../general/api/api.ts.vm | 0 .../general/views/form.vue.vm | 0 .../general/views/import.vue.vm | 0 .../general/views/index.vue.vm | 0 .../general/views/modules/form_sub_erp.vue.vm | 0 .../views/modules/form_sub_inner.vue.vm | 0 .../views/modules/form_sub_normal.vue.vm | 0 .../general/views/modules/list_sub_erp.vue.vm | 0 .../views/modules/list_sub_inner.vue.vm | 0 .../schema/api/api.ts.vm | 0 .../schema/views/data.ts.vm | 0 .../schema/views/form.vue.vm | 0 .../schema/views/import.vue.vm | 0 .../schema/views/index.vue.vm | 0 .../schema/views/modules/form_sub_erp.vue.vm | 0 .../views/modules/form_sub_inner.vue.vm | 0 .../views/modules/form_sub_normal.vue.vm | 0 .../schema/views/modules/list_sub_erp.vue.vm | 0 .../views/modules/list_sub_inner.vue.vm | 0 .../vue3_vben5_ele/general/api/api.ts.vm | 0 .../vue3_vben5_ele/general/views/form.vue.vm | 0 .../general/views/import.vue.vm | 0 .../vue3_vben5_ele/general/views/index.vue.vm | 0 .../general/views/modules/form_sub_erp.vue.vm | 0 .../views/modules/form_sub_inner.vue.vm | 0 .../views/modules/form_sub_normal.vue.vm | 0 .../general/views/modules/list_sub_erp.vue.vm | 0 .../views/modules/list_sub_inner.vue.vm | 0 .../vue3_vben5_ele/schema/api/api.ts.vm | 0 .../vue3_vben5_ele/schema/views/data.ts.vm | 0 .../vue3_vben5_ele/schema/views/form.vue.vm | 0 .../vue3_vben5_ele/schema/views/import.vue.vm | 0 .../vue3_vben5_ele/schema/views/index.vue.vm | 0 .../schema/views/modules/form_sub_erp.vue.vm | 0 .../views/modules/form_sub_inner.vue.vm | 0 .../views/modules/form_sub_normal.vue.vm | 0 .../schema/views/modules/list_sub_erp.vue.vm | 0 .../views/modules/list_sub_inner.vue.vm | 0 .../src/main/resources/file/erweima.jpg | Bin nl-module-task/nl-module-task-server/pom.xml | 5 - .../wms/api/coretubetype/CoreTubeTypeApi.java | 22 +++ .../coretubetype/dto/CoreTubeTypeResp.java | 15 ++ .../dto/FinishedBoxInboundSyncReq.java | 1 + nl-module-wms/nl-module-wms-server/pom.xml | 6 - .../api/coretubetype/CoreTubeTypeApiImpl.java | 37 ++++ .../coretubetype/CoreTubeTypeController.java | 53 ++++++ .../vo/CoreTubeTypePageReqVO.java | 14 ++ .../coretubetype/vo/CoreTubeTypeRespVO.java | 21 +++ .../controller/erp/ErpInboundController.java | 6 + .../bsrealstorattr/BsrealStorAttrMapper.java | 3 + .../coretubetype/CoreTubeTypeMapper.java | 13 ++ .../dal/mysql/iostorinv/IostorInvMapper.java | 5 + .../FinishedBoxInboundSyncServiceImpl.java | 77 +++++--- .../KingdeeInboundAuditClientImpl.java | 23 ++- .../bsrealstorattr/CuttingProcessService.xml | 11 +- .../iostorinv/CuttingProcessService.xml | 11 ++ ...dBoxInboundSyncServiceLocalSpringTest.java | 74 +++++++- ...gdeeInboundAuditClientLocalSpringTest.java | 33 ++-- ...eeInboundUploadServiceLocalSpringTest.java | 14 +- nl-server/pom.xml | 11 -- .../src/api/lms/dailyplan/index.ts | 25 +++ .../src/api/wms/coretubetype/index.ts | 31 ++++ .../src/views/infra/apiAccessLog/data.ts | 72 +++++++- .../views/lms/daily-plan/management/index.vue | 17 ++ .../management/modules/core-tube.vue | 82 +++++++++ .../daily-plan/management/modules/detail.vue | 1 + .../management/modules/start-order.vue | 2 +- .../src/views/wms/boxtype/data.ts | 29 +++ .../src/views/wms/boxtype/index.vue | 36 ++++ .../src/views/wms/coretubetype/data.ts | 29 +++ .../src/views/wms/coretubetype/index.vue | 36 ++++ ...创_ERP_WMS基础信息同步.openapi.json | 84 ++++++++- pom.xml | 1 - script/docker/docker-compose.yml | 38 +--- ...ckup_20260928_lms_sub_package_relation.sql | 4 + sql/mysql/backup_20260928_wms_group_plate.sql | 4 + sql/mysql/backup_20260928_wms_iostorinv.sql | 1 + .../backup_20260928_wms_iostorinvdis.sql | 4 + .../backup_20260928_wms_iostorinvdtl.sql | 4 + sql/mysql/backup_20260928_wms_structattr.sql | 4 + sql/mysql/lms_daily_plan.sql | 9 +- sql/mysql/lms_daily_plan_kingdee_batch.sql | 32 ++++ sql/mysql/wms_b22411_inventory_delete.sql | 82 +++++++++ sql/mysql/wms_b22411_inventory_insert.sql | 108 +++++++++++ sql/mysql/wms_core_tube_box_type_menu.sql | 70 +++++++ 382 files changed, 1634 insertions(+), 1187 deletions(-) delete mode 100644 nl-module-infra/nl-module-infra-api/pom.xml delete mode 100644 nl-module-infra/nl-module-infra-server/Dockerfile delete mode 100644 nl-module-infra/nl-module-infra-server/pom.xml delete mode 100644 nl-module-infra/nl-module-infra-server/src/main/java/cn/code/nl/module/infra/InfraServerApplication.java delete mode 100644 nl-module-infra/nl-module-infra-server/src/main/resources/application-dev.yaml delete mode 100644 nl-module-infra/nl-module-infra-server/src/main/resources/application-local.yaml delete mode 100644 nl-module-infra/nl-module-infra-server/src/main/resources/application-test.yaml delete mode 100644 nl-module-infra/nl-module-infra-server/src/main/resources/application.yaml delete mode 100644 nl-module-infra/nl-module-infra-server/src/main/resources/logback-spring.xml delete mode 100644 nl-module-infra/pom.xml create mode 100644 nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/vo/DailyPlanCoreTubeUpdateReqVO.java rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/api/config/ConfigApi.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/api/file/FileApi.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/api/file/dto/FileCreateReqDTO.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/api/package-info.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/api/websocket/WebSocketSenderApi.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/api/websocket/dto/WebSocketSendReqDTO.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/ApiConstants.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/DictTypeConstants.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/ErrorCodeConstants.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/codegen/CodegenColumnHtmlTypeEnum.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/codegen/CodegenColumnListConditionEnum.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/codegen/CodegenFrontTypeEnum.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/codegen/CodegenSceneEnum.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/codegen/CodegenTemplateTypeEnum.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/codegen/CodegenVOTypeEnum.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/config/ConfigTypeEnum.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/logger/ApiErrorLogProcessStatusEnum.java (100%) rename {nl-module-infra/nl-module-infra-api => nl-module-system/nl-module-system-api}/src/main/java/cn/code/nl/module/infra/enums/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/api/config/ConfigApiImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/api/file/FileApiImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/api/logger/ApiAccessLogApiImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/api/logger/ApiErrorLogApiImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/api/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/api/websocket/WebSocketSenderApiImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/CodegenController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/CodegenCreateListReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/CodegenDetailRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/CodegenPreviewRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/CodegenUpdateReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/column/CodegenColumnRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/column/CodegenColumnSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/table/CodegenTablePageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/table/CodegenTableRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/table/CodegenTableSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/codegen/vo/table/DatabaseTableRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/config/ConfigController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/config/vo/ConfigPageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/config/vo/ConfigRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/config/vo/ConfigSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/db/DataSourceConfigController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/db/vo/DataSourceConfigRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/db/vo/DataSourceConfigSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo01/Demo01ContactController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo01/vo/Demo01ContactPageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo01/vo/Demo01ContactRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo01/vo/Demo01ContactSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo02/Demo02CategoryController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo02/vo/Demo02CategoryListReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo02/vo/Demo02CategoryRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo02/vo/Demo02CategorySaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/erp/Demo03StudentErpController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/erp/vo/Demo03StudentErpPageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/erp/vo/Demo03StudentErpRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/erp/vo/Demo03StudentErpSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/inner/Demo03StudentInnerController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/inner/vo/Demo03StudentInnerPageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/inner/vo/Demo03StudentInnerRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/inner/vo/Demo03StudentInnerSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/normal/Demo03StudentNormalController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/normal/vo/Demo03StudentNormalPageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/normal/vo/Demo03StudentNormalRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/demo03/normal/vo/Demo03StudentNormalSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/demo/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/FileConfigController.http (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/FileConfigController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/FileController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/vo/config/FileConfigPageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/vo/config/FileConfigRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/vo/config/FileConfigSaveReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/vo/file/FileCreateReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/vo/file/FilePageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/vo/file/FilePresignedUrlRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/vo/file/FileRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/file/vo/file/FileUploadReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/logger/ApiAccessLogController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/logger/ApiErrorLogController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogPageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/logger/vo/apiaccesslog/ApiAccessLogRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogPageReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/logger/vo/apierrorlog/ApiErrorLogRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/redis/RedisController.http (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/redis/RedisController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/admin/redis/vo/RedisMonitorRespVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/app/file/AppFileController.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/app/file/vo/AppFileUploadReqVO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/app/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/controller/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/convert/codegen/CodegenConvert.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/convert/config/ConfigConvert.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/convert/file/FileConfigConvert.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/convert/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/convert/redis/RedisConvert.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/codegen/CodegenColumnDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/codegen/CodegenTableDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/config/ConfigDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/db/DataSourceConfigDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/demo/demo01/Demo01ContactDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/demo/demo02/Demo02CategoryDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/demo/demo03/Demo03CourseDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/demo/demo03/Demo03GradeDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/demo/demo03/Demo03StudentDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/file/FileConfigDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/file/FileContentDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/file/FileDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/logger/ApiAccessLogDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/dataobject/logger/ApiErrorLogDO.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/codegen/CodegenColumnMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/codegen/CodegenTableMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/config/ConfigMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/db/DataSourceConfigMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo01/Demo01ContactMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo02/Demo02CategoryMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/erp/Demo03CourseErpMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/erp/Demo03GradeErpMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/erp/Demo03StudentErpMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/inner/Demo03CourseInnerMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/inner/Demo03GradeInnerMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/inner/Demo03StudentInnerMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/normal/Demo03CourseNormalMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/normal/Demo03GradeNormalMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/demo/demo03/normal/Demo03StudentNormalMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/file/FileConfigMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/file/FileContentMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/file/FileMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/logger/ApiAccessLogMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/dal/mysql/logger/ApiErrorLogMapper.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/codegen/config/CodegenConfiguration.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/codegen/config/CodegenProperties.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/codegen/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/config/NlFileAutoConfiguration.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/AbstractFileClient.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/FileClient.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/FileClientConfig.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/FileClientFactory.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/FileClientFactoryImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/db/DBFileClient.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/db/DBFileClientConfig.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/ftp/FtpFileClient.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/ftp/FtpFileClientConfig.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/local/LocalFileClient.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/local/LocalFileClientConfig.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/s3/S3FileClient.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/s3/S3FileClientConfig.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/sftp/SftpFileClient.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/client/sftp/SftpFileClientConfig.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/enums/FileStorageEnum.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/utils/FilePathUtils.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/core/utils/FileTypeUtils.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/file/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/monitor/config/AdminServerConfiguration.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/monitor/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/rpc/config/RpcConfiguration.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/rpc/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/security/config/SecurityConfiguration.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/framework/security/core/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/job/logger/AccessLogCleanJob.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/job/logger/ErrorLogCleanJob.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/job/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/mq/consumer/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/mq/message/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/mq/producer/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/package-info.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/codegen/CodegenService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/codegen/CodegenServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/codegen/inner/CodegenBuilder.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/codegen/inner/CodegenEngine.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/config/ConfigService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/config/ConfigServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/db/DataSourceConfigService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/db/DataSourceConfigServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/db/DatabaseTableService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/db/DatabaseTableServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo01/Demo01ContactService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo01/Demo01ContactServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo02/Demo02CategoryService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo02/Demo02CategoryServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo03/erp/Demo03StudentErpService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo03/erp/Demo03StudentErpServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo03/inner/Demo03StudentInnerService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo03/inner/Demo03StudentInnerServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo03/normal/Demo03StudentNormalService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/demo/demo03/normal/Demo03StudentNormalServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/file/FileConfigService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/file/FileConfigServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/file/FileService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/file/FileServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/logger/ApiAccessLogService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/logger/ApiAccessLogServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/logger/ApiErrorLogService.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/service/logger/ApiErrorLogServiceImpl.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/websocket/DemoWebSocketMessageListener.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/websocket/message/DemoReceiveMessage.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/java/cn/code/nl/module/infra/websocket/message/DemoSendMessage.java (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/controller/controller.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/controller/vo/importExcelVO.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/controller/vo/importRespVO.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/controller/vo/listReqVO.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/controller/vo/pageReqVO.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/controller/vo/respVO.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/controller/vo/saveReqVO.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/dal/do.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/dal/do_sub.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/dal/mapper.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/dal/mapper.xml.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/dal/mapper_sub.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/enums/errorcode.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/service/service.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/service/serviceImpl.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/java/test/serviceTest.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/sql/h2.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/sql/sql.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue/api/api.js.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue/views/components/form_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue/views/components/form_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue/views/components/form_sub_normal.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue/views/components/list_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue/views/components/list_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/views/components/form_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/views/components/form_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/views/components/form_sub_normal.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/views/components/list_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/views/components/list_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/views/import.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_admin_uniapp/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_admin_uniapp/components/search-form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_admin_uniapp/views/detail/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_admin_uniapp/views/form/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_admin_uniapp/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben/views/data.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/views/import.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/views/modules/form_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/views/modules/form_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/views/modules/form_sub_normal.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/views/modules/list_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/general/views/modules/list_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/import.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/modules/form_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/modules/form_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/modules/form_sub_normal.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/modules/list_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antd/schema/views/modules/list_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/views/import.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/views/modules/form_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/views/modules/form_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/views/modules/form_sub_normal.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/views/modules/list_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/general/views/modules/list_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/data.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/import.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/modules/form_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/modules/form_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/modules/form_sub_normal.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/modules/list_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/modules/list_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/views/import.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/views/modules/form_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/views/modules/form_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/views/modules/form_sub_normal.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/views/modules/list_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/general/views/modules/list_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/api/api.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/data.ts.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/form.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/import.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/index.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/modules/form_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/modules/form_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/modules/form_sub_normal.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/modules/list_sub_erp.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/codegen/vue3_vben5_ele/schema/views/modules/list_sub_inner.vue.vm (100%) rename {nl-module-infra/nl-module-infra-server => nl-module-system/nl-module-system-server}/src/main/resources/file/erweima.jpg (100%) create mode 100644 nl-module-wms/nl-module-wms-api/src/main/java/cn/code/nl/module/wms/api/coretubetype/CoreTubeTypeApi.java create mode 100644 nl-module-wms/nl-module-wms-api/src/main/java/cn/code/nl/module/wms/api/coretubetype/dto/CoreTubeTypeResp.java create mode 100644 nl-module-wms/nl-module-wms-server/src/main/java/cn/code/nl/module/wms/api/coretubetype/CoreTubeTypeApiImpl.java create mode 100644 nl-module-wms/nl-module-wms-server/src/main/java/cn/code/nl/module/wms/controller/admin/coretubetype/CoreTubeTypeController.java create mode 100644 nl-module-wms/nl-module-wms-server/src/main/java/cn/code/nl/module/wms/controller/admin/coretubetype/vo/CoreTubeTypePageReqVO.java create mode 100644 nl-module-wms/nl-module-wms-server/src/main/java/cn/code/nl/module/wms/controller/admin/coretubetype/vo/CoreTubeTypeRespVO.java create mode 100644 nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/api/wms/coretubetype/index.ts create mode 100644 nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/lms/daily-plan/management/modules/core-tube.vue create mode 100644 nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/wms/boxtype/data.ts create mode 100644 nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/wms/boxtype/index.vue create mode 100644 nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/wms/coretubetype/data.ts create mode 100644 nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/wms/coretubetype/index.vue create mode 100644 sql/mysql/backup_20260928_lms_sub_package_relation.sql create mode 100644 sql/mysql/backup_20260928_wms_group_plate.sql create mode 100644 sql/mysql/backup_20260928_wms_iostorinv.sql create mode 100644 sql/mysql/backup_20260928_wms_iostorinvdis.sql create mode 100644 sql/mysql/backup_20260928_wms_iostorinvdtl.sql create mode 100644 sql/mysql/backup_20260928_wms_structattr.sql create mode 100644 sql/mysql/lms_daily_plan_kingdee_batch.sql create mode 100644 sql/mysql/wms_b22411_inventory_delete.sql create mode 100644 sql/mysql/wms_b22411_inventory_insert.sql create mode 100644 sql/mysql/wms_core_tube_box_type_menu.sql diff --git a/README.md b/README.md index b70aa1b4..31dd7170 100644 --- a/README.md +++ b/README.md @@ -333,9 +333,8 @@ | `nl-dependencies` | Maven 依赖版本管理 | | `nl-framework` | Java 框架拓展 | | `nl-server` | 管理后台 + 用户 APP 的服务端 | -| `nl-module-system` | 系统功能的 Module 模块 | +| `nl-module-system` | 系统功能与基础设施的 Module 模块 | | `nl-module-member` | 会员中心的 Module 模块 | -| `nl-module-infra` | 基础设施的 Module 模块 | | `nl-module-bpm` | 工作流程的 Module 模块 | | `nl-module-pay` | 支付系统的 Module 模块 | | `nl-module-mall` | 商城系统的 Module 模块 | diff --git a/doc/token-authentication-filter-analysis.md b/doc/token-authentication-filter-analysis.md index 41e59a11..b724ed5f 100644 --- a/doc/token-authentication-filter-analysis.md +++ b/doc/token-authentication-filter-analysis.md @@ -120,7 +120,6 @@ Authorization: Bearer test123 - `nl-server/src/main/resources/application-local.yaml` - `nl-module-system/nl-module-system-server/src/main/resources/application-local.yaml` -- `nl-module-infra/nl-module-infra-server/src/main/resources/application-local.yaml` 这正是你看到的“可指定用户信息”的功能,但准确地说它是**用 Token 后缀指定用户 ID 的开发调试功能**,而不是把用户资料写入配置文件。 diff --git a/nl-framework/nl-spring-boot-starter-execute/pom.xml b/nl-framework/nl-spring-boot-starter-execute/pom.xml index 8eccfdec..7f26b455 100644 --- a/nl-framework/nl-spring-boot-starter-execute/pom.xml +++ b/nl-framework/nl-spring-boot-starter-execute/pom.xml @@ -20,7 +20,7 @@ cn.nl.cloud - nl-module-infra-api + nl-module-system-api ${revision} diff --git a/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/apilog/core/filter/ApiAccessLogFilter.java b/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/apilog/core/filter/ApiAccessLogFilter.java index 94a7cb6c..93bee6c9 100644 --- a/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/apilog/core/filter/ApiAccessLogFilter.java +++ b/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/apilog/core/filter/ApiAccessLogFilter.java @@ -128,15 +128,25 @@ public class ApiAccessLogFilter extends ApiRequestFilter { .setUserAgent(ServletUtils.getUserAgent(request)).setUserIp(ServletUtils.getClientIP(request)); String[] sanitizeKeys = accessLogAnnotation != null ? accessLogAnnotation.sanitizeKeys() : null; Boolean requestEnable = accessLogAnnotation != null ? accessLogAnnotation.requestEnable() : Boolean.TRUE; - if (!BooleanUtil.isFalse(requestEnable)) { // 默认记录,所以判断 !false + Object externalRequestBody = WebFrameworkUtils.getExternalRequestBody(request); + if (externalRequestBody != null) { + // 当前业务调用了外部系统时,访问日志优先展示实际外发报文。 + accessLog.setRequestParams(sanitizeExternalBody(externalRequestBody, sanitizeKeys)); + } else if (!BooleanUtil.isFalse(requestEnable)) { // 默认记录,所以判断 !false Map requestParams = MapUtil.builder() .put("query", sanitizeMap(queryString, sanitizeKeys)) .put("body", sanitizeJson(requestBody, sanitizeKeys)).build(); accessLog.setRequestParams(toJsonString(requestParams)); } Boolean responseEnable = accessLogAnnotation != null ? accessLogAnnotation.responseEnable() : Boolean.FALSE; - if (BooleanUtil.isTrue(responseEnable)) { // 默认不记录,默认强制要求 true - accessLog.setResponseBody(sanitizeJson(result, sanitizeKeys)); + Object externalResponseBody = WebFrameworkUtils.getExternalResponseBody(request); + if (externalResponseBody != null) { + accessLog.setResponseBody(sanitizeExternalBody(externalResponseBody, sanitizeKeys)); + } else if (BooleanUtil.isTrue(responseEnable)) { // 默认不记录,默认强制要求 true + Object responseBody = WebFrameworkUtils.getResponseBody(request); + accessLog.setResponseBody(responseBody instanceof CommonResult commonResult + ? sanitizeJson(commonResult, sanitizeKeys) + : sanitizeJson(responseBody, sanitizeKeys)); } // 持续时间 accessLog.setBeginTime(beginTime).setEndTime(LocalDateTime.now()) @@ -224,6 +234,27 @@ public class ApiAccessLogFilter extends ApiRequestFilter { } } + private static String sanitizeJson(Object responseBody, String[] sanitizeKeys) { + if (responseBody == null) { + return null; + } + String jsonString = toJsonString(responseBody); + try { + JsonNode rootNode = JsonUtils.parseTree(jsonString); + sanitizeJson(rootNode, sanitizeKeys); + return JsonUtils.toJsonString(rootNode); + } catch (Exception e) { + log.error("[sanitizeJson][脱敏响应({}) 发生异常]", jsonString, e); + return jsonString; + } + } + + private static String sanitizeExternalBody(Object body, String[] sanitizeKeys) { + return body instanceof String stringBody + ? sanitizeJson(stringBody, sanitizeKeys) + : sanitizeJson(body, sanitizeKeys); + } + private static void sanitizeJson(JsonNode node, String[] sanitizeKeys) { // 情况一:数组,遍历处理 if (node.isArray()) { diff --git a/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/web/core/handler/GlobalResponseBodyHandler.java b/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/web/core/handler/GlobalResponseBodyHandler.java index 3ae88ef2..fb827767 100644 --- a/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/web/core/handler/GlobalResponseBodyHandler.java +++ b/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/web/core/handler/GlobalResponseBodyHandler.java @@ -29,16 +29,19 @@ public class GlobalResponseBodyHandler implements ResponseBodyAdvice { if (returnType.getMethod() == null) { return false; } - // 只拦截返回结果为 CommonResult 类型 - return returnType.getMethod().getReturnType() == CommonResult.class; + return returnType.getMethod().getReturnType() != Void.TYPE; } @Override @SuppressWarnings("NullableProblems") // 避免 IDEA 警告 public Object beforeBodyWrite(Object body, MethodParameter returnType, MediaType selectedContentType, Class selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) { - // 记录 Controller 结果 - WebFrameworkUtils.setCommonResult(((ServletServerHttpRequest) request).getServletRequest(), (CommonResult) body); + // 记录 Controller 返回体,供开启 responseEnable 的访问日志使用。 + var servletRequest = ((ServletServerHttpRequest) request).getServletRequest(); + WebFrameworkUtils.setResponseBody(servletRequest, body); + if (body instanceof CommonResult commonResult) { + WebFrameworkUtils.setCommonResult(servletRequest, commonResult); + } return body; } diff --git a/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/web/core/util/WebFrameworkUtils.java b/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/web/core/util/WebFrameworkUtils.java index 0cda42ce..87170f51 100644 --- a/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/web/core/util/WebFrameworkUtils.java +++ b/nl-framework/nl-spring-boot-starter-web/src/main/java/cn/code/nl/framework/web/core/util/WebFrameworkUtils.java @@ -26,6 +26,9 @@ public class WebFrameworkUtils { private static final String REQUEST_ATTRIBUTE_LOGIN_USER_TYPE = "login_user_type"; private static final String REQUEST_ATTRIBUTE_COMMON_RESULT = "common_result"; + private static final String REQUEST_ATTRIBUTE_RESPONSE_BODY = "response_body"; + private static final String REQUEST_ATTRIBUTE_EXTERNAL_REQUEST_BODY = "external_request_body"; + private static final String REQUEST_ATTRIBUTE_EXTERNAL_RESPONSE_BODY = "external_response_body"; public static final String HEADER_TENANT_ID = "tenant-id"; public static final String HEADER_VISIT_TENANT_ID = "visit-tenant-id"; @@ -148,6 +151,38 @@ public class WebFrameworkUtils { return (CommonResult) request.getAttribute(REQUEST_ATTRIBUTE_COMMON_RESULT); } + public static void setResponseBody(ServletRequest request, Object responseBody) { + request.setAttribute(REQUEST_ATTRIBUTE_RESPONSE_BODY, responseBody); + } + + public static Object getResponseBody(ServletRequest request) { + return request.getAttribute(REQUEST_ATTRIBUTE_RESPONSE_BODY); + } + + /** 记录当前业务请求向外部系统实际发送的请求报文。 */ + public static void setExternalRequestBody(Object requestBody) { + HttpServletRequest request = getRequest(); + if (request != null) { + request.setAttribute(REQUEST_ATTRIBUTE_EXTERNAL_REQUEST_BODY, requestBody); + } + } + + public static Object getExternalRequestBody(ServletRequest request) { + return request.getAttribute(REQUEST_ATTRIBUTE_EXTERNAL_REQUEST_BODY); + } + + /** 记录当前业务请求收到的外部系统原始返回报文。 */ + public static void setExternalResponseBody(Object responseBody) { + HttpServletRequest request = getRequest(); + if (request != null) { + request.setAttribute(REQUEST_ATTRIBUTE_EXTERNAL_RESPONSE_BODY, responseBody); + } + } + + public static Object getExternalResponseBody(ServletRequest request) { + return request.getAttribute(REQUEST_ATTRIBUTE_EXTERNAL_RESPONSE_BODY); + } + @SuppressWarnings("PatternVariableCanBeUsed") public static HttpServletRequest getRequest() { RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); diff --git a/nl-module-infra/nl-module-infra-api/pom.xml b/nl-module-infra/nl-module-infra-api/pom.xml deleted file mode 100644 index e9c7af8c..00000000 --- a/nl-module-infra/nl-module-infra-api/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - cn.nl.cloud - nl-module-infra - ${revision} - - 4.0.0 - nl-module-infra-api - jar - - ${project.artifactId} - - infra 模块 API,暴露给其它模块调用 - - - - - cn.nl.cloud - nl-common - - - - - org.springdoc - springdoc-openapi-starter-webmvc-ui - provided - - - - - org.springframework.boot - spring-boot-starter-validation - true - - - - - org.springframework.cloud - spring-cloud-starter-openfeign - true - - - - diff --git a/nl-module-infra/nl-module-infra-server/Dockerfile b/nl-module-infra/nl-module-infra-server/Dockerfile deleted file mode 100644 index 1383a5fe..00000000 --- a/nl-module-infra/nl-module-infra-server/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -## AdoptOpenJDK 停止发布 OpenJDK 二进制,而 Eclipse Temurin 是它的延伸,提供更好的稳定性 -## 感谢复旦核博士的建议!灰子哥,牛皮! -FROM eclipse-temurin:21-jre - -## 创建目录,并使用它作为工作目录 -RUN mkdir -p /nl-module-infra-server -WORKDIR /nl-module-infra-server -## 将后端项目的 Jar 文件,复制到镜像中 -COPY ./target/nl-module-infra-server.jar app.jar - -## 设置 TZ 时区 -## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖 -ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m" - -## 暴露后端项目的 48080 端口 -EXPOSE 48082 - -## 启动后端项目 -CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar diff --git a/nl-module-infra/nl-module-infra-server/pom.xml b/nl-module-infra/nl-module-infra-server/pom.xml deleted file mode 100644 index 4ed96a0d..00000000 --- a/nl-module-infra/nl-module-infra-server/pom.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - cn.nl.cloud - nl-module-infra - ${revision} - - 4.0.0 - nl-module-infra-server - jar - - ${project.artifactId} - - infra 模块,主要提供两块能力: - 1. 我们放基础设施的运维与管理,支撑上层的通用与核心业务。 例如说:定时任务的管理、服务器的信息等等 - 2. 研发工具,提升研发效率与质量。 例如说:代码生成器、接口文档等等 - - - - - - cn.nl.cloud - nl-spring-boot-starter-env - - - - - cn.nl.cloud - nl-module-infra-api - ${revision} - - - - - cn.nl.cloud - nl-spring-boot-starter-biz-tenant - - - - - cn.nl.cloud - nl-spring-boot-starter-security - - - - cn.nl.cloud - nl-spring-boot-starter-websocket - - - - - cn.nl.cloud - nl-spring-boot-starter-mybatis - - - com.baomidou - mybatis-plus-generator - - - - cn.nl.cloud - nl-spring-boot-starter-redis - - - - - cn.nl.cloud - nl-spring-boot-starter-rpc - - - - - com.alibaba.cloud - spring-cloud-starter-alibaba-nacos-discovery - - - - - com.alibaba.cloud - spring-cloud-starter-alibaba-nacos-config - - - - - cn.nl.cloud - nl-spring-boot-starter-job - - - - - cn.nl.cloud - nl-spring-boot-starter-mq - - - - - cn.nl.cloud - nl-spring-boot-starter-excel - - - - org.apache.velocity - velocity-engine-core - - - - - cn.nl.cloud - nl-spring-boot-starter-monitor - - - - - - - - - - commons-net - commons-net - - - com.github.mwiede - jsch - - - software.amazon.awssdk - s3 - - - - org.apache.tika - tika-core - - - - - - ${project.artifactId} - - - - org.springframework.boot - spring-boot-maven-plugin - ${spring.boot.version} - - - - repackage - - - - exec - - - - - - - - diff --git a/nl-module-infra/nl-module-infra-server/src/main/java/cn/code/nl/module/infra/InfraServerApplication.java b/nl-module-infra/nl-module-infra-server/src/main/java/cn/code/nl/module/infra/InfraServerApplication.java deleted file mode 100644 index 2b8b10e1..00000000 --- a/nl-module-infra/nl-module-infra-server/src/main/java/cn/code/nl/module/infra/InfraServerApplication.java +++ /dev/null @@ -1,30 +0,0 @@ -package cn.code.nl.module.infra; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -/** - * 项目的启动类 - *

- * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - * - * @author 芋道源码 - */ -@SpringBootApplication -public class InfraServerApplication { - - public static void main(String[] args) { - // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - - SpringApplication.run(InfraServerApplication.class, args); - - // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - } - -} diff --git a/nl-module-infra/nl-module-infra-server/src/main/resources/application-dev.yaml b/nl-module-infra/nl-module-infra-server/src/main/resources/application-dev.yaml deleted file mode 100644 index 289a6ae9..00000000 --- a/nl-module-infra/nl-module-infra-server/src/main/resources/application-dev.yaml +++ /dev/null @@ -1,138 +0,0 @@ ---- #################### 注册中心 + 配置中心相关配置 #################### - -spring: - cloud: - nacos: - server-addr: 192.168.81.193:8848 # Nacos 服务器地址 - username: nacos - password: nacos - discovery: # 【配置中心】配置项 - namespace: 91c8ac41-7fb0-423b-947e-2caad4c87d41 # 命名空间。这里使用 dev 开发环境 - group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP - metadata: - version: 1.0.0 # 服务实例的版本号,可用于灰度发布 - config: # 【注册中心】配置项 - namespace: 91c8ac41-7fb0-423b-947e-2caad4c87d41 # 命名空间。这里使用 dev 开发环境 - group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP - ---- #################### 数据库相关配置 #################### -spring: - # 数据源配置项 - autoconfigure: - exclude: - datasource: - druid: # Druid 【监控】相关的全局配置 - web-stat-filter: - enabled: true - stat-view-servlet: - enabled: true - allow: # 设置白名单,不填则允许所有访问 - url-pattern: /druid/* - login-username: # 控制台管理用户名和密码 - login-password: - filter: - stat: - enabled: true - log-slow-sql: true # 慢 SQL 记录 - slow-sql-millis: 100 - merge-sql: true - wall: - config: - multi-statement-allow: true - dynamic: # 多数据源配置 - druid: # Druid 【连接池】相关的全局配置 - initial-size: 5 # 初始连接数 - min-idle: 10 # 最小连接池数量 - max-active: 20 # 最大连接池数量 - max-wait: 60000 # 配置获取连接等待超时的时间,单位:毫秒(1 分钟) - time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒(1 分钟) - min-evictable-idle-time-millis: 600000 # 配置一个连接在池中最小生存的时间,单位:毫秒(10 分钟) - max-evictable-idle-time-millis: 1800000 # 配置一个连接在池中最大生存的时间,单位:毫秒(30 分钟) - validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效 - test-while-idle: true - test-on-borrow: false - test-on-return: false - pool-prepared-statements: true # 是否开启 PreparedStatement 缓存 - max-pool-prepared-statement-per-connection-size: 20 # 每个连接缓存的 PreparedStatement 数量 - primary: master - datasource: - master: - url: jdbc:mysql://localhost:3306/huachuang_lms_dev?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 - username: root - password: root - slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 - lazy: true # 开启懒加载,保证启动速度 - url: jdbc:mysql://localhost:3306/huachuang_lms_dev?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 - username: root - password: root - - # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 - data: - redis: - host: 127.0.0.1 # 地址 - port: 6379 # 端口 - database: 1 # 数据库索引 -# password: 123456 # 密码,建议生产环境开启 - ---- #################### MQ 消息队列相关配置 #################### - -# rocketmq 配置项,对应 RocketMQProperties 配置类 -rocketmq: - name-server: 127.0.0.1:9876 # RocketMQ Namesrv - -spring: - # RabbitMQ 配置项,对应 RabbitProperties 配置类 - rabbitmq: - host: 127.0.0.1 # RabbitMQ 服务的地址 - port: 5672 # RabbitMQ 服务的端口 - username: guest # RabbitMQ 服务的账号 - password: guest # RabbitMQ 服务的密码 - # Kafka 配置项,对应 KafkaProperties 配置类 - kafka: - bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔 - ---- #################### 定时任务相关配置 #################### -xxl: - job: - admin: - addresses: http://192.168.81.193:8080/xxl-job-admin # 调度中心部署跟地址 - accessToken: 123456 # 执行器通讯TOKEN - executor: - ip: 192.168.81.193 - port: 9981 - ---- #################### 服务保障相关配置 #################### - -# Lock4j 配置项 -lock4j: - acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒 - expire: 30000 # 分布式锁的超时时间,默认为 30000 毫秒 - ---- #################### 监控相关配置 #################### - -# Actuator 监控端点的配置项 -management: - endpoints: - web: - base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator - exposure: - include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 - -# Spring Boot Admin 配置项 -spring: - boot: - admin: - # Spring Boot Admin Client 客户端的相关配置 - client: - instance: - service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME] - username: admin - password: admin - # Spring Boot Admin Server 服务端的相关配置 - context-path: /admin # 配置 Spring - ---- #################### 芋道相关配置 #################### - -# 芋道配置项,设置当前项目所有自定义的配置 -nl: - demo: false # 开启演示模式 diff --git a/nl-module-infra/nl-module-infra-server/src/main/resources/application-local.yaml b/nl-module-infra/nl-module-infra-server/src/main/resources/application-local.yaml deleted file mode 100644 index b3d2e8a5..00000000 --- a/nl-module-infra/nl-module-infra-server/src/main/resources/application-local.yaml +++ /dev/null @@ -1,164 +0,0 @@ ---- #################### 注册中心 + 配置中心相关配置 #################### - -spring: - cloud: - nacos: - server-addr: 127.0.0.1:8848 # Nacos 服务器地址 - username: # Nacos 账号 - password: # Nacos 密码 - discovery: # 【配置中心】配置项 - namespace: dev # 命名空间。这里使用 dev 开发环境 - group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP - metadata: - version: 1.0.0 # 服务实例的版本号,可用于灰度发布 - config: # 【注册中心】配置项 - namespace: dev # 命名空间。这里使用 dev 开发环境 - group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP - ---- #################### 数据库相关配置 #################### -spring: - - # 数据源配置项 - autoconfigure: - exclude: - datasource: - druid: # Druid 【监控】相关的全局配置 - web-stat-filter: - enabled: true - stat-view-servlet: - enabled: true - allow: # 设置白名单,不填则允许所有访问 - url-pattern: /druid/* - login-username: # 控制台管理用户名和密码 - login-password: - filter: - stat: - enabled: true - log-slow-sql: true # 慢 SQL 记录 - slow-sql-millis: 100 - merge-sql: true - wall: - config: - multi-statement-allow: true - dynamic: # 多数据源配置 - druid: # Druid 【连接池】相关的全局配置 - initial-size: 1 # 初始连接数 - min-idle: 1 # 最小连接池数量 - max-active: 20 # 最大连接池数量 - max-wait: 60000 # 配置获取连接等待超时的时间,单位:毫秒(1 分钟) - time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒(1 分钟) - min-evictable-idle-time-millis: 600000 # 配置一个连接在池中最小生存的时间,单位:毫秒(10 分钟) - max-evictable-idle-time-millis: 1800000 # 配置一个连接在池中最大生存的时间,单位:毫秒(30 分钟) - validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效 - test-while-idle: true - test-on-borrow: false - test-on-return: false - pool-prepared-statements: true # 是否开启 PreparedStatement 缓存 - max-pool-prepared-statement-per-connection-size: 20 # 每个连接缓存的 PreparedStatement 数量 - primary: master - datasource: - master: - url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 - # url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true # MySQL Connector/J 5.X 连接的示例 - # url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例 - # url: jdbc:postgresql://127.0.0.1:5866/ruoyi-vue-pro # 瀚高 HighGo 连接的示例 - # url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例 - # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro # SQLServer 连接的示例 - # url: jdbc:dm://10.211.55.4:5236?schema=RUOYI_VUE_PRO # DM 连接的示例 - username: root - password: root - # username: sa # SQL Server 连接的示例 - # password: JSm:g(*%lU4ZAkz06cd52KqT3)i1?H7W # SQL Server 连接的示例 - # username: SYSDBA # DM 连接的示例 - # password: SYSDBA # DM 连接的示例 - # username: root # 瀚高 HighGo 连接的示例 - # password: 123456 # 瀚高 HighGo 连接的示例 - slave: # 模拟从库,可根据自己需要修改 - lazy: true # 开启懒加载,保证启动速度 - url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true - username: root - password: root - - # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 - data: - redis: - host: 127.0.0.1 # 地址 - port: 6379 # 端口 - database: 0 # 数据库索引 -# password: 123456 # 密码,建议生产环境开启 - ---- #################### MQ 消息队列相关配置 #################### - -# rocketmq 配置项,对应 RocketMQProperties 配置类 -rocketmq: - name-server: 127.0.0.1:9876 # RocketMQ Namesrv - -spring: - # RabbitMQ 配置项,对应 RabbitProperties 配置类 - rabbitmq: - host: 127.0.0.1 # RabbitMQ 服务的地址 - port: 5672 # RabbitMQ 服务的端口 - username: guest # RabbitMQ 服务的账号 - password: guest # RabbitMQ 服务的密码 - # Kafka 配置项,对应 KafkaProperties 配置类 - kafka: - bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔 - ---- #################### 定时任务相关配置 #################### -xxl: - job: - enabled: false # 是否开启调度中心,默认为 true 开启 - admin: - addresses: http://127.0.0.1:8080/xxl-job-admin # 调度中心部署跟地址 - ---- #################### 服务保障相关配置 #################### - -# Lock4j 配置项 -lock4j: - acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒 - expire: 30000 # 分布式锁的超时时间,默认为 30000 毫秒 - ---- #################### 监控相关配置 #################### - -# Actuator 监控端点的配置项 -management: - endpoints: - web: - base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator - exposure: - include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 - -# Spring Boot Admin 配置项 -spring: - boot: - admin: - # Spring Boot Admin Client 客户端的相关配置 - client: - instance: - service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME] - username: admin - password: admin - # Spring Boot Admin Server 服务端的相关配置 - context-path: /admin # 配置 Spring - # 允许嵌入 iframe 的域名(支持通配符),实际部署时,可以改为 "'self' [你的公网域名]" - frame-ancestors: "'self' localhost localhost:48082 127.0.0.1 127.0.0.1:48082" - -# 日志文件配置 -logging: - level: - # 配置自己写的 MyBatis Mapper 打印日志 - cn.code.nl.module.infra.dal.mysql: debug - cn.code.nl.module.infra.dal.mysql.logger.ApiErrorLogMapper: INFO # 配置 ApiErrorLogMapper 的日志级别为 info,避免和 GlobalExceptionHandler 重复打印 - cn.code.nl.module.infra.dal.mysql.file.FileConfigMapper: INFO # 配置 FileConfigMapper 的日志级别为 info - org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示 - ---- #################### 芋道相关配置 #################### - -# 芋道配置项,设置当前项目所有自定义的配置 -nl: - env: # 多环境的配置项 - tag: ${HOSTNAME} - security: - mock-enable: true - access-log: # 访问日志的配置项 - enable: true \ No newline at end of file diff --git a/nl-module-infra/nl-module-infra-server/src/main/resources/application-test.yaml b/nl-module-infra/nl-module-infra-server/src/main/resources/application-test.yaml deleted file mode 100644 index e0daf805..00000000 --- a/nl-module-infra/nl-module-infra-server/src/main/resources/application-test.yaml +++ /dev/null @@ -1,138 +0,0 @@ ---- #################### 注册中心 + 配置中心相关配置 #################### - -spring: - cloud: - nacos: - server-addr: 192.168.81.193:8848 # Nacos 服务器地址 - username: nacos - password: nacos - discovery: # 【配置中心】配置项 - namespace: test # 命名空间。这里使用 dev 开发环境 - group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP - metadata: - version: 1.0.0 # 服务实例的版本号,可用于灰度发布 - config: # 【注册中心】配置项 - namespace: test # 命名空间。这里使用 dev 开发环境 - group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP - ---- #################### 数据库相关配置 #################### -spring: - # 数据源配置项 - autoconfigure: - exclude: - datasource: - druid: # Druid 【监控】相关的全局配置 - web-stat-filter: - enabled: true - stat-view-servlet: - enabled: true - allow: # 设置白名单,不填则允许所有访问 - url-pattern: /druid/* - login-username: # 控制台管理用户名和密码 - login-password: - filter: - stat: - enabled: true - log-slow-sql: true # 慢 SQL 记录 - slow-sql-millis: 100 - merge-sql: true - wall: - config: - multi-statement-allow: true - dynamic: # 多数据源配置 - druid: # Druid 【连接池】相关的全局配置 - initial-size: 5 # 初始连接数 - min-idle: 10 # 最小连接池数量 - max-active: 20 # 最大连接池数量 - max-wait: 60000 # 配置获取连接等待超时的时间,单位:毫秒(1 分钟) - time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒(1 分钟) - min-evictable-idle-time-millis: 600000 # 配置一个连接在池中最小生存的时间,单位:毫秒(10 分钟) - max-evictable-idle-time-millis: 1800000 # 配置一个连接在池中最大生存的时间,单位:毫秒(30 分钟) - validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效 - test-while-idle: true - test-on-borrow: false - test-on-return: false - pool-prepared-statements: true # 是否开启 PreparedStatement 缓存 - max-pool-prepared-statement-per-connection-size: 20 # 每个连接缓存的 PreparedStatement 数量 - primary: master - datasource: - master: - url: jdbc:mysql://192.168.81.193:3306/huachuang_lms_dev?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 - username: root - password: root - slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 - lazy: true # 开启懒加载,保证启动速度 - url: jdbc:mysql://192.168.81.193:3306/huachuang_lms_dev?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 - username: root - password: root - - # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 - data: - redis: - host: 192.168.81.193 # 地址 - port: 6379 # 端口 - database: 1 # 数据库索引 - password: redis123 - ---- #################### MQ 消息队列相关配置 #################### - -# rocketmq 配置项,对应 RocketMQProperties 配置类 -rocketmq: - name-server: 192.168.81.193:9876 # RocketMQ Namesrv - -spring: - # RabbitMQ 配置项,对应 RabbitProperties 配置类 - rabbitmq: - host: 127.0.0.1 # RabbitMQ 服务的地址 - port: 5672 # RabbitMQ 服务的端口 - username: guest # RabbitMQ 服务的账号 - password: guest # RabbitMQ 服务的密码 - # Kafka 配置项,对应 KafkaProperties 配置类 - kafka: - bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔 - ---- #################### 定时任务相关配置 #################### -xxl: - job: - admin: - addresses: http://192.168.81.193:8080/xxl-job-admin # 调度中心部署跟地址 - access-token: default_token - executor: - ip: 192.168.81.193 - port: 9991 - ---- #################### 服务保障相关配置 #################### - -# Lock4j 配置项 -lock4j: - acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒 - expire: 30000 # 分布式锁的超时时间,默认为 30000 毫秒 - ---- #################### 监控相关配置 #################### - -# Actuator 监控端点的配置项 -management: - endpoints: - web: - base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator - exposure: - include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 - -# Spring Boot Admin 配置项 -spring: - boot: - admin: - # Spring Boot Admin Client 客户端的相关配置 - client: - instance: - service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME] - username: admin - password: admin - # Spring Boot Admin Server 服务端的相关配置 - context-path: /admin # 配置 Spring - ---- #################### 芋道相关配置 #################### - -# 芋道配置项,设置当前项目所有自定义的配置 -nl: - demo: false # 开启演示模式 diff --git a/nl-module-infra/nl-module-infra-server/src/main/resources/application.yaml b/nl-module-infra/nl-module-infra-server/src/main/resources/application.yaml deleted file mode 100644 index 55652fbf..00000000 --- a/nl-module-infra/nl-module-infra-server/src/main/resources/application.yaml +++ /dev/null @@ -1,172 +0,0 @@ -spring: - application: - name: infra-server - - profiles: - active: dev - - main: - allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。 - allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务 - - config: - import: - - optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置 - - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置 - - # Servlet 配置 - servlet: - # 文件上传相关配置项 - multipart: - max-file-size: 16MB # 单个文件大小 - max-request-size: 32MB # 设置总上传的文件大小 - - # Jackson 配置项 - jackson: - serialization: - write-dates-as-timestamps: true # 设置 LocalDateTime 的格式,使用时间戳 - write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401 - write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳 - fail-on-empty-beans: false # 允许序列化无属性的 Bean - - # Cache 配置项 - cache: - type: REDIS - redis: - time-to-live: 1h # 设置过期时间为 1 小时 - -server: - port: 48082 - -logging: - file: - name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 - ---- #################### 接口文档配置 #################### - -springdoc: - api-docs: - enabled: true # 1. 是否开启 Swagger 接文档的元数据 - path: /v3/api-docs - swagger-ui: - enabled: true # 2.1 是否开启 Swagger 文档的官方 UI 界面 - path: /swagger-ui - default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档 - -knife4j: - enable: true - setting: - language: zh_cn - -# MyBatis Plus 的配置项 -mybatis-plus: - configuration: - map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。 - global-config: - db-config: - id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。 - # id-type: AUTO # 自增 ID,适合 MySQL 等直接自增的数据库 - # id-type: INPUT # 用户输入 ID,适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库 - # id-type: ASSIGN_ID # 分配 ID,默认使用雪花算法。注意,Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解 - logic-delete-value: 1 # 逻辑已删除值(默认为 1) - logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) - banner: false # 关闭控制台的 Banner 打印 - type-aliases-package: ${nl.info.base-package}.dal.dataobject - encryptor: - password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成 - -mybatis-plus-join: - banner: false # 关闭控制台的 Banner 打印 - -# Spring Data Redis 配置 -spring: - data: - redis: - repositories: - enabled: false # 项目未使用到 Spring Data Redis 的 Repository,所以直接禁用,保证启动速度 - -# VO 转换(数据翻译)相关 -easy-trans: - is-enable-global: false # 【默认禁用,对性能确认压力大】启用全局翻译(拦截所有 SpringMVC ResponseBody 进行自动翻译 )。如果对于性能要求很高可关闭此配置,或通过 @IgnoreTrans 忽略某个接口 - ---- #################### RPC 远程调用相关配置 #################### - ---- #################### 消息队列相关 #################### - -# rocketmq 配置项,对应 RocketMQProperties 配置类 -rocketmq: - # Producer 配置项 - producer: - group: ${spring.application.name}_PRODUCER # 生产者分组 - -spring: - # Kafka 配置项,对应 KafkaProperties 配置类 - kafka: - # Kafka Producer 配置项 - producer: - acks: 1 # 0-不应答。1-leader 应答。all-所有 leader 和 follower 应答。 - retries: 3 # 发送失败时,重试发送的次数 - value-serializer: org.springframework.kafka.support.serializer.JsonSerializer # 消息的 value 的序列化 - # Kafka Consumer 配置项 - consumer: - auto-offset-reset: earliest # 设置消费者分组最初的消费进度为 earliest 。可参考博客 https://blog.csdn.net/lishuangzhe7047/article/details/74530417 理解 - value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer - properties: - spring.json.trusted.packages: '*' - # Kafka Consumer Listener 监听器配置 - listener: - missing-topics-fatal: false # 消费监听接口监听的主题不存在时,默认会报错。所以通过设置为 false ,解决报错 - ---- #################### 定时任务相关配置 #################### - -xxl: - job: - executor: - appname: ${spring.application.name} # 执行器 AppName - logpath: ${user.home}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径 - ---- #################### 芋道相关配置 #################### - -nl: - info: - version: 1.0.0 - base-package: cn.code.nl.module.infra - web: - admin-ui: - url: http://dashboard.nl.iocoder.cn # Admin 管理后台 UI 的地址 - xss: - enable: false - exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系 - - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求 - - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求 - websocket: - enable: true # websocket的开关 - path: /infra/ws # 路径 - sender-type: local # 消息发送的类型,可选值为 local、redis、rocketmq、kafka、rabbitmq - sender-rocketmq: - topic: ${spring.application.name}-websocket # 消息发送的 RocketMQ Topic - consumer-group: ${spring.application.name}-websocket-consumer # 消息发送的 RocketMQ Consumer Group - sender-rabbitmq: - exchange: ${spring.application.name}-websocket-exchange # 消息发送的 RabbitMQ Exchange - queue: ${spring.application.name}-websocket-queue # 消息发送的 RabbitMQ Queue - sender-kafka: - topic: ${spring.application.name}-websocket # 消息发送的 Kafka Topic - consumer-group: ${spring.application.name}-websocket-consumer # 消息发送的 Kafka Consumer Group - swagger: - title: 管理后台 - description: 提供管理员管理的所有功能 - version: ${nl.info.version} - codegen: - base-package: cn.code.nl - db-schemas: ${spring.datasource.dynamic.datasource.master.name} - front-type: 20 # 前端模版的类型,参见 CodegenFrontTypeEnum 枚举类 - vo-type: 10 # VO 的类型,参见 CodegenVOTypeEnum 枚举类 - delete-batch-enable: true # 是否生成批量删除接口 - unit-test-enable: false # 是否生成单元测试 - import-enable: false # 是否生成 Excel 导入接口 - tenant: # 多租户相关配置项 - enable: false - ignore-urls: - ignore-tables: - -debug: false diff --git a/nl-module-infra/nl-module-infra-server/src/main/resources/logback-spring.xml b/nl-module-infra/nl-module-infra-server/src/main/resources/logback-spring.xml deleted file mode 100644 index 15b28cfd..00000000 --- a/nl-module-infra/nl-module-infra-server/src/main/resources/logback-spring.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - -       - - ${CONSOLE_LOG_PATTERN} - - - - - - - - ${FILE_LOG_PATTERN} - - - ${LOG_FILE} - - - ${LOG_FILE}.%d{yyyy-MM-dd}.%i.log - 30 - 10MB - - - - - 0 - 512 - - - - - - - - - - - - - - - diff --git a/nl-module-infra/pom.xml b/nl-module-infra/pom.xml deleted file mode 100644 index 2a1a6ceb..00000000 --- a/nl-module-infra/pom.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - cn.nl.cloud - nl - ${revision} - - 4.0.0 - - nl-module-infra-api - nl-module-infra-server - - nl-module-infra - pom - - ${project.artifactId} - - infra 模块,主要提供两块能力: - 1. 我们放基础设施的运维与管理,支撑上层的通用与核心业务。 例如说:定时任务的管理、服务器的信息等等 - 2. 研发工具,提升研发效率与质量。 例如说:代码生成器、接口文档等等 - - - diff --git a/nl-module-lms/nl-module-lms-server/pom.xml b/nl-module-lms/nl-module-lms-server/pom.xml index d17631e6..65abc065 100644 --- a/nl-module-lms/nl-module-lms-server/pom.xml +++ b/nl-module-lms/nl-module-lms-server/pom.xml @@ -53,11 +53,6 @@ nl-module-wms-api ${revision} - - cn.nl.cloud - nl-module-system-api - ${revision} - cn.nl.cloud diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/DailyPlanController.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/DailyPlanController.java index 25c0d83a..5bccbe8f 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/DailyPlanController.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/DailyPlanController.java @@ -4,6 +4,7 @@ import cn.code.nl.framework.common.pojo.CommonResult; import cn.code.nl.framework.common.pojo.PageResult; import cn.code.nl.module.lms.controller.admin.dailyplan.vo.*; import cn.code.nl.module.lms.service.dailyplan.DailyPlanService; +import cn.code.nl.module.wms.api.coretubetype.dto.CoreTubeTypeResp; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; @@ -95,6 +96,21 @@ public class DailyPlanController { return success(true); } + @PutMapping("/updateCoreTube") + @Operation(summary = "修改未开始日计划的管芯") + @PreAuthorize("@ss.hasPermission('lms:daily-plan:update')") + public CommonResult updateCoreTube(@Valid @RequestBody DailyPlanCoreTubeUpdateReqVO reqVO) { + dailyPlanService.updateCoreTube(reqVO); + return success(true); + } + + @GetMapping("/coreTubeTypes") + @Operation(summary = "获得可绑定的管芯基础信息") + @PreAuthorize("@ss.hasPermission('lms:daily-plan:update')") + public CommonResult> getCoreTubeTypes() { + return success(dailyPlanService.getCoreTubeTypes()); + } + @PutMapping("/appendQuantity") @Operation(summary = "追加日计划订单数量") @PreAuthorize("@ss.hasPermission('lms:daily-plan:start')") diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/vo/DailyPlanCoreTubeUpdateReqVO.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/vo/DailyPlanCoreTubeUpdateReqVO.java new file mode 100644 index 00000000..aca369ad --- /dev/null +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/vo/DailyPlanCoreTubeUpdateReqVO.java @@ -0,0 +1,14 @@ +package cn.code.nl.module.lms.controller.admin.dailyplan.vo; + +import jakarta.validation.constraints.NotNull; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** 日计划管芯绑定请求。 */ +@Data +@EqualsAndHashCode(callSuper = true) +public class DailyPlanCoreTubeUpdateReqVO extends DailyPlanVersionReqVO { + + @NotNull(message = "管芯基础信息不能为空") + private Long coreTubeTypeId; +} diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/vo/DailyPlanRespVO.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/vo/DailyPlanRespVO.java index 6ba1a853..eb4cd856 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/vo/DailyPlanRespVO.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/admin/dailyplan/vo/DailyPlanRespVO.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.dromara.core.trans.vo.VO; +import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; @@ -23,6 +24,9 @@ public class DailyPlanRespVO implements VO { private String materialCode; private String materialName; private String materialSpec; + private String coreTubeType; + private BigDecimal coreTubeLength; + private BigDecimal coreTubeWallThickness; private String subRollMaterialCode; private String subRollMaterialDescription; private Integer planQty; diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/LmsErpExceptionHandler.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/LmsErpExceptionHandler.java index c1d17437..66485554 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/LmsErpExceptionHandler.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/LmsErpExceptionHandler.java @@ -1,5 +1,6 @@ package cn.code.nl.module.lms.controller.erp; +import cn.code.nl.framework.common.exception.ServiceException; import jakarta.validation.ConstraintViolationException; import lombok.extern.slf4j.Slf4j; import org.springframework.core.Ordered; @@ -49,6 +50,19 @@ public class LmsErpExceptionHandler { return build(HttpStatus.NOT_FOUND, "业务对象不存在"); } + /** 保留明确抛出的业务错误信息,避免被兜底处理覆盖。 */ + @ExceptionHandler(ServiceException.class) + public ResponseEntity> handleServiceException(ServiceException exception) { + int code = exception.getCode() == null ? HttpStatus.INTERNAL_SERVER_ERROR.value() : exception.getCode(); + HttpStatus status = HttpStatus.resolve(code); + if (status == null) { + status = HttpStatus.INTERNAL_SERVER_ERROR; + } + String message = exception.getMessage() == null || exception.getMessage().isBlank() + ? "业务处理失败" : exception.getMessage(); + return ResponseEntity.status(status).body(ErpResult.error(code, message)); + } + /** 将未识别异常转换为 500 响应。 */ @ExceptionHandler(Exception.class) public ResponseEntity> handleException(Exception exception) { diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/LmsErpInboundController.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/LmsErpInboundController.java index 977349c8..dad4bcf2 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/LmsErpInboundController.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/LmsErpInboundController.java @@ -1,6 +1,7 @@ package cn.code.nl.module.lms.controller.erp; import cn.code.nl.framework.tenant.core.aop.TenantIgnore; +import cn.code.nl.framework.apilog.core.annotation.ApiAccessLog; import cn.code.nl.module.lms.controller.erp.vo.ErpDailyPlanPushReqVO; import cn.code.nl.module.lms.controller.erp.vo.ErpRawFoilRollPushReqVO; import cn.code.nl.module.lms.controller.erp.vo.ErpSubRollQualityReqVO; @@ -14,6 +15,8 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + /** * ERP 入站统一入口。 */ @@ -28,19 +31,22 @@ public class LmsErpInboundController { private ErpInboundService erpInboundService; @PostMapping("/erp/raw-foil-roll/push") + @ApiAccessLog(responseEnable = true, operateModule = "ERP接口", operateName = "生箔母卷推送") public ErpResult pushRawFoilRoll(@Valid @RequestBody ErpRawFoilRollPushReqVO reqVO) { return ErpResult.success(erpInboundService.pushRawFoilRoll(reqVO)); } @PostMapping("/daily-plan/erpPush") - public ErpResult pushDailyPlan(@Valid @RequestBody ErpDailyPlanPushReqVO reqVO) { - return ErpResult.success(erpInboundService.pushDailyPlan(reqVO)); + @ApiAccessLog(responseEnable = true, operateModule = "ERP接口", operateName = "日计划推送") + public ErpResult> pushDailyPlan(@Valid @RequestBody ErpDailyPlanPushReqVO reqVO) { + return ErpResult.success(erpInboundService.pushDailyPlans(reqVO)); } /** * 同步 ERP 子卷号到点位当前内部子卷。 */ @PostMapping("/erp/sub-roll/sync") + @ApiAccessLog(responseEnable = true, operateModule = "ERP接口", operateName = "子卷号同步") public ErpResult syncSubRoll(@Valid @RequestBody ErpSubRollSyncReqVO reqVO) { return ErpResult.success(erpInboundService.syncSubRoll(reqVO)); } @@ -49,6 +55,7 @@ public class LmsErpInboundController { * 同步 ERP 子卷质检结果。 */ @PostMapping("/erp/sub-roll/quality-result") + @ApiAccessLog(responseEnable = true, operateModule = "ERP接口", operateName = "子卷质检结果同步") public ErpResult syncSubRollQuality(@Valid @RequestBody ErpSubRollQualityReqVO reqVO) { return ErpResult.success(erpInboundService.syncSubRollQuality(reqVO)); } @@ -57,6 +64,7 @@ public class LmsErpInboundController { * 接收ERP成品木箱入库申请。 */ @PostMapping("/erp/finished-box/inbound") + @ApiAccessLog(responseEnable = true, operateModule = "ERP接口", operateName = "成品木箱入库申请") public ErpResult inboundFinishedBox(@Valid @RequestBody ErpFinishedBoxInboundReqVO reqVO) { return ErpResult.success(erpInboundService.inboundFinishedBox(reqVO)); } diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/vo/ErpDailyPlanPushReqVO.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/vo/ErpDailyPlanPushReqVO.java index 4d9afce4..75d3da67 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/vo/ErpDailyPlanPushReqVO.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/controller/erp/vo/ErpDailyPlanPushReqVO.java @@ -1,23 +1,39 @@ package cn.code.nl.module.lms.controller.erp.vo; import jakarta.validation.constraints.NotBlank; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import lombok.Data; import java.time.LocalDate; +import java.util.List; /** ERP 日计划推送请求。 */ @Data public class ErpDailyPlanPushReqVO { - /** ERP 计划号按接口契约接收和校验,当前版本暂不落库、不参与幂等判断。 */ + /** ERP 计划号。 */ @NotBlank(message = "计划号不能为空") @Size(max = 64) private String planNo; @NotNull(message = "计划日期不能为空") private LocalDate planDate; @NotBlank(message = "车间编码不能为空") @Size(max = 64) private String shopCode; + + @Valid + @NotEmpty(message = "日计划明细不能为空") + private List items; + + /** ERP 日计划明细。 */ + @Data + public static class Item { @NotBlank(message = "子卷物料编码不能为空") @Size(max = 64) private String subRollMaterialCode; @NotBlank(message = "子卷物料名称不能为空") @Size(max = 255) private String subRollMaterialName; - @NotBlank(message = "管芯物料编码不能为空") @Size(max = 64) private String coreTubeMaterialCode; - @NotBlank(message = "木箱物料编码不能为空") @Size(max = 64) private String boxMaterialCode; - @NotBlank(message = "木箱物料名称不能为空") @Size(max = 128) private String boxMaterialName; + /** 兼容 ERP 历史字段,当前不校验、不查询物料基础信息。 */ + private String coreTubeMaterialCode; + @Size(max = 64) private String coreTubeType; + @Size(max = 64) private String coreTubeLength; + @Size(max = 64) private String coreTubeWallThickness; + @Size(max = 64) private String boxMaterialCode; + @Size(max = 128) private String boxMaterialName; @NotBlank(message = "订单号不能为空") @Size(max = 64) private String orderNo; + } } diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/dataobject/dailyplan/DailyPlanDO.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/dataobject/dailyplan/DailyPlanDO.java index 65c7c530..8db741b0 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/dataobject/dailyplan/DailyPlanDO.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/dataobject/dailyplan/DailyPlanDO.java @@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; +import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; @@ -38,6 +39,12 @@ public class DailyPlanDO extends TenantBaseDO { private String materialName; /** 物料规格 */ private String materialSpec; + /** 管芯材质要求 */ + private String coreTubeType; + /** 管芯长度 */ + private BigDecimal coreTubeLength; + /** 管芯内径 */ + private BigDecimal coreTubeWallThickness; /** 子卷物料编码 */ private String subRollMaterialCode; /** 子卷物料描述 */ diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/mysql/dailyplan/DailyPlanMapper.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/mysql/dailyplan/DailyPlanMapper.java index 4d6e5db0..e3b6de5a 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/mysql/dailyplan/DailyPlanMapper.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/mysql/dailyplan/DailyPlanMapper.java @@ -98,6 +98,9 @@ public interface DailyPlanMapper extends BaseMapperX { /** 原子确认数量并开始未开始订单。 */ int startOrderWithVersion(@Param("plan") DailyPlanDO plan); + /** 乐观锁修改未开始日计划绑定的管芯快照。 */ + int updateCoreTubeWithVersion(@Param("plan") DailyPlanDO plan); + /** 原子追加需求数量,并重新打开已经完成的备货、套管作业。 */ int appendQuantityWithVersion(@Param("dailyPlanId") Long dailyPlanId, @Param("appendQty") Integer appendQty, diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/mysql/ivtshafttubeivt/IvtShafttubeivtMapper.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/mysql/ivtshafttubeivt/IvtShafttubeivtMapper.java index a8fcf490..89f09e4e 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/mysql/ivtshafttubeivt/IvtShafttubeivtMapper.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/dal/mysql/ivtshafttubeivt/IvtShafttubeivtMapper.java @@ -48,6 +48,11 @@ public interface IvtShafttubeivtMapper extends BaseMapperX { /** 查询待套轴的管芯缓存位。 */ List selectTubeCoreCaches(@Param("pointType") String pointType); + /** 管芯出库完成后写入空闲的管芯缓存位。 */ + int fillTubeCoreCache(@Param("pointCode") String pointCode, + @Param("pointType") String pointType, + @Param("tubeCode") String tubeCode); + /** 查询同规划区域指定类型的空点位。 */ List selectEmptyPoints(@Param("pointType") String pointType, @Param("plan") String plan); diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/coretube/CoreTubeTaskDispatchServiceImpl.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/coretube/CoreTubeTaskDispatchServiceImpl.java index c7d2688b..18dab043 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/coretube/CoreTubeTaskDispatchServiceImpl.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/coretube/CoreTubeTaskDispatchServiceImpl.java @@ -3,9 +3,12 @@ package cn.code.nl.module.lms.service.coretube; import cn.code.nl.framework.common.pojo.CommonResult; import cn.code.nl.framework.common.util.json.JsonUtils; import cn.code.nl.module.lms.dal.dataobject.coretube.CoreTubeDO; +import cn.code.nl.module.lms.dal.dataobject.ivtshafttubeivt.IvtShafttubeivtDO; import cn.code.nl.module.lms.dal.dataobject.stockingivt.StockingIvtDO; import cn.code.nl.module.lms.dal.mysql.coretube.CoreTubeMapper; +import cn.code.nl.module.lms.dal.mysql.ivtshafttubeivt.IvtShafttubeivtMapper; import cn.code.nl.module.lms.dal.mysql.stockingivt.StockingIvtMapper; +import cn.code.nl.module.lms.controller.pda.slittingproduction.eum.ShafttubeivtPointTypeEnum; import cn.code.nl.module.lms.enums.CoreTubeHandleCodeConstants; import cn.code.nl.module.lms.enums.CoreTubeLocationTypeEnum; import cn.code.nl.module.lms.enums.CoreTubeStageEnum; @@ -25,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional; import java.time.LocalDateTime; import java.util.HashSet; import java.util.List; +import java.util.Objects; import java.util.Set; /** 管芯日计划现场任务调度服务实现。 */ @@ -46,6 +50,9 @@ public class CoreTubeTaskDispatchServiceImpl implements CoreTubeTaskDispatchServ /** 备货区点位及托盘格位数据库访问对象。 */ @Resource private StockingIvtMapper stockingIvtMapper; + /** 穿拔轴区管芯缓存点位数据库访问对象。 */ + @Resource + private IvtShafttubeivtMapper ivtShafttubeivtMapper; /** 现场运输任务远程服务。 */ @Resource private TransportTaskApi transportTaskApi; @@ -415,12 +422,29 @@ public class CoreTubeTaskDispatchServiceImpl implements CoreTubeTaskDispatchServ sleeving ? CoreTubeStatusEnum.PROCESSING.getCode() : CoreTubeStatusEnum.AVAILABLE.getCode(), locationType, context.getTargetPointId(), context.getTargetPointCode(), true, OPERATOR) == 1) { if (sleeving) { + fillTubeCoreCache(context); dailyPlanScheduleService.increaseSleevedQuantity(context.getClaimToken(), context.getDailyPlanId(), 1, OPERATOR); } } } + /** 将出库到达的管芯写入任务目标缓存位;已写入同一管芯时按幂等成功处理。 */ + private void fillTubeCoreCache(CoreTubeTaskContext context) { + String pointType = ShafttubeivtPointTypeEnum.TUBE_CORE_CACHE.getCode(); + if (ivtShafttubeivtMapper.fillTubeCoreCache( + context.getTargetPointCode(), pointType, context.getCoreTubeCode()) == 1) { + return; + } + IvtShafttubeivtDO target = ivtShafttubeivtMapper.selectByPointCode(context.getTargetPointCode()); + if (target != null && pointType.equals(target.getPointType()) + && Objects.equals(context.getCoreTubeCode(), target.getTubeCode())) { + return; + } + throw new IllegalStateException("管芯缓存点位不存在、已锁定或已被占用,pointCode=" + + context.getTargetPointCode()); + } + /** * 幂等处理任务取消。 * diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanService.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanService.java index 8a08cfb7..4e687dbc 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanService.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanService.java @@ -2,6 +2,7 @@ package cn.code.nl.module.lms.service.dailyplan; import cn.code.nl.framework.common.pojo.PageResult; import cn.code.nl.module.lms.controller.admin.dailyplan.vo.*; +import cn.code.nl.module.wms.api.coretubetype.dto.CoreTubeTypeResp; import java.util.List; @@ -17,6 +18,10 @@ public interface DailyPlanService { List getOperationLogs(Long dailyPlanId); /** 查询全部日计划策略。 */ List getStrategies(); + /** 查询可绑定的管芯基础信息。 */ + List getCoreTubeTypes(); + /** 修改未开始日计划绑定的管芯。 */ + void updateCoreTube(DailyPlanCoreTubeUpdateReqVO reqVO); /** 人工创建日计划。 */ Long createManualPlan(DailyPlanCreateReqVO reqVO); /** 修改人工日计划。 */ diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanServiceImpl.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanServiceImpl.java index ebbac87a..1760306f 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanServiceImpl.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/dailyplan/DailyPlanServiceImpl.java @@ -7,6 +7,7 @@ import cn.code.nl.module.base.api.codegen.CodeGenApi; import cn.code.nl.module.base.api.codegen.dto.CodeGenerateReqDTO; import cn.code.nl.module.lms.controller.admin.dailyplan.vo.DailyPlanAppendReqVO; import cn.code.nl.module.lms.controller.admin.dailyplan.vo.DailyPlanCreateReqVO; +import cn.code.nl.module.lms.controller.admin.dailyplan.vo.DailyPlanCoreTubeUpdateReqVO; import cn.code.nl.module.lms.controller.admin.dailyplan.vo.DailyPlanOperationLogRespVO; import cn.code.nl.module.lms.controller.admin.dailyplan.vo.DailyPlanPageReqVO; import cn.code.nl.module.lms.controller.admin.dailyplan.vo.DailyPlanReasonReqVO; @@ -32,6 +33,8 @@ import cn.code.nl.module.lms.enums.DailyPlanStrategyTypeEnum; import cn.code.nl.module.lms.enums.DailyPlanWorkStatusEnum; import cn.code.nl.module.system.api.user.AdminUserApi; import cn.code.nl.module.system.api.user.dto.AdminUserRespDTO; +import cn.code.nl.module.wms.api.coretubetype.CoreTubeTypeApi; +import cn.code.nl.module.wms.api.coretubetype.dto.CoreTubeTypeResp; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.toolkit.IdWorker; import jakarta.annotation.Resource; @@ -69,6 +72,7 @@ public class DailyPlanServiceImpl implements DailyPlanService { private static final String TARGET_SORT = "SORT"; private static final String TARGET_WEIGHT = "WEIGHT"; private static final String TARGET_STRATEGY = "STRATEGY"; + private static final String TARGET_CORE_TUBE = "CORE_TUBE"; private static final String TYPE_START = "START"; private static final String TYPE_APPEND = "APPEND"; private static final String TYPE_CANCEL = "CANCEL"; @@ -86,6 +90,8 @@ public class DailyPlanServiceImpl implements DailyPlanService { @Resource private DailyPlanOperationLogMapper dailyPlanOperationLogMapper; @Resource + private CoreTubeTypeApi coreTubeTypeApi; + @Resource private DailyPlanStrategyInitializer strategyInitializer; @Resource private CodeGenApi codeGenApi; @@ -262,6 +268,9 @@ public class DailyPlanServiceImpl implements DailyPlanService { public void startOrder(DailyPlanStartReqVO reqVO) { DailyPlanDO current = validateVersion(reqVO.getId(), reqVO.getVersion()); validateOrderStatus(current, DailyPlanOrderStatusEnum.NOT_STARTED, "开始订单"); + if (current.getMaterialId() == null || StrUtil.isBlank(current.getMaterialCode())) { + throw new ServiceException(400, "请先绑定管芯基础信息"); + } DailyPlanDO update = newUpdate(current); int confirmedPlanQty = reqVO.getPlanQty(); int appendQty = safeAddQuantity(current.getAppendQty(), reqVO.getAppendQty()); @@ -284,6 +293,44 @@ public class DailyPlanServiceImpl implements DailyPlanService { String.valueOf(update.getOrderStatus()), null, null); } + @Override + public List getCoreTubeTypes() { + CommonResult> result = coreTubeTypeApi.getList(); + if (result == null || !result.isSuccess() || result.getData() == null) { + throw new ServiceException(500, "查询管芯基础信息失败"); + } + return result.getData(); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void updateCoreTube(DailyPlanCoreTubeUpdateReqVO reqVO) { + DailyPlanDO current = validateVersion(reqVO.getId(), reqVO.getVersion()); + validateOrderStatus(current, DailyPlanOrderStatusEnum.NOT_STARTED, "修改管芯"); + CoreTubeTypeResp coreTube = getCoreTubeType(reqVO.getCoreTubeTypeId()); + DailyPlanDO update = newUpdate(current); + update.setMaterialId(coreTube.getId()); + update.setMaterialCode(coreTube.getCoreTubeType()); + update.setMaterialName(coreTube.getCoreTubeName()); + update.setCoreTubeType(coreTube.getCoreTubeType()); + update.setCoreTubeLength(coreTube.getCoreTubeLength()); + update.setCoreTubeWallThickness(coreTube.getCoreTubeWallThickness()); + checkAffected(dailyPlanMapper.updateCoreTubeWithVersion(update)); + insertLog(current.getDailyPlanId(), TARGET_CORE_TUBE, TYPE_UPDATE, + current.getMaterialCode(), coreTube.getCoreTubeType(), null, null); + } + + private CoreTubeTypeResp getCoreTubeType(Long id) { + CommonResult result = coreTubeTypeApi.get(id); + if (result == null || !result.isSuccess()) { + throw new ServiceException(500, "查询管芯基础信息失败"); + } + if (result.getData() == null) { + throw new ServiceException(400, "选择的管芯基础信息不存在或已停用"); + } + return result.getData(); + } + /** 追加进行中订单的数量。 */ @Override @Transactional(rollbackFor = Exception.class) @@ -660,6 +707,9 @@ public class DailyPlanServiceImpl implements DailyPlanService { response.setMaterialCode(plan.getMaterialCode()); response.setMaterialName(plan.getMaterialName()); response.setMaterialSpec(plan.getMaterialSpec()); + response.setCoreTubeType(plan.getCoreTubeType()); + response.setCoreTubeLength(plan.getCoreTubeLength()); + response.setCoreTubeWallThickness(plan.getCoreTubeWallThickness()); response.setSubRollMaterialCode(plan.getSubRollMaterialCode()); response.setSubRollMaterialDescription(plan.getSubRollMaterialDescription()); response.setPlanQty(plan.getPlanQty()); diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/ErpInboundService.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/ErpInboundService.java index 61f0d137..f5468fbd 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/ErpInboundService.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/ErpInboundService.java @@ -6,10 +6,12 @@ import cn.code.nl.module.lms.controller.erp.vo.ErpSubRollQualityReqVO; import cn.code.nl.module.lms.controller.erp.vo.ErpSubRollSyncReqVO; import cn.code.nl.module.lms.controller.erp.vo.ErpFinishedBoxInboundReqVO; +import java.util.List; + /** ERP 入站业务服务。 */ public interface ErpInboundService { String pushRawFoilRoll(ErpRawFoilRollPushReqVO reqVO); - String pushDailyPlan(ErpDailyPlanPushReqVO reqVO); + List pushDailyPlans(ErpDailyPlanPushReqVO reqVO); String syncSubRoll(ErpSubRollSyncReqVO reqVO); String syncSubRollQuality(ErpSubRollQualityReqVO reqVO); String inboundFinishedBox(ErpFinishedBoxInboundReqVO reqVO); diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/ErpOutboundClientImpl.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/ErpOutboundClientImpl.java index a283c647..01a12e11 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/ErpOutboundClientImpl.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/ErpOutboundClientImpl.java @@ -2,6 +2,7 @@ package cn.code.nl.module.lms.service.erp; import cn.hutool.core.util.StrUtil; import cn.code.nl.framework.common.pojo.CommonResult; +import cn.code.nl.framework.web.core.util.WebFrameworkUtils; import cn.code.nl.module.infra.api.config.ConfigApi; import cn.code.nl.module.lms.service.erp.dto.FinishedBoxInboundCompleteReq; import cn.code.nl.module.lms.service.erp.dto.PackageAllocationResultReq; @@ -14,6 +15,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; +import org.springframework.web.client.HttpStatusCodeException; import java.time.Duration; @@ -68,12 +70,17 @@ public class ErpOutboundClientImpl implements ErpOutboundClient { HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); headers.set(HttpHeaders.AUTHORIZATION, authorization); + WebFrameworkUtils.setExternalRequestBody(request); try { CommonResult result = restTemplate.postForObject(trimTrailingSlash(baseUrl) + path, new HttpEntity<>(request, headers), CommonResult.class); + WebFrameworkUtils.setExternalResponseBody(result); if (result == null || !Integer.valueOf(200).equals(result.getCode())) { throw new ErpOutboundException("ERP接口返回失败,路径=" + path); } + } catch (HttpStatusCodeException exception) { + WebFrameworkUtils.setExternalResponseBody(exception.getResponseBodyAsString()); + throw new ErpOutboundException("ERP接口调用失败,路径=" + path, exception); } catch (ErpOutboundException exception) { throw exception; } catch (RuntimeException exception) { diff --git a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/LmsErpInboundServiceImpl.java b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/LmsErpInboundServiceImpl.java index c32355ba..a794cac0 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/LmsErpInboundServiceImpl.java +++ b/nl-module-lms/nl-module-lms-server/src/main/java/cn/code/nl/module/lms/service/erp/LmsErpInboundServiceImpl.java @@ -3,8 +3,6 @@ package cn.code.nl.module.lms.service.erp; import cn.code.nl.framework.common.pojo.CommonResult; import cn.code.nl.module.base.api.codegen.CodeGenApi; import cn.code.nl.module.base.api.codegen.dto.CodeGenerateReqDTO; -import cn.code.nl.module.base.api.materialbase.MaterialBaseApi; -import cn.code.nl.module.base.api.materialbase.dto.MaterialBaseRespDTO; import cn.code.nl.module.lms.controller.erp.vo.ErpDailyPlanPushReqVO; import cn.code.nl.module.lms.controller.erp.vo.ErpRawFoilRollPushReqVO; import cn.code.nl.module.lms.controller.erp.vo.ErpSubRollQualityReqVO; @@ -46,6 +44,8 @@ import java.util.List; import java.math.BigDecimal; import java.util.Comparator; import java.util.HashSet; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import org.redisson.api.RLock; import org.redisson.api.RedissonClient; import cn.hutool.crypto.digest.DigestUtil; @@ -56,10 +56,11 @@ import cn.hutool.crypto.digest.DigestUtil; public class LmsErpInboundServiceImpl implements ErpInboundService { private static final String ERP_OPERATOR = "user4"; private static final String FINISHED_BOX_LOCK_PREFIX = "lms:erp:finished-box:inbound:"; + private static final String RAW_FOIL_PRODUCTION_ORDER_RULE = "LMS_RAW_FOIL_PRODUCTION_ORDER"; + private static final String DAILY_PLAN_CODE_RULE = "LMS_DAILY_PLAN_CODE"; @Resource private RawFoilWorkOrderMapper rawFoilWorkOrderMapper; @Resource private DailyPlanMapper dailyPlanMapper; - @Resource private MaterialBaseApi materialBaseApi; @Resource private CodeGenApi codeGenApi; @Resource private PlatformTransactionManager transactionManager; @Resource private PackagePointMapper packagePointMapper; @@ -94,7 +95,9 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { || !Objects.equals(result.getData().getPackageBoxSn(), reqVO.getItems().get(0).getPackageBoxSn())) { log.error("ERP成品木箱入库同步WMS失败,businessType={},billNo={},返回={}", reqVO.getBusinessType(), reqVO.getBillNo(), result); - throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "WMS组盘同步失败"); + String message = result != null && result.getMsg() != null && !result.getMsg().isBlank() + ? result.getMsg() : "WMS组盘同步失败"; + throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, message); } return result.getData().getPackageBoxSn(); } @@ -141,15 +144,15 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { throw badRequest("子卷号匹配到多条记录:" + item.getSubRollNo()); }*/ SubPackageRelationDO bound = subPackageRelationMapper.selectByContainerName(item.getSubRollNo()); - if (bound != null && !Objects.equals(bound.getPackageBoxSn(), reqVO.getItems().get(0).getPackageBoxSn())) { + if (bound != null && !Objects.equals(bound.getPackageBoxSn(), item.getPackageBoxSn())) { throw badRequest("子卷已属于其他木箱:" + item.getSubRollNo()); } SubPackageRelationDO relation = new SubPackageRelationDO(); - relation.setPackageBoxSn(reqVO.getItems().get(0).getPackageBoxSn()); + relation.setPackageBoxSn(item.getPackageBoxSn()); relation.setQualityInBox(reqVO.getItems().size()); - relation.setBoxWeight(reqVO.getItems().get(0).getBoxWeight()); - relation.setRealWeight(reqVO.getItems().get(0).getGrossWeight()); - relation.setBoxType(reqVO.getItems().get(0).getBoxMaterialCode()); + relation.setBoxWeight(item.getBoxWeight()); + relation.setRealWeight(item.getGrossWeight()); + relation.setBoxType(item.getBoxMaterialCode()); relation.setContainerName(item.getSubRollNo()); relation.setProductName(item.getMaterialCode()); relation.setProductDescription(item.getMaterialDesc()); @@ -175,11 +178,11 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { for (int i = 0; i < items.size(); i++) { FinishedBoxInboundSyncReq.Item item = items.get(i); SubPackageRelationDO relation = current.get(i); - if (!Objects.equals(relation.getPackageBoxSn(), reqVO.getItems().get(0).getPackageBoxSn()) + if (!Objects.equals(relation.getPackageBoxSn(), item.getPackageBoxSn()) || !Objects.equals(relation.getRemark(), reqVO.getFromId()) - || !Objects.equals(relation.getBoxType(), reqVO.getItems().get(0).getBoxMaterialCode()) - || relation.getBoxWeight().compareTo(reqVO.getItems().get(0).getBoxWeight()) != 0 - || relation.getRealWeight().compareTo(reqVO.getItems().get(0).getGrossWeight()) != 0 + || !Objects.equals(relation.getBoxType(), item.getBoxMaterialCode()) + || relation.getBoxWeight().compareTo(item.getBoxWeight()) != 0 + || relation.getRealWeight().compareTo(item.getGrossWeight()) != 0 || !Objects.equals(relation.getContainerName(), item.getSubRollNo()) || !Objects.equals(relation.getProductName(), item.getMaterialCode()) || !Objects.equals(relation.getProductDescription(), item.getMaterialDesc()) @@ -210,6 +213,7 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { return current.getContainerName(); } RawFoilWorkOrderDO workOrder = new RawFoilWorkOrderDO(); + workOrder.setProductionOrder(generateCode(RAW_FOIL_PRODUCTION_ORDER_RULE, "生箔生产单编码生成失败")); workOrder.setContainerName(reqVO.getRollNo()); workOrder.setPointCode(reqVO.getDeviceCode()); workOrder.setProductCode(reqVO.getMaterialCode()); @@ -222,14 +226,18 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { } @Override - public String pushDailyPlan(ErpDailyPlanPushReqVO reqVO) { + public List pushDailyPlans(ErpDailyPlanPushReqVO reqVO) { + return reqVO.getItems().stream().map(item -> pushDailyPlan(reqVO, item)).toList(); + } + + private String pushDailyPlan(ErpDailyPlanPushReqVO reqVO, ErpDailyPlanPushReqVO.Item item) { try { - return newTransaction().execute(status -> createOrUpdateDailyPlan(reqVO)); + return newTransaction().execute(status -> createOrUpdateDailyPlan(reqVO, item)); } catch (DailyPlanOptimisticLockException exception) { - return newTransaction().execute(status -> resolveDailyPlanConflict(reqVO)); + return newTransaction().execute(status -> resolveDailyPlanConflict(reqVO, item)); } catch (DuplicateKeyException exception) { return newTransaction().execute(status -> { - DailyPlanDO concurrent = dailyPlanMapper.selectByErpOrderCode(reqVO.getOrderNo()); + DailyPlanDO concurrent = dailyPlanMapper.selectByErpOrderCode(item.getOrderNo()); if (concurrent == null) { throw exception; } @@ -238,11 +246,11 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { } } - private String createOrUpdateDailyPlan(ErpDailyPlanPushReqVO reqVO) { - DailyPlanDO current = dailyPlanMapper.selectByErpOrderCode(reqVO.getOrderNo()); + private String createOrUpdateDailyPlan(ErpDailyPlanPushReqVO reqVO, ErpDailyPlanPushReqVO.Item item) { + DailyPlanDO current = dailyPlanMapper.selectByErpOrderCode(item.getOrderNo()); if (current != null) { if (DailyPlanOrderStatusEnum.NOT_STARTED.getCode().equals(current.getOrderStatus())) { - DailyPlanDO update = buildErpPlan(reqVO); + DailyPlanDO update = buildErpPlan(reqVO, item); update.setDailyPlanId(current.getDailyPlanId()); update.setVersion(current.getVersion()); if (dailyPlanMapper.updateNotStartedErpFields(update) == 0) { @@ -251,7 +259,7 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { } return current.getPlanCode(); } - DailyPlanDO plan = buildErpPlan(reqVO); + DailyPlanDO plan = buildErpPlan(reqVO, item); plan.setDailyPlanId(IdWorker.getId()); plan.setPlanCode(generatePlanCode()); plan.setSourceType(DailyPlanSourceTypeEnum.ERP.getCode()); @@ -362,15 +370,15 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { } /** 重读冲突计划并按最新状态做一次有界处理。 */ - private String resolveDailyPlanConflict(ErpDailyPlanPushReqVO reqVO) { - DailyPlanDO current = dailyPlanMapper.selectByErpOrderCode(reqVO.getOrderNo()); + private String resolveDailyPlanConflict(ErpDailyPlanPushReqVO reqVO, ErpDailyPlanPushReqVO.Item item) { + DailyPlanDO current = dailyPlanMapper.selectByErpOrderCode(item.getOrderNo()); if (current == null) { throw badRequest("日计划并发更新失败"); } if (!DailyPlanOrderStatusEnum.NOT_STARTED.getCode().equals(current.getOrderStatus())) { return current.getPlanCode(); } - DailyPlanDO expected = buildErpPlan(reqVO); + DailyPlanDO expected = buildErpPlan(reqVO, item); if (sameErpFields(current, expected)) { return current.getPlanCode(); } @@ -390,45 +398,69 @@ public class LmsErpInboundServiceImpl implements ErpInboundService { && Objects.equals(current.getMaterialCode(), expected.getMaterialCode()) && Objects.equals(current.getMaterialName(), expected.getMaterialName()) && Objects.equals(current.getMaterialSpec(), expected.getMaterialSpec()) + && Objects.equals(current.getCoreTubeType(), expected.getCoreTubeType()) + && Objects.equals(current.getCoreTubeLength(), expected.getCoreTubeLength()) + && Objects.equals(current.getCoreTubeWallThickness(), expected.getCoreTubeWallThickness()) && Objects.equals(current.getSubRollMaterialCode(), expected.getSubRollMaterialCode()) && Objects.equals(current.getSubRollMaterialDescription(), expected.getSubRollMaterialDescription()) && Objects.equals(current.getBoxMaterialCode(), expected.getBoxMaterialCode()) && Objects.equals(current.getBoxMaterialName(), expected.getBoxMaterialName()); } - private DailyPlanDO buildErpPlan(ErpDailyPlanPushReqVO reqVO) { - MaterialBaseRespDTO material = getCoreTubeMaterial(reqVO.getCoreTubeMaterialCode()); + private DailyPlanDO buildErpPlan(ErpDailyPlanPushReqVO reqVO, ErpDailyPlanPushReqVO.Item item) { DailyPlanDO plan = new DailyPlanDO(); - plan.setErpOrderCode(reqVO.getOrderNo()); + plan.setErpOrderCode(item.getOrderNo()); plan.setPlanDate(reqVO.getPlanDate()); plan.setShopCode(reqVO.getShopCode()); - plan.setMaterialId(material.getMaterialId()); - plan.setMaterialCode(material.getMaterialCode()); - plan.setMaterialName(material.getMaterialName()); - plan.setMaterialSpec(material.getMaterialSpec()); - plan.setSubRollMaterialCode(reqVO.getSubRollMaterialCode()); - plan.setSubRollMaterialDescription(reqVO.getSubRollMaterialName()); - plan.setBoxMaterialCode(reqVO.getBoxMaterialCode()); - plan.setBoxMaterialName(reqVO.getBoxMaterialName()); + plan.setCoreTubeType(item.getCoreTubeType()); + plan.setCoreTubeLength(parseFirstDecimal(item.getCoreTubeLength())); + plan.setCoreTubeWallThickness(parseLastDecimal(item.getCoreTubeWallThickness())); + plan.setSubRollMaterialCode(item.getSubRollMaterialCode()); + plan.setSubRollMaterialDescription(item.getSubRollMaterialName()); + plan.setBoxMaterialCode(item.getBoxMaterialCode()); + plan.setBoxMaterialName(item.getBoxMaterialName()); plan.setCreator(ERP_OPERATOR); plan.setUpdater(ERP_OPERATOR); return plan; } - private MaterialBaseRespDTO getCoreTubeMaterial(String code) { - CommonResult result = materialBaseApi.getMaterialBaseByCode(code); - if (result == null || !result.isSuccess() || result.getData() == null) { - throw new ResponseStatusException(HttpStatus.NOT_FOUND, "管芯物料不存在"); + private BigDecimal parseFirstDecimal(String value) { + return parseDecimal(value, false); + } + + private BigDecimal parseLastDecimal(String value) { + return parseDecimal(value, true); + } + + /** 兼容 ERP 的“650mm”和“3英寸15mm”文本,数据库仍保存毫米数值。 */ + private BigDecimal parseDecimal(String value, boolean last) { + if (value == null || value.isBlank()) { + return null; } - return result.getData(); + Matcher matcher = Pattern.compile("\\d+(?:\\.\\d+)?").matcher(value); + String number = null; + while (matcher.find()) { + number = matcher.group(); + if (!last) { + break; + } + } + if (number == null) { + throw badRequest("管芯尺寸格式不正确: " + value); + } + return new BigDecimal(number); } private String generatePlanCode() { + return generateCode(DAILY_PLAN_CODE_RULE, "日计划编码生成失败"); + } + + private String generateCode(String ruleCode, String errorMessage) { CodeGenerateReqDTO request = new CodeGenerateReqDTO(); - request.setRuleCode("LMS_DAILY_PLAN_CODE"); + request.setRuleCode(ruleCode); CommonResult result = codeGenApi.generate(request); if (result == null || !result.isSuccess() || result.getData() == null || result.getData().isBlank()) { - throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "日计划编码生成失败"); + throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, errorMessage); } return result.getData(); } diff --git a/nl-module-lms/nl-module-lms-server/src/main/resources/mapper/dailyplan/DailyPlanMapper.xml b/nl-module-lms/nl-module-lms-server/src/main/resources/mapper/dailyplan/DailyPlanMapper.xml index a6e572d1..6f9b6957 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/resources/mapper/dailyplan/DailyPlanMapper.xml +++ b/nl-module-lms/nl-module-lms-server/src/main/resources/mapper/dailyplan/DailyPlanMapper.xml @@ -5,6 +5,7 @@ daily_plan_id, plan_code, source_type, erp_order_code, manual_order_code, plan_date, shop_code, material_id, material_code, material_name, material_spec, + core_tube_type, core_tube_length, core_tube_wall_thickness, sub_roll_material_code, sub_roll_material_description, box_material_code, box_material_name, plan_qty, append_qty, stocked_qty, sleeved_qty, packing_info, sort_seq, weight, @@ -156,6 +157,7 @@ INSERT INTO lms_daily_plan (daily_plan_id, plan_code, source_type, erp_order_code, manual_order_code, plan_date, shop_code, material_id, material_code, material_name, material_spec, + core_tube_type, core_tube_length, core_tube_wall_thickness, sub_roll_material_code, sub_roll_material_description, box_material_code, box_material_name, plan_qty, append_qty, stocked_qty, sleeved_qty, packing_info, sort_seq, weight, @@ -164,6 +166,7 @@ VALUES (#{plan.dailyPlanId}, #{plan.planCode}, #{plan.sourceType}, #{plan.erpOrderCode}, #{plan.manualOrderCode}, #{plan.planDate}, #{plan.shopCode}, #{plan.materialId}, #{plan.materialCode}, #{plan.materialName}, #{plan.materialSpec}, + #{plan.coreTubeType}, #{plan.coreTubeLength}, #{plan.coreTubeWallThickness}, #{plan.subRollMaterialCode}, #{plan.subRollMaterialDescription}, #{plan.boxMaterialCode}, #{plan.boxMaterialName}, #{plan.planQty}, 0, 0, 0, #{plan.packingInfo}, #{plan.sortSeq}, #{plan.weight}, @@ -179,6 +182,9 @@ material_code = #{plan.materialCode}, material_name = #{plan.materialName}, material_spec = #{plan.materialSpec}, + core_tube_type = #{plan.coreTubeType}, + core_tube_length = #{plan.coreTubeLength}, + core_tube_wall_thickness = #{plan.coreTubeWallThickness}, sub_roll_material_code = #{plan.subRollMaterialCode}, sub_roll_material_description = #{plan.subRollMaterialDescription}, plan_qty = #{plan.planQty}, @@ -202,6 +208,9 @@ material_code = #{plan.materialCode}, material_name = #{plan.materialName}, material_spec = #{plan.materialSpec}, + core_tube_type = #{plan.coreTubeType}, + core_tube_length = #{plan.coreTubeLength}, + core_tube_wall_thickness = #{plan.coreTubeWallThickness}, sub_roll_material_code = #{plan.subRollMaterialCode}, sub_roll_material_description = #{plan.subRollMaterialDescription}, box_material_code = #{plan.boxMaterialCode}, @@ -296,6 +305,22 @@ AND deleted = b'0' + + UPDATE lms_daily_plan + SET material_id = #{plan.materialId}, + material_code = #{plan.materialCode}, + material_name = #{plan.materialName}, + core_tube_type = #{plan.coreTubeType}, + core_tube_length = #{plan.coreTubeLength}, + core_tube_wall_thickness = #{plan.coreTubeWallThickness}, + updater = #{plan.updater}, + version = version + 1 + WHERE daily_plan_id = #{plan.dailyPlanId} + AND version = #{plan.version} + AND order_status = 0 + AND deleted = b'0' + + UPDATE lms_daily_plan SET stocking_complete_time = CASE WHEN stocking_status = 2 THEN NULL ELSE stocking_complete_time END, diff --git a/nl-module-lms/nl-module-lms-server/src/main/resources/mapper/ivtshafttubeivt/IvtShafttubeivtMapper.xml b/nl-module-lms/nl-module-lms-server/src/main/resources/mapper/ivtshafttubeivt/IvtShafttubeivtMapper.xml index 1694d006..a02d7448 100644 --- a/nl-module-lms/nl-module-lms-server/src/main/resources/mapper/ivtshafttubeivt/IvtShafttubeivtMapper.xml +++ b/nl-module-lms/nl-module-lms-server/src/main/resources/mapper/ivtshafttubeivt/IvtShafttubeivtMapper.xml @@ -63,6 +63,17 @@ ORDER BY sort_seq, ivt_id + + UPDATE bst_ivt_shafttubeivt + SET tube_code = #{tubeCode}, + lock_status = '0' + WHERE point_code = #{pointCode} + AND point_type = #{pointType} + AND (tube_code IS NULL OR tube_code = '') + AND lock_status = '0' + AND deleted = 0 + + - SELECT * FROM wms_bsrealstorattr WHERE stor_code = #{storCode} AND deleted = b'0' + SELECT * FROM wms_bsrealstorattr WHERE stor_code = #{storCode} AND deleted = '0' + + + diff --git a/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/api/lms/dailyplan/index.ts b/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/api/lms/dailyplan/index.ts index a1d226e5..453e8a5e 100644 --- a/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/api/lms/dailyplan/index.ts +++ b/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/api/lms/dailyplan/index.ts @@ -44,6 +44,9 @@ export namespace LmsDailyPlanApi { updaterName?: string; version: number; weight: number; + coreTubeType?: string; + coreTubeLength?: number; + coreTubeWallThickness?: number; } export interface ManagementPageReq extends PageParam { @@ -92,6 +95,18 @@ export namespace LmsDailyPlanApi { planQty: number; } + export interface CoreTubeUpdateReq extends VersionReq { + coreTubeTypeId: ApiId; + } + + export interface CoreTubeType { + coreTubeLength: number; + coreTubeName?: string; + coreTubeType: string; + coreTubeWallThickness: number; + id: ApiId; + } + export interface AppendReq extends VersionReq { appendQty: number; } @@ -189,6 +204,16 @@ export function startDailyPlanOrder(data: LmsDailyPlanApi.StartReq) { return requestClient.put('/lms/daily-plan/startOrder', data); } +export function getDailyPlanCoreTubeTypes() { + return requestClient.get( + '/lms/daily-plan/coreTubeTypes', + ); +} + +export function updateDailyPlanCoreTube(data: LmsDailyPlanApi.CoreTubeUpdateReq) { + return requestClient.put('/lms/daily-plan/updateCoreTube', data); +} + export function appendDailyPlanQuantity(data: LmsDailyPlanApi.AppendReq) { return requestClient.put('/lms/daily-plan/appendQuantity', data); } diff --git a/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/api/wms/coretubetype/index.ts b/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/api/wms/coretubetype/index.ts new file mode 100644 index 00000000..f6d7dd09 --- /dev/null +++ b/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/api/wms/coretubetype/index.ts @@ -0,0 +1,31 @@ +import type { PageParam, PageResult } from '@vben/request'; + +import { requestClient } from '#/api/request'; + +export namespace WmsCoreTubeTypeApi { + export interface CoreTubeType { + id: number | string; + coreTubeType: string; + coreTubeName?: string; + coreTubeLength: number; + stepLength?: number; + coreTubeWallThickness: number; + stepWallThickness?: number; + size: string; + createTime?: number | string; + updateTime?: number | string; + } + + export interface PageParams extends PageParam { + coreTubeType?: string; + coreTubeName?: string; + size?: string; + } +} + +export function getCoreTubeTypePage(params: WmsCoreTubeTypeApi.PageParams) { + return requestClient.get>( + '/wms/core-tube-type/page', + { params }, + ); +} diff --git a/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/infra/apiAccessLog/data.ts b/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/infra/apiAccessLog/data.ts index 83b2977c..c43bfee7 100644 --- a/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/infra/apiAccessLog/data.ts +++ b/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/infra/apiAccessLog/data.ts @@ -9,9 +9,68 @@ import { DICT_TYPE } from '@vben/constants'; import { getDictOptions } from '@vben/hooks'; import { formatDateTime } from '@vben/utils'; +import { useClipboard } from '@vueuse/core'; +import { Button, message } from 'antdv-next'; + import { DictTag } from '#/components/dict-tag'; import { getRangePickerDefaultProps } from '#/utils'; +const { copy } = useClipboard({ legacy: true }); + +/** 将日志中的 JSON 原文复制到剪贴板。 */ +async function copyJson(value: unknown) { + if (!value) { + message.warning('暂无可复制内容'); + return; + } + const text = String(value); + try { + const json = JSON.parse(text); + await copy(JSON.stringify(json, null, 2)); + message.success('JSON 复制成功'); + } catch { + try { + await copy(text); + message.success('内容复制成功'); + } catch { + message.error('复制失败,请手动复制'); + } + } +} + +/** 带复制按钮的 JSON 展示。 */ +function renderJsonWithCopy(value: unknown) { + if (!value) { + return ''; + } + const text = String(value); + let content: unknown; + try { + content = h(JsonViewer, { + value: JSON.parse(text), + previewMode: true, + }); + } catch { + content = h('pre', { class: 'whitespace-pre-wrap break-all' }, text); + } + return h('div', { class: 'w-full' }, [ + h( + 'div', + { class: 'mb-2 flex justify-end' }, + h( + Button, + { + size: 'small', + type: 'link', + onClick: () => copyJson(value), + }, + () => '复制 JSON', + ), + ), + content, + ]); +} + /** 列表的搜索表单 */ export function useGridFormSchema(): VbenFormSchema[] { return [ @@ -208,19 +267,12 @@ export function useDetailSchema(): DescriptionItemSchema[] { { field: 'requestParams', label: '请求参数', - render: (val) => { - if (val) { - return h(JsonViewer, { - value: JSON.parse(val), - previewMode: true, - }); - } - return ''; - }, + render: (val) => renderJsonWithCopy(val), }, { field: 'responseBody', - label: '请求结果', + label: '返回参数', + render: (val) => renderJsonWithCopy(val), }, { label: '请求时间', diff --git a/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/lms/daily-plan/management/index.vue b/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/lms/daily-plan/management/index.vue index 859cf3c9..10ec6523 100644 --- a/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/lms/daily-plan/management/index.vue +++ b/nl-ui/nl-ui-admin-vben/yudao-ui-admin-vben/apps/web-antdv-next/src/views/lms/daily-plan/management/index.vue @@ -10,6 +10,7 @@ import { getDailyPlanManagementPage } from '#/api/lms/dailyplan'; import Operation from '../work/modules/operation.vue'; import { useGridColumns, useGridFormSchema } from './data'; import Detail from './modules/detail.vue'; +import CoreTube from './modules/core-tube.vue'; import Form from './modules/form.vue'; import StartOrder from './modules/start-order.vue'; @@ -29,6 +30,10 @@ const [StartOrderModal, startOrderModalApi] = useVbenModal({ connectedComponent: StartOrder, destroyOnClose: true, }); +const [CoreTubeModal, coreTubeModalApi] = useVbenModal({ + connectedComponent: CoreTube, + destroyOnClose: true, +}); const [OperationModal, operationModalApi] = useVbenModal({ connectedComponent: Operation, destroyOnClose: true, @@ -54,6 +59,10 @@ function handleStart(row: LmsDailyPlanApi.DailyPlan) { startOrderModalApi.setData(row).open(); } +function handleCoreTube(row: LmsDailyPlanApi.DailyPlan) { + coreTubeModalApi.setData(row).open(); +} + function handleCancel(row: LmsDailyPlanApi.DailyPlan) { operationModalApi.setData({ row, type: 'cancelOrder' }).open(); } @@ -96,6 +105,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ +