|
|
@@ -28,10 +28,7 @@ import com.ydtech.modules.order.entity.BasePageResult;
|
|
|
import com.ydtech.modules.order.entity.InsAreaCompany;
|
|
|
import com.ydtech.modules.order.entity.InsOrders;
|
|
|
import com.ydtech.modules.order.entity.bo.UnderwritingRulesBo;
|
|
|
-import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
-import com.ydtech.modules.order.entity.vo.OrderQueryVo;
|
|
|
-import com.ydtech.modules.order.entity.vo.OrderVo;
|
|
|
-import com.ydtech.modules.order.entity.vo.VerifyOrdersVo;
|
|
|
+import com.ydtech.modules.order.entity.vo.*;
|
|
|
import com.ydtech.modules.order.entity.vo.ya.YaExtendInfoDto;
|
|
|
import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
|
import com.ydtech.modules.order.service.InsOrdersService;
|
|
|
@@ -212,35 +209,44 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
@Override
|
|
|
public HttpResult<OrderVo> getByCompanyId(@NotBlank(message = "子订单不能为空") String companyId) {
|
|
|
OrderVo orderAndAreaCompany = baseMapper.getOrderAndAreaCompany(companyId);
|
|
|
+
|
|
|
+ YaExtendInfoDto yaExtendInfoDto = new YaExtendInfoDto();
|
|
|
// 永安财险
|
|
|
if (InsuranceEnum.YAIC.getCode().equals(orderAndAreaCompany.getCompanyId().substring(0, 4))) {
|
|
|
JSONObject reptxt = orderAndAreaCompany.getReptxt();
|
|
|
ResponseDataC2 responseDataC2 = JSON.toJavaObject(reptxt, ResponseDataC2.class);
|
|
|
List<ExtendInfoDto> extendInfoDtos = responseDataC2.getResponseBody().getExtendInfo();
|
|
|
Map<String, String> stringStringMap = extendInfoDtos.stream().collect(LinkedHashMap::new, (m, v) -> m.put(v.getKey(), v.getValue()), LinkedHashMap::putAll);
|
|
|
- YaExtendInfoDto yaExtendInfoDto = MapToYaExtendInfoDto.INSTANCE.mapToYaExtendInfoDto(stringStringMap);
|
|
|
+ yaExtendInfoDto = MapToYaExtendInfoDto.INSTANCE.mapToYaExtendInfoDto(stringStringMap);
|
|
|
orderAndAreaCompany.setExtendInfo(yaExtendInfoDto);
|
|
|
- }else
|
|
|
- //永诚
|
|
|
- if (InsuranceEnum.AICS.getCode().equals(orderAndAreaCompany.getCompanyId().substring(0, 4))) {
|
|
|
-
|
|
|
- InsAreaCompany iac = insAreaCompanyService.getById(companyId);
|
|
|
- orderAndAreaCompany.setJqstartdate(iac.getJqStartDate());
|
|
|
- orderAndAreaCompany.setJqenddate(iac.getJqEndDate());
|
|
|
-
|
|
|
- orderAndAreaCompany.setSystartdate(iac.getSyStartDate());
|
|
|
- orderAndAreaCompany.setSyenddate(iac.getSyEndDate());
|
|
|
-
|
|
|
- }
|
|
|
- else {
|
|
|
- orderAndAreaCompany.setExtendInfo(new YaExtendInfoDto());
|
|
|
}
|
|
|
+// else
|
|
|
+// //永诚
|
|
|
+// if (InsuranceEnum.AICS.getCode().equals(orderAndAreaCompany.getCompanyId().substring(0, 4))) {
|
|
|
+//
|
|
|
+// InsAreaCompany iac = insAreaCompanyService.getById(companyId);
|
|
|
+// orderAndAreaCompany.setJqstartdate(iac.getJqStartDate());
|
|
|
+// orderAndAreaCompany.setJqenddate(iac.getJqEndDate());
|
|
|
+//
|
|
|
+// orderAndAreaCompany.setSystartdate(iac.getSyStartDate());
|
|
|
+// orderAndAreaCompany.setSyenddate(iac.getSyEndDate());
|
|
|
+//
|
|
|
+//
|
|
|
+// }
|
|
|
+
|
|
|
+ InsAreaCompany iac = insAreaCompanyService.getById(companyId);
|
|
|
+ //保费因素
|
|
|
+ yaExtendInfoDto.setAccidentInfoStr(iac.getAccidentStrInfo());
|
|
|
+ yaExtendInfoDto.setScore(iac.getScore());
|
|
|
+ orderAndAreaCompany.setExtendInfo(yaExtendInfoDto);
|
|
|
+
|
|
|
orderAndAreaCompany.setReptxt(null);
|
|
|
|
|
|
//add 解决返回null页面错误 lig 2023-09-14
|
|
|
- if(null == orderAndAreaCompany.getExtendInfo()) orderAndAreaCompany.setExtendInfo("");
|
|
|
- if(null == orderAndAreaCompany.getCrossInsurance()) orderAndAreaCompany.setCrossInsurance(JSON.parseArray("[]"));
|
|
|
- if(null == orderAndAreaCompany.getKindinfo()) orderAndAreaCompany.setKindinfo(JSON.parseArray("[]"));
|
|
|
+ if (null == orderAndAreaCompany.getExtendInfo()) orderAndAreaCompany.setExtendInfo("");
|
|
|
+ if (null == orderAndAreaCompany.getCrossInsurance())
|
|
|
+ orderAndAreaCompany.setCrossInsurance(JSON.parseArray("[]"));
|
|
|
+ if (null == orderAndAreaCompany.getKindinfo()) orderAndAreaCompany.setKindinfo(JSON.parseArray("[]"));
|
|
|
return HttpResult.ok("success", orderAndAreaCompany);
|
|
|
}
|
|
|
|