瀏覽代碼

诚泰特约修改

wks 1 年之前
父節點
當前提交
3e4611386f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/ydtech/modules/order/service/impl/ChengTaiOrderApiServiceImpl.java

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

@@ -378,7 +378,7 @@ public class ChengTaiOrderApiServiceImpl implements ChengTaiOrderApiService {
         List<InsAreaCompanyAccidentalDriving> insAreaCompanyAccidentalDrivings = new ArrayList<>();
         accident.forEach(accidentalDriving -> {
             InsAreaCompanyAccidentalDriving insAreaCompanyAccidentalDriving = new InsAreaCompanyAccidentalDriving();
-            insAreaCompanyAccidentalDriving.setCompanyId(insAreaCompany.getCompanyId());
+            insAreaCompanyAccidentalDriving.setCompanyId(insAreaCompany.getId());
             insAreaCompanyAccidentalDriving.setQuantity(Integer.parseInt(accidentalDriving.getQuantity()));
             insAreaCompanyAccidentalDriving.setRideRiskCode(accidentalDriving.getProjectCode());
             insAreaCompanyAccidentalDriving.setRideRiskName(accidentalDriving.getProjectName());
@@ -594,7 +594,7 @@ public class ChengTaiOrderApiServiceImpl implements ChengTaiOrderApiService {
         InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(companyId);
         InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
         LambdaQueryWrapper<InsAreaCompanyRelatedInfo> infoLambdaQueryWrapper = new LambdaQueryWrapper<>();
-        infoLambdaQueryWrapper.eq(InsAreaCompanyRelatedInfo::getCompanyId, insAreaCompany.getCompanyId());
+        infoLambdaQueryWrapper.eq(InsAreaCompanyRelatedInfo::getCompanyId, insAreaCompany.getId());
         List<InsAreaCompanyRelatedInfo> infoList = insAreaCompanyRelatedInfoService.list(infoLambdaQueryWrapper);
         // 1 通过 协议id获取配置实体
         PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());