From f06998347d5d7824fe5e2d313e82620ee43c05dc Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Tue, 19 Nov 2024 09:52:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/system/count/SysTrainnumController.java | 4 ++-- .../src/main/resources/mapper/system/TdCheckReportMapper.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysTrainnumController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysTrainnumController.java index ea56662..9d07f03 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysTrainnumController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysTrainnumController.java @@ -135,7 +135,7 @@ public class SysTrainnumController extends BaseController { Integer count = new LambdaQueryChainWrapper<>(tdTrainService.getBaseMapper()) .ge(TdTrain::getCreateDate, minDayTime) .le(TdTrain::getCreateDate, maxDayTime) - .eq(TdTrain::getTrainState,'0') + .eq(TdTrain::getTrainState,0) .count(); if(Objects.isNull(count)){ count = 0; @@ -172,7 +172,7 @@ public class SysTrainnumController extends BaseController { Integer count = new LambdaQueryChainWrapper<>(tdTrainService.getBaseMapper()) .ge(TdTrain::getCreateDate, minDayTime) .le(TdTrain::getCreateDate, maxDayTime) - .eq(TdTrain::getTrainState,'2') + .eq(TdTrain::getTrainState,2) .count(); if(Objects.isNull(count)){ count = 0; diff --git a/ruoyi-system/src/main/resources/mapper/system/TdCheckReportMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdCheckReportMapper.xml index 7d92847..68313fb 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdCheckReportMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdCheckReportMapper.xml @@ -54,10 +54,10 @@ AND real_score = #{realScore} - AND check_start_time >= #{checkStartTime} + AND check_start_time >= CAST(#{checkStartTime} AS TIMESTAMP) - AND check_end_time <= #{checkEndTime} + AND check_end_time <= CAST(#{checkEndTime} AS TIMESTAMP) ${params.dataScope}