|
@@ -1,5 +1,6 @@
|
|
|
package com.fdkankan.sale.service.impl;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.fdkankan.common.util.SecurityUtil;
|
|
|
import com.fdkankan.sale.common.PageInfo;
|
|
|
import com.fdkankan.sale.common.RepairStatusEnum;
|
|
|
import com.fdkankan.sale.entity.*;
|
|
@@ -17,6 +18,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Service
|
|
@@ -60,8 +62,8 @@ public class RepairInfoService {
|
|
|
|
|
|
Customer customer = customerService.getByRepairId(repairId);
|
|
|
CustomerAddress customerAddress = customerAddressService.getByRepairId(repairId);
|
|
|
- Repair repairer = repairService.getById(repairId);
|
|
|
- List<PriceList> priceLists = priceListService.getByRepairId(repairId);
|
|
|
+ List<PriceList> priceLists = priceListService.getByRepairIdAndStatus(repairId,1);
|
|
|
+
|
|
|
RepairPay repairPay = repairPayService.getByRepairId(repairId,1);
|
|
|
OrderReceivingVo receiving = orderReceivingService.getVoByRepairId(repairId);
|
|
|
RepairTestVo repairTestVo = repairTestService.getPassVoByRepairId(repairId);
|
|
@@ -77,7 +79,6 @@ public class RepairInfoService {
|
|
|
detailVo.setRepairInvoice(repairInvoice);
|
|
|
detailVo.setApplyInvoice(1);
|
|
|
}
|
|
|
-
|
|
|
BigDecimal payAmount = BigDecimal.ZERO;
|
|
|
if(repair.getStatus().equals(RepairStatusEnum.TO_BE_CANCELED.status())){
|
|
|
payAmount = priceListService.getRobAmountByRepairId(repair.getRepairId());
|
|
@@ -89,7 +90,7 @@ public class RepairInfoService {
|
|
|
|
|
|
detailVo.setCustomer(customer);
|
|
|
detailVo.setCustomerAddress(customerAddress);
|
|
|
- detailVo.setRepairerVo(repairer);
|
|
|
+ detailVo.setRepairerVo(repair);
|
|
|
detailVo.setPriceList(priceLists);
|
|
|
detailVo.setRepairPay(repairPay);
|
|
|
detailVo.setOrderReceivingVo(receiving);
|
|
@@ -123,7 +124,7 @@ public class RepairInfoService {
|
|
|
}
|
|
|
break;
|
|
|
case 20 : //维修检测
|
|
|
- RepairRegisterVo repairRegisterVo = repairRegisterService.getVoByRepairId(repairLogVo.getRepairId());
|
|
|
+ RepairRegisterVo repairRegisterVo = repairRegisterService.getVoByRegisterLogId(repairLogVo.getRepairLogId());
|
|
|
repairLogVo.setRepairRegisterVo(repairRegisterVo);
|
|
|
if(repairRegisterVo != null){
|
|
|
repairLogVo.setImagesInfo(repairRegisterVo.getCheckImg());
|