Commit 49f537d2e80bd67a9be0b32913c0d9e935de42cb

Authored by 谢茂盛
1 parent 614fafa0

fix: 修复导出/编辑利润率/审核列表

src/main/java/com/order/erp/service/order/impl/OrderBaseInfoServiceImpl.java
@@ -583,7 +583,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -583,7 +583,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
583 } 583 }
584 return OrderProfitAnalysisFieldVO.builder() 584 return OrderProfitAnalysisFieldVO.builder()
585 .orderId(profitAnalysisVO.getOrderId()) 585 .orderId(profitAnalysisVO.getOrderId())
586 - .profitType(profitAnalysisVO.getProfitType()) 586 + .profitType(StringUtils.isBlank(profitAnalysisVO.getProfitType()) ? Constant.STRING_ZERO : profitAnalysisVO.getProfitType())
587 .customerPrice(Objects.nonNull(profitAnalysisVO.getCustomerPrice()) ? profitAnalysisVO.getCustomerPrice().toString() : null) 587 .customerPrice(Objects.nonNull(profitAnalysisVO.getCustomerPrice()) ? profitAnalysisVO.getCustomerPrice().toString() : null)
588 .customerTotalPrice(Objects.nonNull(profitAnalysisVO.getCustomerTotalPrice()) ? profitAnalysisVO.getCustomerTotalPrice().toString() : null) 588 .customerTotalPrice(Objects.nonNull(profitAnalysisVO.getCustomerTotalPrice()) ? profitAnalysisVO.getCustomerTotalPrice().toString() : null)
589 .customerCurrency(profitAnalysisVO.getCustomerCurrency()) 589 .customerCurrency(profitAnalysisVO.getCustomerCurrency())
@@ -617,6 +617,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -617,6 +617,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
617 OrderProfitAnalysisDO profitAnalysisDO = profitAnalysisDOMap.get(result.getId()); 617 OrderProfitAnalysisDO profitAnalysisDO = profitAnalysisDOMap.get(result.getId());
618 OrderProfitAnalysisVO profitAnalysisVO = new OrderProfitAnalysisVO(); 618 OrderProfitAnalysisVO profitAnalysisVO = new OrderProfitAnalysisVO();
619 BeanUtils.copyProperties(profitAnalysisDO, profitAnalysisVO); 619 BeanUtils.copyProperties(profitAnalysisDO, profitAnalysisVO);
  620 + profitAnalysisVO.setProfitType(String.valueOf(profitAnalysisDO.getProfitType()));
620 result.setProfitAnalysisInfo(profitAnalysisVO); 621 result.setProfitAnalysisInfo(profitAnalysisVO);
621 } 622 }
622 }); 623 });