Commit 285fb095 by 杨林龙

1.23.0 开发新E盾“POI信息”支持人工录入

1 parent ce42ee32
...@@ -82,7 +82,7 @@ public class PoiFenceController extends AbstractController { ...@@ -82,7 +82,7 @@ public class PoiFenceController extends AbstractController {
public R checkPoiName(@RequestParam String poiName) { public R checkPoiName(@RequestParam String poiName) {
PoiFence poiFence = poiFenceService.checkPoiName(poiName); PoiFence poiFence = poiFenceService.checkPoiName(poiName);
if (Objects.nonNull(poiFence)) { if (Objects.nonNull(poiFence)) {
return R.error().data("该POI名称已存在,请重新输入!"); throw new AdminException("该POI名称已存在,请重新输入!");
} }
return R.ok(); return R.ok();
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!