Commit 90564961 authored by 韩桐桐's avatar 韩桐桐

fix(jg):认领时,追加车辆VIN,检验单位

parent 71eb54b1
......@@ -521,6 +521,8 @@ public class ShCarServiceImpl extends BaseService<ShCar, ShCar, ShCarMapper> imp
IdxBizJgTechParamsVessel vessel = JSON.parseObject(JSON.toJSONString(equObj), IdxBizJgTechParamsVessel.class);
vessel.setRecord(equRecord);
vessel.setRecDate(date);
String VIN = ValidationUtil.isEmpty(paramMap.get("identificationCode")) ? "" : (String) paramMap.get("identificationCode");
vessel.setVin(VIN);
idxBizJgTechParamsVesselService.save(vessel);
// 检验检测信息
......@@ -620,6 +622,12 @@ public class ShCarServiceImpl extends BaseService<ShCar, ShCar, ShCarMapper> imp
vehicleInformation.setEstateUnitCreditCode(data[0]);
vehicleInformation.setEstateUnitName(data[1]);
}
// 检验单位
if (!StringUtils.isEmpty(vehicleInformation.getInspectUnitName())) {
String[] data = String.valueOf(paramMap.get("inspectUnitName")).split("_");
vehicleInformation.setInspectUnitCreditCode(data[0]);
vehicleInformation.setInspectUnitName(data[1]);
}
// 其他附件
if (!ObjectUtils.isEmpty(paramMap.get("otherAccessories"))) {
vehicleInformation.setOtherAccessories(JSONObject.toJSONString(paramMap.get("otherAccessories")));
......
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