山洪责任人通讯录分页查询,导出修改

master
徐杰盟 2024-08-07 10:44:34 +08:00
parent 83673394b2
commit 78878c984c
2 changed files with 16 additions and 1 deletions

View File

@ -243,6 +243,16 @@ public class ShAddressBookController {
query.like(ShAddressBook::getPhone, phone); query.like(ShAddressBook::getPhone, phone);
} }
String callStatus = dto.getCallStatus();
if (StringUtils.isNotBlank(phone)) {
if ("1".equals(callStatus)){
query.eq(ShAddressBook::getCallStatus, callStatus);
}else{
query.ne(ShAddressBook::getCallStatus, 1);
}
}
query query
.eq(ShAddressBook::getDel, REC) .eq(ShAddressBook::getDel, REC)
.orderByAsc(ShAddressBook::getSort); .orderByAsc(ShAddressBook::getSort);

View File

@ -98,8 +98,13 @@
AND T.LAND = #{dto.land} AND T.LAND = #{dto.land}
</if> </if>
<if test="dto.callStatus != null and dto.callStatus != '' "> <if test="dto.callStatus != null and dto.callStatus != '' ">
<if test="dto.callStatus == 1 ">
AND T.CALL_STATUS = #{dto.callStatus} AND T.CALL_STATUS = #{dto.callStatus}
</if> </if>
<if test="dto.callStatus == 0 ">
AND T.CALL_STATUS != 1
</if>
</if>
<if test="dto.phone != null and dto.phone != '' "> <if test="dto.phone != null and dto.phone != '' ">
AND T.PHONE LIKE CONCAT('%', #{dto.phone}, '%') AND T.PHONE LIKE CONCAT('%', #{dto.phone}, '%')
</if> </if>