Commit d2e7f0c6 authored by chenzhao's avatar chenzhao

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

parents d05625c3 5b5f36b8
...@@ -209,7 +209,14 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -209,7 +209,14 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
CompanyBo company = reginParams.getCompany(); CompanyBo company = reginParams.getCompany();
JgVehicleInformationDto vehicleInfoDto = JSON.parseObject(JSON.toJSONString(map), JgVehicleInformationDto.class); 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"); List<Map<String, Object>> equipmentLists = (List<Map<String, Object>>) map.get("equipmentLists");
if (CollectionUtils.isEmpty(equipmentLists) || if (CollectionUtils.isEmpty(equipmentLists) ||
equipmentLists.stream().map(v -> (String) v.get("chargingMedium")).distinct().count() != 1) { 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