|
@@ -15,6 +15,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.fdkankan.sale.util.DateUtil;
|
|
import com.fdkankan.sale.util.DateUtil;
|
|
import com.fdkankan.sale.util.StatusUtil;
|
|
import com.fdkankan.sale.util.StatusUtil;
|
|
import com.fdkankan.sale.vo.request.*;
|
|
import com.fdkankan.sale.vo.request.*;
|
|
|
|
+import com.fdkankan.sale.vo.response.RepairRegisterPartVo;
|
|
import com.fdkankan.sale.vo.response.RepairerVo;
|
|
import com.fdkankan.sale.vo.response.RepairerVo;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -44,6 +45,8 @@ public class RepairServiceImpl extends ServiceImpl<IRepairMapper, Repair> implem
|
|
IRepairFaultService repairFaultService;
|
|
IRepairFaultService repairFaultService;
|
|
@Autowired
|
|
@Autowired
|
|
IPriceListService priceListService;
|
|
IPriceListService priceListService;
|
|
|
|
+ @Autowired
|
|
|
|
+ RepairSupplyService repairSupplyService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void updateRepairStatus(String repairId, Integer status) {
|
|
public void updateRepairStatus(String repairId, Integer status) {
|
|
@@ -82,9 +85,8 @@ public class RepairServiceImpl extends ServiceImpl<IRepairMapper, Repair> implem
|
|
}
|
|
}
|
|
repairPayService.updatePayStatus(orderSn,tradeNo,openid);
|
|
repairPayService.updatePayStatus(orderSn,tradeNo,openid);
|
|
if(orderSn.contains("se_s")){
|
|
if(orderSn.contains("se_s")){
|
|
- List<PriceList> priceListList = priceListService.getByRepairId(repairPay.getRepairId());
|
|
|
|
- List<PriceList> collect = priceListList.stream().filter(entity -> entity.getOutStatus() == 1 && entity.getType() == 0).collect(Collectors.toList());
|
|
|
|
- if(collect.size() >0){
|
|
|
|
|
|
+ List<RepairRegisterPartVo> partVoList = repairSupplyService.partInfo(repairPay.getRepairId(), 1);
|
|
|
|
+ if(partVoList.size() >0){
|
|
repairLogService.saveBySysUser(null,repairPay.getRepairId(), RepairStatusEnum.TO_BE_RECOVERED.status(),"完成维修支付成功");
|
|
repairLogService.saveBySysUser(null,repairPay.getRepairId(), RepairStatusEnum.TO_BE_RECOVERED.status(),"完成维修支付成功");
|
|
}else {
|
|
}else {
|
|
repairLogService.saveBySysUser(null,repairPay.getRepairId(), RepairStatusEnum.TO_BE_SHIPPED.status(),"完成维修支付成功");
|
|
repairLogService.saveBySysUser(null,repairPay.getRepairId(), RepairStatusEnum.TO_BE_SHIPPED.status(),"完成维修支付成功");
|