事件名称优化

This commit is contained in:
wuweida 2022-07-08 14:07:24 +08:00
parent c4e2c861d3
commit 3cde39e4f9
1 changed files with 14 additions and 0 deletions

View File

@ -255,6 +255,13 @@ public class EventController {
}
Result success = Result.success(lists);
return success;
}else if (eventNewName.equals("渣土车未密闭")) {
List<EventDto> lists = eventMapper.selectByName("'道路积水事件'");
for (EventDto list : lists) {
list.setEventNewName("道路积水事件");
}
Result success = Result.success(lists);
return success;
}
return Result.error("请输入正确的事件类型");
}
@ -324,6 +331,13 @@ public class EventController {
}
Result success = Result.success(lists);
return success;
}else if (eventNewName.equals("渣土车未密闭")) {
List<EventDto> lists = eventMapper.selectByName("'道路积水事件'");
for (EventDto list : lists) {
list.setEventNewName("道路积水事件");
}
Result success = Result.success(lists);
return success;
}
return Result.error("请输入正确的事件类型");
}