瀏覽代碼

提交通过订单id查询订单信息

hxl13994548489 2 年之前
父節點
當前提交
07f62f2ce5
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/main/java/com/ydtech/modules/protocol/service/impl/PtlTaxSourceServiceImpl.java

+ 8 - 0
src/main/java/com/ydtech/modules/protocol/service/impl/PtlTaxSourceServiceImpl.java

@@ -10,7 +10,9 @@ import com.ydtech.modules.base.controller.BaseController;
 import com.ydtech.modules.ins.model.vo.KindInfoVo;
 import com.ydtech.modules.ins.model.vo.RiskInfoVo;
 import com.ydtech.modules.order.entity.BasePageResult;
+import com.ydtech.modules.order.entity.InsOrders;
 import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
+import com.ydtech.modules.order.service.InsOrdersService;
 import com.ydtech.modules.protocol.constants.DispatchTypeConstants;
 import com.ydtech.modules.protocol.constants.TaxSourceStatusConstants;
 import com.ydtech.modules.protocol.dao.PtlTaxSourceNewMapper;
@@ -78,6 +80,9 @@ public class PtlTaxSourceServiceImpl extends ServiceImpl<PtlTaxSourceNewMapper,
     @Autowired
     private PtlTaxSourceNewRecordService ptlTaxSourceNewRecordService;
 
+    @Autowired
+    private InsOrdersService insOrdersService;
+
     /**
      *  @version
      *  @author: hxl
@@ -506,6 +511,9 @@ public class PtlTaxSourceServiceImpl extends ServiceImpl<PtlTaxSourceNewMapper,
      */
     @Override
     public String getAgreementId(String deptId, String userId, String companyId, BaseQuoteInfoVo quoteInfo, String riskCode,String orderno) {
+        //通过订单号获取报价信息 防止从redis中获取的数据不对
+        InsOrders insOrders = insOrdersService.getById(orderno);
+        quoteInfo = new BaseQuoteInfoVo(insOrders);
         List<PtlAgreementDispatchRulesAttr> dispatchRulesAttrList = ptlAgreementDispatchRulesAttrService.getDispatchRulesAttrList();
         String resultId = "";
         //查找配置的默认项,匹配不到赋值默认的协议Id