|
|
@@ -42,10 +42,7 @@ import com.jzg.commons.entity.quote.vo.orders.InsOrdersVo;
|
|
|
import com.jzg.commons.entity.rights.vo.InsOrderRightsInfoVo;
|
|
|
import com.jzg.commons.entity.vo.*;
|
|
|
import com.jzg.commons.exception.SystemException;
|
|
|
-import com.jzg.commons.util.AssertionUtils;
|
|
|
-import com.jzg.commons.util.DateTimeUtils;
|
|
|
-import com.jzg.commons.util.MinioUtils;
|
|
|
-import com.jzg.commons.util.StringUtils;
|
|
|
+import com.jzg.commons.util.*;
|
|
|
import com.jzg.commons.util.idgen.IdGenerate;
|
|
|
import com.jzg.quotation.commons.client.OrgClient;
|
|
|
import com.jzg.quotation.commons.client.PartnerDistributionClient;
|
|
|
@@ -1375,15 +1372,19 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
// 费用信息
|
|
|
InsFeeOrders insFeeOrders = insFeeOrdersMapper.selectOne(new LambdaQueryWrapper<InsFeeOrders>()
|
|
|
.eq(InsFeeOrders::getOrderNo, ordersNo));
|
|
|
- String systemCode = getSystemCode();
|
|
|
// 比例信息
|
|
|
if (insFeeOrders != null) {
|
|
|
- resultVo.setInsFeeOrders(new InsFeeOrdersVo(insFeeOrders));
|
|
|
- // modify by lipf, resultVo.setCostRatio(new PtlAgreementCostRatioVo(ptlAgreementCostTypeList, ptlAgreement)); 这一行代码被注视掉,那么上面两个查询也就没有必要调用了
|
|
|
- // List<PtlAgreementCostTypeVo> ptlAgreementCostTypeList = orgClient.queryByCostId(insFeeOrders.getCostId());
|
|
|
- //PtlAgreement ptlAgreement = orgClient.getByAgreementId(insOrdersVo.getInsOrders().getAgreementId());
|
|
|
- //resultVo.setCostRatio(new PtlAgreementCostRatioVo(ptlAgreementCostTypeList, ptlAgreement));
|
|
|
+ // modify by lipf,
|
|
|
+ //resultVo.setCostRatio(new PtlAgreementCostRatioVo(ptlAgreementCostTypeList, ptlAgreement)); 这一行代码被注视掉,那么上面两个查询也就没有必要调用了
|
|
|
+// List<PtlAgreementCostTypeVo> ptlAgreementCostTypeList = orgClient.queryByCostId(insFeeOrders.getCostId());
|
|
|
+// PtlAgreement ptlAgreement = orgClient.getByAgreementId(insOrdersVo.getInsOrders().getAgreementId());
|
|
|
+// resultVo.setCostRatio(new PtlAgreementCostRatioVo(ptlAgreementCostTypeList, ptlAgreement));
|
|
|
resultVo.setCostRatio(new PtlAgreementCostRatioVo(insFeeOrders));
|
|
|
+ // add by lipf, 手动计算留点比例的费用 2026年6月11日11:31:39
|
|
|
+ insFeeOrders.setJqKeepPointPremium(BigDecimalUtil.divide( BigDecimalUtil.multiply(insFeeOrders.getJqPremium(),resultVo.getCostRatio().getJqKeepPointRatio()),new BigDecimal(100)));
|
|
|
+ insFeeOrders.setSyKeepPointPremium(BigDecimalUtil.divide(BigDecimalUtil.multiply(insFeeOrders.getSyPremium(),resultVo.getCostRatio().getSyKeepPointRatio()),new BigDecimal(100)));
|
|
|
+ insFeeOrders.setJyKeepPointPremium(BigDecimalUtil.divide(BigDecimalUtil.multiply(insFeeOrders.getJyPremium(),resultVo.getCostRatio().getJyKeepPointRatio()),new BigDecimal(100)));
|
|
|
+ resultVo.setInsFeeOrders(new InsFeeOrdersVo(insFeeOrders));
|
|
|
}
|
|
|
//权益信息
|
|
|
InsOrderRightsInfoVo insOrderRightsInfoVo = insOrderRightsInfoService.queryByOrderNo(ordersNo);
|