山洪责任人通讯录分页查询,导出修改
parent
83673394b2
commit
78878c984c
|
|
@ -243,6 +243,16 @@ public class ShAddressBookController {
|
|||
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
|
||||
.eq(ShAddressBook::getDel, REC)
|
||||
.orderByAsc(ShAddressBook::getSort);
|
||||
|
|
|
|||
|
|
@ -98,7 +98,12 @@
|
|||
AND T.LAND = #{dto.land}
|
||||
</if>
|
||||
<if test="dto.callStatus != null and dto.callStatus != '' ">
|
||||
AND T.CALL_STATUS = #{dto.callStatus}
|
||||
<if test="dto.callStatus == 1 ">
|
||||
AND T.CALL_STATUS = #{dto.callStatus}
|
||||
</if>
|
||||
<if test="dto.callStatus == 0 ">
|
||||
AND T.CALL_STATUS != 1
|
||||
</if>
|
||||
</if>
|
||||
<if test="dto.phone != null and dto.phone != '' ">
|
||||
AND T.PHONE LIKE CONCAT('%', #{dto.phone}, '%')
|
||||
|
|
|
|||
Loading…
Reference in New Issue