|
@@ -35,7 +35,6 @@ import com.ydtech.modules.protocols.service.InsFeeOrderNewService;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
import com.ydtech.utils.StringUtils;
|
|
|
import com.ydtech.utils.idgen.IdGenerate;
|
|
import com.ydtech.utils.idgen.IdGenerate;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.aspectj.lang.JoinPoint;
|
|
import org.aspectj.lang.JoinPoint;
|
|
|
import org.aspectj.lang.annotation.AfterReturning;
|
|
import org.aspectj.lang.annotation.AfterReturning;
|
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
@@ -238,4 +237,30 @@ public class QuoteVerificationAspect {
|
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany);
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: hxl
|
|
|
|
|
+ * @Date: 2024/5/10 15:38
|
|
|
|
|
+ * @Description: 后置处理器更新子订单的险种类型
|
|
|
|
|
+ */
|
|
|
|
|
+ @AfterReturning(pointcut = "@annotation(com.ydtech.modules.order.aop.QuoteVerification)", returning = "result")
|
|
|
|
|
+ public void afterUpdatePruduct(HttpResult<QuoteRespVo> result) {
|
|
|
|
|
+ //计算费用因子
|
|
|
|
|
+ if(result.getCode() == 200) {
|
|
|
|
|
+ InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(result.getData().getCompanyId());
|
|
|
|
|
+ InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
|
|
|
|
|
+ //通过主订单的信息判断
|
|
|
|
|
+ List<RiskInfoVo> risks = insOrders.getRisk().toJavaList(RiskInfoVo.class);
|
|
|
|
|
+ List<KindInfoVo> kinds = insOrders.getKing().toJavaList(KindInfoVo.class);
|
|
|
|
|
+ //获取订单的险种信息
|
|
|
|
|
+ insOrders.productInformation(risks, kinds);
|
|
|
|
|
+ String product = insOrders.getProduct();
|
|
|
|
|
+ String productid = insOrders.getProductid();
|
|
|
|
|
+ insAreaCompany.setProduct(product);
|
|
|
|
|
+ insAreaCompany.setProductid(productid);
|
|
|
|
|
+ //更新子订单的险种信息
|
|
|
|
|
+ insAreaCompanyService.updateById(insAreaCompany);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|