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}