山洪责任人通讯录分页查询,导出修改
parent
83673394b2
commit
78878c984c
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue