Przeglądaj źródła

Merge remote-tracking branch 'origin/test' into test

785834757 2 lat temu
rodzic
commit
9a4c448b60

+ 0 - 22
src/main/java/com/ydtech/modules/order/aop/aspect/QuoteVerificationAspect.java

@@ -222,26 +222,4 @@ public class QuoteVerificationAspect {
         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());
-            //通过主订单的信息判断
-            String product = insOrders.getProduct();
-            String productid = insOrders.getProductid();
-            insAreaCompany.setProduct(product);
-            insAreaCompany.setProductid(productid);
-            //更新子订单的险种信息
-            insAreaCompanyService.updateById(insAreaCompany);
-        }
-    }
 }