lyhzzz 2 년 전
부모
커밋
2b2e35f280
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/java/com/fdkankan/sale/service/impl/RepairInfoService.java

+ 3 - 3
src/main/java/com/fdkankan/sale/service/impl/RepairInfoService.java

@@ -311,12 +311,12 @@ public class RepairInfoService {
             excelVo.setSort(i);
             excelVo.setSort(i);
             BeanUtils.copyProperties(list,excelVo);
             BeanUtils.copyProperties(list,excelVo);
             if(list.getDiscount() == 0){
             if(list.getDiscount() == 0){
-                excelVo.setPriceDiscount(list.getPrice());
+                excelVo.setPrice(list.getPrice());
             }
             }
             if(list.getDiscount() == 1){
             if(list.getDiscount() == 1){
-                excelVo.setPriceDiscount(list.getPriceDiscount());
+                excelVo.setPrice(list.getPriceDiscount());
             }
             }
-            excelVo.setAmount(excelVo.getPriceDiscount().multiply(new BigDecimal(list.getCount())));
+            excelVo.setAmount(excelVo.getPrice().multiply(new BigDecimal(list.getCount())));
             excelVos.add(excelVo);
             excelVos.add(excelVo);
             totalAmount = totalAmount.add(excelVo.getAmount());
             totalAmount = totalAmount.add(excelVo.getAmount());
             priceData = list.getCreateTime();
             priceData = list.getCreateTime();