Browse Source

客户修改查询条件

master
hp 2 years ago
parent
commit
eb1f72a783
  1. 5
      anrui-crm/anrui-crm-api/src/main/java/com/yxt/anrui/crm/api/crmcustomertemp/CrmCustomerTempQuery.java
  2. 4
      anrui-crm/anrui-crm-biz/src/main/java/com/yxt/anrui/crm/biz/crmcustomertemp/CrmCustomerTempService.java

5
anrui-crm/anrui-crm-api/src/main/java/com/yxt/anrui/crm/api/crmcustomertemp/CrmCustomerTempQuery.java

@ -7,6 +7,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* Project: anrui-crm(客户管理) <br/>
* File: CrmCustomerTempQuery.java <br/>
@ -51,4 +53,7 @@ public class CrmCustomerTempQuery implements Query {
@ApiModelProperty("用户sid")
private String userSid;
@ApiModelProperty("客户sid")
private List<String> customerSidList;
}

4
anrui-crm/anrui-crm-biz/src/main/java/com/yxt/anrui/crm/biz/crmcustomertemp/CrmCustomerTempService.java

@ -144,6 +144,10 @@ public class CrmCustomerTempService extends MybatisBaseService<CrmCustomerTempMa
if (StringUtils.isNotBlank(query.getStaffSid())) {
qw.eq("cct.staffSid", query.getStaffSid());
}
if (query.getCustomerSidList().size() > 0) {
qw.notIn("cct.sid", query.getCustomerSidList());
}
String remindStartDay = query.getRemindStartDay();
String remindEndDay = query.getRemindEndDay();
qw.apply(StringUtils.isNotBlank(remindStartDay), "date_format (cct.remind_day,'%Y-%m-%d') >= date_format('" + remindStartDay + "','%Y-%m-%d')").

Loading…
Cancel
Save