优化
This commit is contained in:
@ -44,5 +44,11 @@ public class BgtDailyClockListDTO {
|
||||
@ApiModelProperty(value = "审核人Id",hidden = true)
|
||||
private Long auditorUserId;
|
||||
|
||||
@ApiModelProperty(value = "是否已读",hidden = true)
|
||||
private Boolean isRead;
|
||||
|
||||
@ApiModelProperty(value = "是否待审核",hidden = true)
|
||||
private Boolean isAudit;
|
||||
|
||||
|
||||
}
|
||||
|
@ -336,6 +336,13 @@ public class WgzDailyClockServiceImpl extends ServicePlusImpl<WgzDailyClockMappe
|
||||
Page<BgtDailyClockListDTO> queryDTOPage = new Page<>();
|
||||
queryDTOPage.setCurrent(dto.getPageNum());
|
||||
queryDTOPage.setSize(dto.getPageSize());
|
||||
if( "5".equals(dto.getAuditorType()) ){
|
||||
dto.setIsRead(true);
|
||||
}
|
||||
if( "1".equals(dto.getAuditorType()) ){
|
||||
dto.setIsAudit(true);
|
||||
}
|
||||
|
||||
Page<BgtDailyClockListVO> queryVOPage = baseMapper.appQueryPageList(queryDTOPage, dto);
|
||||
return PageUtils.buildDataInfo(queryVOPage);
|
||||
}
|
||||
|
@ -73,8 +73,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="dto.username != null and dto.username != ''">
|
||||
and wu.username like concat('%', #{dto.username}, '%')
|
||||
</if>
|
||||
<if test="dto.auditorType != null and dto.auditorType != ''">
|
||||
and wdc.auditor_type = #{dto.auditorType}
|
||||
<if test="dto.auditorType != null and dto.auditorType != '' ">
|
||||
<choose>
|
||||
<when test="dto.isRead">
|
||||
and wdc.status = '0' and wdc.auditor_type ='1'
|
||||
</when>
|
||||
<when test="dto.isAudit">
|
||||
and wdc.auditor_type = '1' and wdc.status = '1'
|
||||
</when>
|
||||
<otherwise>
|
||||
and wdc.auditor_type = #{dto.auditorType}
|
||||
</otherwise>
|
||||
</choose>
|
||||
|
||||
</if>
|
||||
<if test="dto.dilyTime != null">
|
||||
and DATE(wdc.dily_time) = #{dto.dilyTime}
|
||||
|
Reference in New Issue
Block a user