|
|
@@ -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);
|
|
|
@@ -63,7 +63,7 @@ public class JsydghxkController extends BaseController {
|
|
|
@GetMapping("/{projectId}")
|
|
|
public R<JsydghxkRes> Get(@PathVariable String projectId) {
|
|
|
try {
|
|
|
- return R.ok(jsydghxkService.get(projectId));
|
|
|
+ return R.ok(jsydghxkService.getAll(projectId));
|
|
|
} catch (Exception e) {
|
|
|
return R.fail(e.getMessage());
|
|
|
}
|