feat:瀚高适配

hangao
wangxy 5 months ago
parent 8fb4af9178
commit a60ba85fa7

@ -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;

@ -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;

@ -155,9 +155,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectCountList" resultType="com.ruoyi.system.domain.count.TrainCountDTO">
SELECT
count(1) as total,
SUM (CASE WHEN train_state = 2 THEN 1 ELSE 0 END) AS dsh,
SUM (CASE WHEN train_state = 0 THEN 1 ELSE 0 END) AS shtg,
SUM (CASE WHEN train_state = 1 THEN 1 ELSE 0 END) AS shwtg
SUM (CASE WHEN train_state = '2' THEN 1 ELSE 0 END) AS dsh,
SUM (CASE WHEN train_state = '0' THEN 1 ELSE 0 END) AS shtg,
SUM (CASE WHEN train_state = '1' THEN 1 ELSE 0 END) AS shwtg
from td_train
</select>

Loading…
Cancel
Save