|
@@ -66,7 +66,7 @@ public class RepairInfoService {
|
|
ISysUserService sysUserService;
|
|
ISysUserService sysUserService;
|
|
|
|
|
|
|
|
|
|
- public RepairDetailVo getDetailsByRepairId(String repairId) {
|
|
|
|
|
|
+ public RepairDetailVo getDetailsByRepairId(String repairId,Boolean allPrice) {
|
|
Repair repair = repairService.getById(repairId);
|
|
Repair repair = repairService.getById(repairId);
|
|
if(repair == null){
|
|
if(repair == null){
|
|
throw new BusinessException( ResultCode.ORDER_PAY_NOT_EXITS);
|
|
throw new BusinessException( ResultCode.ORDER_PAY_NOT_EXITS);
|
|
@@ -93,11 +93,15 @@ public class RepairInfoService {
|
|
}
|
|
}
|
|
|
|
|
|
List<PriceList> priceLists = new ArrayList<>();
|
|
List<PriceList> priceLists = new ArrayList<>();
|
|
- if(repair.getCancelStatus() == 1){
|
|
|
|
- priceLists = priceListService.getCheckAmountByRepairId(repairId);
|
|
|
|
- }
|
|
|
|
- if(repair.getCancelStatus() == 0){
|
|
|
|
|
|
+ if(allPrice){
|
|
priceLists = priceListService.getByRepairId(repairId);
|
|
priceLists = priceListService.getByRepairId(repairId);
|
|
|
|
+ }else {
|
|
|
|
+ if(repair.getCancelStatus() == 1){
|
|
|
|
+ priceLists = priceListService.getCheckAmountByRepairId(repairId);
|
|
|
|
+ }
|
|
|
|
+ if(repair.getCancelStatus() == 0){
|
|
|
|
+ priceLists = priceListService.getByRepairId(repairId);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
BigDecimal payAmount = BigDecimal.ZERO;
|
|
BigDecimal payAmount = BigDecimal.ZERO;
|
|
|
|
|
|
@@ -303,8 +307,8 @@ public class RepairInfoService {
|
|
return PageInfo.PageInfo(page);
|
|
return PageInfo.PageInfo(page);
|
|
}
|
|
}
|
|
|
|
|
|
- public OrderListVo getExportVo(String repairId) {
|
|
|
|
- RepairDetailVo repairDetailVo = this.getDetailsByRepairId(repairId);
|
|
|
|
|
|
+ public OrderListVo getExportVo(String repairId,Boolean allPrice) {
|
|
|
|
+ RepairDetailVo repairDetailVo = this.getDetailsByRepairId(repairId,allPrice);
|
|
OrderListVo vo = new OrderListVo();
|
|
OrderListVo vo = new OrderListVo();
|
|
vo.setCompanyName(repairDetailVo.getCustomer().getCompanyName());
|
|
vo.setCompanyName(repairDetailVo.getCustomer().getCompanyName());
|
|
vo.setCustomerName(repairDetailVo.getCustomer().getCustomerName());
|
|
vo.setCustomerName(repairDetailVo.getCustomer().getCustomerName());
|