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 9d07f03..ea56662 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-admin/src/main/java/com/ruoyi/web/controller/system/count/SysUsernumController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysUsernumController.java index 6053008..60b12ba 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysUsernumController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysUsernumController.java @@ -214,8 +214,8 @@ public class SysUsernumController extends BaseController { Integer count = new LambdaQueryChainWrapper<>(userService.getBaseMapper()) .ge(SysUser::getCreateTime, minDayTime) .le(SysUser::getCreateTime, maxDayTime) - .eq(SysUser::getExamine,2) - .eq(SysUser::getDelFlag,0) + .eq(SysUser::getExamine,'2') + .eq(SysUser::getDelFlag,'0') .count(); if(Objects.isNull(count)){ count = 0; diff --git a/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml index e764126..da1c4ff 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml @@ -155,9 +155,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"