소스 검색

权益价格的调整

dongxin 1 년 전
부모
커밋
54d342710c
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/main/java/com/ydtech/modules/order/service/impl/InsOrdersServiceImpl.java

+ 4 - 2
src/main/java/com/ydtech/modules/order/service/impl/InsOrdersServiceImpl.java

@@ -1058,8 +1058,10 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
                 packageVo.setPackageName(equity.getEquityName());
                 packageVo.setLdProportion(ptlAgreementProductCostsNew.getLdProportion());
                 packageVo.setTotalAmount(totalAmount);
-                packageVo.setKhAmount(totalAmount.subtract(totalAmount.multiply(new BigDecimal(ptlAgreementProductCostsNew.getLdProportion()).multiply(new BigDecimal(100)))));
-                packageVo.setDlrAmount(totalAmount.multiply(new BigDecimal(ptlAgreementProductCostsNew.getLdProportion()).multiply(new BigDecimal(100))));
+                packageVo.setKhAmount(totalAmount.subtract(
+                        totalAmount.multiply(new BigDecimal(ptlAgreementProductCostsNew.getLdProportion())
+                                .divide(new BigDecimal(100)))));
+                packageVo.setDlrAmount(totalAmount.multiply(new BigDecimal(ptlAgreementProductCostsNew.getLdProportion()).divide(new BigDecimal(100))));
 
                 String equityInfo = equity.getEquityInfo();
                 LocalEquityPackagePage packagevo = JSON.parseObject(equityInfo, LocalEquityPackagePage.class);