diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/taskrecord/rest/TaskRecordController.java b/eladmin-system/src/main/java/me/zhengjie/modules/taskrecord/rest/TaskRecordController.java index 6f1c913..f4686a2 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/taskrecord/rest/TaskRecordController.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/taskrecord/rest/TaskRecordController.java @@ -167,7 +167,7 @@ public class TaskRecordController { @AnonymousAccess // fixme 需要测试完成后进行去除和使用上面的权限注解 public ResponseEntity sendTask(@RequestBody TaskRecordSendVO taskRecordSendVO){ // 参数校验 - if (taskRecordSendVO == null){ + if (taskRecordSendVO == null || taskRecordSendVO.getId() == null || taskRecordSendVO.getId() <= 0){ return new ResponseEntity<>(CommonResponse.createByError(ResponseCode.EMPTY_ARGUMENT), HttpStatus.OK); } SendRecordDTO sendRecordDTO = new SendRecordDTO(); diff --git a/eladmin-system/src/main/resources/config/application-test.yml b/eladmin-system/src/main/resources/config/application-test.yml index fce570f..814c33c 100644 --- a/eladmin-system/src/main/resources/config/application-test.yml +++ b/eladmin-system/src/main/resources/config/application-test.yml @@ -1,9 +1,9 @@ #配置数据源 spring: shardingsphere: - props: - sql: - show: true +# props: +# sql: +# show: true datasource: names: eladmin,schema eladmin: diff --git a/eladmin-system/src/main/resources/config/application.yml b/eladmin-system/src/main/resources/config/application.yml index 7fb7dab..d09003c 100644 --- a/eladmin-system/src/main/resources/config/application.yml +++ b/eladmin-system/src/main/resources/config/application.yml @@ -25,7 +25,7 @@ spring: order_inserts: true order_updates: true open-in-view: true - +# show-sql: true redis: #数据库索引 database: 0 diff --git a/pom.xml b/pom.xml index e80dde8..0d51c0c 100644 --- a/pom.xml +++ b/pom.xml @@ -127,17 +127,17 @@ - - - - - - org.apache.shardingsphere + org.apache.shardingSphere sharding-jdbc-spring-boot-starter - 4.1.1 + 4.0.0-RC1 + + + + +