车辆调整

This commit is contained in:
pengjie 2024-05-27 14:00:54 +08:00
parent 7f5e9aaa1e
commit 374457baf5
2 changed files with 4 additions and 2 deletions

View File

@ -77,6 +77,7 @@ public class CarInfoController {
@ApiOperation(value = "添加车辆黑白名单管理信息", notes = "添加车辆黑白名单管理信息", httpMethod = "POST")
@PostMapping(value = "/add")
public Result add(@RequestBody CarInfo carInfo) {
carInfo.setCreateBy(SecurityUtils.getUser().getUserId());
return carInfoService.addCarInfo(carInfo);
}
@ -172,6 +173,9 @@ public class CarInfoController {
otherProveList.add(teMap);
}
}
if (userIds != null && userIds.size() > 0) {
carInfo.setUserIds(userIds);
}
carInfo.setCarPhotosUrl(JSON.toJSONString(carPhotosUrls));
carInfo.setJsz(JSON.toJSONString(jszList));
carInfo.setXsz(JSON.toJSONString(xszList));
@ -179,7 +183,6 @@ public class CarInfoController {
carInfo.setOtherProve(JSON.toJSONString(otherProveList));
carInfo.setProjectSn(map.get("projectSn").toString());
carInfo.setIsBlack(MapUtils.getInteger(map, "isBlack"));
carInfo.setUserIds(userIds);
Object outsideDriverIdCard = map.get("outsideDriverIdCard");
if (outsideDriverIdCard != null) {
carInfo.setOutsideDriverIdCard(outsideDriverIdCard.toString());

View File

@ -111,7 +111,6 @@ public class CarInfoServiceImpl extends ServiceImpl<CarInfoMapper, CarInfo> impl
return Result.ok("车辆已存在,预约时间已覆盖更新");
}
} else {
c.setCreateBy(SecurityUtils.getUser().getUserId());
carInfoMapper.insert(c);
//同步海康
asyncHikvision.addCarInfoForHikvision(c);