|
@@ -1,5 +1,6 @@
|
|
package com.fdkankan.sale.service.impl;
|
|
package com.fdkankan.sale.service.impl;
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.fdkankan.sale.common.ResultCode;
|
|
import com.fdkankan.sale.common.ResultCode;
|
|
import com.fdkankan.sale.entity.*;
|
|
import com.fdkankan.sale.entity.*;
|
|
import com.fdkankan.sale.exception.BusinessException;
|
|
import com.fdkankan.sale.exception.BusinessException;
|
|
@@ -37,7 +38,12 @@ public class RepairCustomerService {
|
|
List<Customer> list = customerService.getByOpenId(openId);
|
|
List<Customer> list = customerService.getByOpenId(openId);
|
|
if(list!= null && list.size() >0){
|
|
if(list!= null && list.size() >0){
|
|
List<String> repairIds = list.stream().map(Customer::getRepairId).collect(Collectors.toList());
|
|
List<String> repairIds = list.stream().map(Customer::getRepairId).collect(Collectors.toList());
|
|
- return repairService.listByIds(repairIds);
|
|
|
|
|
|
+ if(repairIds.size() >0){
|
|
|
|
+ LambdaQueryWrapper<Repair> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ wrapper.in(Repair::getRepairId,repairIds);
|
|
|
|
+ wrapper.orderByDesc(Repair::getCreateTime);
|
|
|
|
+ return repairService.list(wrapper);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|