事件名称优化
This commit is contained in:
parent
c4e2c861d3
commit
3cde39e4f9
|
@ -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("请输入正确的事件类型");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue