Commit 5b5f36b8 authored by hezhuozhi's avatar hezhuozhi

车用气瓶--使用登记业务添加【使用登记表】字段之后保存接口调整

parent a4cb62ac
......@@ -209,7 +209,14 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
CompanyBo company = reginParams.getCompany();
JgVehicleInformationDto vehicleInfoDto = JSON.parseObject(JSON.toJSONString(map), JgVehicleInformationDto.class);
//新增使用登记表字段
Optional.ofNullable(map.get("useRegistrationFormFile"))
.map(JSONObject::toJSONString)
.ifPresent(vehicleInfoDto::setUseRegistrationFormFile);
Map<String, Object> vehicle = commonService.getRegistrationFormUrl("vehicle", map);
if(Objects.nonNull(vehicle)){
vehicleInfoDto.setUseRegistrationFormUrl(String.valueOf(vehicle.get("useRegistrationFormUrl")));
}
List<Map<String, Object>> equipmentLists = (List<Map<String, Object>>) map.get("equipmentLists");
if (CollectionUtils.isEmpty(equipmentLists) ||
equipmentLists.stream().map(v -> (String) v.get("chargingMedium")).distinct().count() != 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment