Your Name 3 лет назад
Родитель
Сommit
9f9e5df17f

+ 3
- 0
src/main/java/com/yunzhi/marketing/statistic/controller/TaCustomerFollowUpRecordController.java Просмотреть файл

5
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
 import com.yunzhi.marketing.base.BaseController;
6
 import com.yunzhi.marketing.base.BaseController;
7
 import com.yunzhi.marketing.base.ResponseBean;
7
 import com.yunzhi.marketing.base.ResponseBean;
8
+import com.yunzhi.marketing.common.StringUtils;
8
 import com.yunzhi.marketing.entity.TaPerson;
9
 import com.yunzhi.marketing.entity.TaPerson;
9
 import com.yunzhi.marketing.service.ITaPersonService;
10
 import com.yunzhi.marketing.service.ITaPersonService;
10
 import com.yunzhi.marketing.statistic.entity.TaCustomerFollowUpRecord;
11
 import com.yunzhi.marketing.statistic.entity.TaCustomerFollowUpRecord;
197
     public ResponseBean wxCustomerFollowUpRecordList(@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
198
     public ResponseBean wxCustomerFollowUpRecordList(@RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
198
                                                      @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
199
                                                      @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
199
                                                      @RequestParam(value ="customerId",required = true) String customerId,
200
                                                      @RequestParam(value ="customerId",required = true) String customerId,
201
+                                                     @RequestParam(value ="recordType",required = false) String recordType,
200
                                                      HttpServletRequest request){
202
                                                      HttpServletRequest request){
201
         ResponseBean responseBean = new ResponseBean();
203
         ResponseBean responseBean = new ResponseBean();
202
         String openid = getOpenId(request);
204
         String openid = getOpenId(request);
213
             queryWrapper.eq("follower_id",person.getPersonId());
215
             queryWrapper.eq("follower_id",person.getPersonId());
214
             queryWrapper.eq("org_id",orgId);
216
             queryWrapper.eq("org_id",orgId);
215
             queryWrapper.eq("customer_id",customerId);
217
             queryWrapper.eq("customer_id",customerId);
218
+            queryWrapper.like(!StringUtils.isEmpty(recordType), "record_type","%"+recordType+"%");
216
             queryWrapper.orderByDesc("create_date");
219
             queryWrapper.orderByDesc("create_date");
217
             
220
             
218
             IPage<TaCustomerFollowUpRecord> result = iTaCustomerFollowUpRecordService.page(pg, queryWrapper);
221
             IPage<TaCustomerFollowUpRecord> result = iTaCustomerFollowUpRecordService.page(pg, queryWrapper);