diff --git a/shkj-admin/src/main/resources/application-dev.yml b/shkj-admin/src/main/resources/application-dev.yml index 48a12c3..7682086 100644 --- a/shkj-admin/src/main/resources/application-dev.yml +++ b/shkj-admin/src/main/resources/application-dev.yml @@ -12,7 +12,8 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://127.0.0.1:3306/sc_wcs?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B7 + url: jdbc:mysql://127.0.0.1:3306/sc_wcs?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai +# url: jdbc:mysql://127.0.0.1:3306/sc_wcs?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai #url: jdbc:mysql://120.77.94.227:3306/mjk_wcs_2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root #password: CTlTwKgIrRVTsEHqxxx diff --git a/shkj-admin/src/main/resources/application-pro.yml b/shkj-admin/src/main/resources/application-pro.yml index 3b0c6bf..1790248 100644 --- a/shkj-admin/src/main/resources/application-pro.yml +++ b/shkj-admin/src/main/resources/application-pro.yml @@ -12,7 +12,7 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://10.0.152.244:3306/sc_wcs?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B7 + url: jdbc:mysql://10.0.152.244:3306/sc_wcs?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai username: root password: sc@2025 # 从库数据源 diff --git a/shkj-wms/src/main/java/com/shkj/wcs/service/impl/BusinDataTaskServiceImpl.java b/shkj-wms/src/main/java/com/shkj/wcs/service/impl/BusinDataTaskServiceImpl.java index f73918c..3b243a5 100644 --- a/shkj-wms/src/main/java/com/shkj/wcs/service/impl/BusinDataTaskServiceImpl.java +++ b/shkj-wms/src/main/java/com/shkj/wcs/service/impl/BusinDataTaskServiceImpl.java @@ -92,7 +92,8 @@ public class BusinDataTaskServiceImpl extends ServiceImpl lqwDataTask1 = new LambdaQueryWrapper() - .eq(BusinDataTask::getTaskCode, taskId); + .eq(BusinDataTask::getTaskCode, taskId) + .ne(BusinDataTask::getTaskStatus,TaskStatusEnum.clean.getValue()); BusinDataTask one1 = this.getOne(lqwDataTask1); if (dataChange.equals("1")) { if (one != null) { @@ -148,7 +149,7 @@ public class BusinDataTaskServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper() - .eq(BusinDataTask::getTaskCode, robotTaskCode); -// .eq(BusinDataTask::getContainerCode, carrierCode); + .eq(BusinDataTask::getTaskCode, robotTaskCode) + .eq(BusinDataTask::getTaskStatus, TaskStatusEnum.wait_callback.getValue()); BusinDataTask businDataTask; try { businDataTask = iBusinDataTaskService.getOne(queryWrapper, true);