| | |
| | | wrapper.eq("customer_id",id); |
| | | wrapper.eq("status",1); |
| | | List<CustomerReceive> list = iCustomerReceiveService.list(wrapper); |
| | | for (CustomerReceive customerReceive : list) { |
| | | if(StrUtil.isBlank(customerReceive.getPhone())){ |
| | | customerReceive.setPhone(" "); |
| | | } |
| | | } |
| | | customer.setReceives(list); |
| | | return new ResultUtil<Customer>().setData(customer); |
| | | } |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/getByPage", method = RequestMethod.GET) |
| | | @ApiOperation(value = "") |
| | | @ApiOperation(value = "分页获取数据") |
| | | public Result<IPage<Customer>> getByPage(String areaSectionId,String customerName,PageVo page) { |
| | | QueryWrapper<Customer> wrapper = new QueryWrapper<>(); |
| | | if (!StrUtil.isEmpty(areaSectionId)) |