From a60ba85fa7b11490a2bfa7f347f629f0a78ab49f Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Thu, 7 Nov 2024 15:55:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=80=9A=E9=AB=98=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/system/count/SysTrainnumController.java | 4 ++-- .../web/controller/system/count/SysUsernumController.java | 4 ++-- .../src/main/resources/mapper/system/TdTrainMapper.xml | 6 +++--- 3 files changed, 7 insertions(+), 7 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 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"