添加优质筛选
This commit is contained in:
@@ -103,5 +103,10 @@ public class OaFurnitureTableBo extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优质筛选:true表示只查询邮箱不为空的记录
|
||||||
|
*/
|
||||||
|
private Boolean qualityFilter;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,13 @@ public class OaFurnitureTableServiceImpl implements IOaFurnitureTableService {
|
|||||||
lqw.eq(bo.getLastEmailSendTime() != null, OaFurnitureTable::getLastEmailSendTime, bo.getLastEmailSendTime());
|
lqw.eq(bo.getLastEmailSendTime() != null, OaFurnitureTable::getLastEmailSendTime, bo.getLastEmailSendTime());
|
||||||
lqw.eq(StringUtils.isNotBlank(bo.getContactPerson()), OaFurnitureTable::getContactPerson, bo.getContactPerson());
|
lqw.eq(StringUtils.isNotBlank(bo.getContactPerson()), OaFurnitureTable::getContactPerson, bo.getContactPerson());
|
||||||
lqw.eq(bo.getReceiveCount() != null, OaFurnitureTable::getReceiveCount, bo.getReceiveCount());
|
lqw.eq(bo.getReceiveCount() != null, OaFurnitureTable::getReceiveCount, bo.getReceiveCount());
|
||||||
|
|
||||||
|
// 优质筛选:只查询邮箱不为空的记录
|
||||||
|
if (Boolean.TRUE.equals(bo.getQualityFilter())) {
|
||||||
|
lqw.isNotNull(OaFurnitureTable::getEmail);
|
||||||
|
lqw.ne(OaFurnitureTable::getEmail, "");
|
||||||
|
}
|
||||||
|
|
||||||
// 按邮件发送次数升序排序,发送次数少的靠前显示
|
// 按邮件发送次数升序排序,发送次数少的靠前显示
|
||||||
lqw.orderByAsc(OaFurnitureTable::getEmailSendCount);
|
lqw.orderByAsc(OaFurnitureTable::getEmailSendCount);
|
||||||
return lqw;
|
return lqw;
|
||||||
|
|||||||
Reference in New Issue
Block a user