diff --git a/src/main/java/com/wms/controller/TaskController.java b/src/main/java/com/wms/controller/TaskController.java index fc83d7c..87f5528 100644 --- a/src/main/java/com/wms/controller/TaskController.java +++ b/src/main/java/com/wms/controller/TaskController.java @@ -644,12 +644,12 @@ public class TaskController { if (!Objects.equals(currentVehicle.getVehicleStatus(), VehicleStatus.ON.getCode())) { return TaskOutValidationEnum.ERROR_VEHICLE_STATUS.getErrorMessage(); } - if (!Objects.equals(currentLocation.getIsLock(), 1)) { + if (Objects.equals(currentLocation.getIsLock(), 1)) { return TaskOutValidationEnum.LOCKED_LOCATION.getErrorMessage(); } } else { Location currentLocation = locationService.getOne(new LambdaQueryWrapper().eq(Location::getLocationId, taskOutRequest.getOriginPoint())); - if (!Objects.equals(currentLocation.getIsLock(), 1)) { + if (Objects.equals(currentLocation.getIsLock(), 1)) { return TaskOutValidationEnum.LOCKED_LOCATION.getErrorMessage(); } if (!Objects.equals(currentLocation.getLocationStatus(), LocationStatus.OCCUPY.getCode())) { @@ -947,7 +947,7 @@ public class TaskController { } /** - * 查找所有物料 + * 查找所有任务 */ @PostMapping("/getTasksByPage") @ResponseBody @@ -982,7 +982,7 @@ public class TaskController { } /** - * 根据 + * 根据查询条件查询任务 */ @PostMapping("/getTasks") @ResponseBody diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b7b74f4..2d58f90 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -13,15 +13,15 @@ spring: # password: coder # driver-class-name: com.mysql.cj.jdbc.Driver # 宝开服务器--内网 -# url: jdbc:mysql://192.168.3.254:3306/wms_miniload_bk7?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true -# username: coder -# password: coder -# driver-class-name: com.mysql.cj.jdbc.Driver - # 测试环境 - url: jdbc:mysql://192.168.3.254:3306/wms_miniload_bk7_test?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true + url: jdbc:mysql://192.168.3.254:3306/wms_miniload_bk7?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true username: coder password: coder driver-class-name: com.mysql.cj.jdbc.Driver + # 测试环境 +# url: jdbc:mysql://192.168.3.254:3306/wms_miniload_bk7_test?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true +# username: coder +# password: coder +# driver-class-name: com.mysql.cj.jdbc.Driver # 从库 # slave_1: # url: jdbc:mysql://localhost:3306/wms_miniload_bk7?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true