|
|
@@ -41,10 +41,10 @@ public class JsydghxkController extends BaseController {
|
|
|
@PostMapping()
|
|
|
public R<Map> Add(@RequestBody JsydghxkVo jsydghxkVo) {
|
|
|
try {
|
|
|
-// Boolean b = jsydghxkService.isExit(jsydghxkVo.getProjectId());
|
|
|
-// if (b == true) {
|
|
|
-// return R.fail("此项目已添加建设用地规划许可");
|
|
|
-// }
|
|
|
+ Boolean b = jsydghxkService.isExit(jsydghxkVo.getProjectId());
|
|
|
+ if (b == true) {
|
|
|
+ return R.fail("此项目已添加建设用地规划许可");
|
|
|
+ }
|
|
|
String id = jsydghxkService.add(jsydghxkVo);
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("id", id);
|