| | |
| | | LambdaQueryWrapper<TjCustomer> wq1 = new LambdaQueryWrapper<>(); |
| | | wq1.eq(TjCustomer::getCusPhone, cusPhone); |
| | | List<TjCustomer> list1 = customerService.list(wq1); |
| | | if (list1.size() != 0) { |
| | | if (null != list1 && !list1.isEmpty()) { |
| | | for (TjCustomer tjCustomer : list1) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | QueryWrapper<TjOrder> wq2 = new QueryWrapper<>(); |
| | |
| | | wq2.isNotNull("finish_time"); |
| | | wq2.orderByDesc("finish_time"); |
| | | List<TjOrder> list = orderService.list(wq2); |
| | | if (null != list && list.size() > 0) { |
| | | if (null != list && !list.isEmpty()) { |
| | | TjOrder tjOrder = orderService.list(wq2).get(0); |
| | | map.put("report", tjOrder); |
| | | map.put("customer", tjCustomer); |