车辆修改

This commit is contained in:
pengjie 2024-07-12 18:31:31 +08:00
parent 0728d04cca
commit ad7431583a

View File

@ -220,7 +220,7 @@ public class CarInfoController {
queryWrapper.lambda().eq(CarInfo::getProjectSn, carInfo.getProjectSn())
.eq(CarInfo::getCarNumber, carInfo.getCarNumber());
CarInfo old = carInfoService.getOne(queryWrapper);
if (Objects.equals(old.getIsBlack(), 1)) {
if (old != null && Objects.equals(old.getIsBlack(), 1)) {
List<String> collect = getUserIds(carInfo.getProjectSn(), carInfo.getUserIds());
for (String s : collect) {
noticeService.addUserNotice(Long.valueOf(s), StrUtil.format("【({})车辆已被拉黑,无法再进行新增】", carInfo.getCarNumber()),