feat:修改查询报错问题

hangao
wangxy 5 months ago
parent 571e18289e
commit f06998347d

@ -135,7 +135,7 @@ public class SysTrainnumController extends BaseController {
Integer count = new LambdaQueryChainWrapper<>(tdTrainService.getBaseMapper()) Integer count = new LambdaQueryChainWrapper<>(tdTrainService.getBaseMapper())
.ge(TdTrain::getCreateDate, minDayTime) .ge(TdTrain::getCreateDate, minDayTime)
.le(TdTrain::getCreateDate, maxDayTime) .le(TdTrain::getCreateDate, maxDayTime)
.eq(TdTrain::getTrainState,'0') .eq(TdTrain::getTrainState,0)
.count(); .count();
if(Objects.isNull(count)){ if(Objects.isNull(count)){
count = 0; count = 0;
@ -172,7 +172,7 @@ public class SysTrainnumController extends BaseController {
Integer count = new LambdaQueryChainWrapper<>(tdTrainService.getBaseMapper()) Integer count = new LambdaQueryChainWrapper<>(tdTrainService.getBaseMapper())
.ge(TdTrain::getCreateDate, minDayTime) .ge(TdTrain::getCreateDate, minDayTime)
.le(TdTrain::getCreateDate, maxDayTime) .le(TdTrain::getCreateDate, maxDayTime)
.eq(TdTrain::getTrainState,'2') .eq(TdTrain::getTrainState,2)
.count(); .count();
if(Objects.isNull(count)){ if(Objects.isNull(count)){
count = 0; count = 0;

@ -54,10 +54,10 @@
AND real_score = #{realScore} AND real_score = #{realScore}
</if> </if>
<if test="checkStartTime != null and checkStartTime!='' "><!-- 开始时间检索 --> <if test="checkStartTime != null and checkStartTime!='' "><!-- 开始时间检索 -->
AND check_start_time &gt;= #{checkStartTime} AND check_start_time &gt;= CAST(#{checkStartTime} AS TIMESTAMP)
</if> </if>
<if test="checkEndTime != null and checkEndTime!=''"><!-- 结束时间检索 --> <if test="checkEndTime != null and checkEndTime!=''"><!-- 结束时间检索 -->
AND check_end_time &lt;= #{checkEndTime} AND check_end_time &lt;= CAST(#{checkEndTime} AS TIMESTAMP)
</if> </if>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}

Loading…
Cancel
Save