|
@@ -0,0 +1,82 @@
|
|
|
|
+package com.sooka.sponest.mobile.comprehensive.RoadCasecontroller;
|
|
|
|
+
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import com.ruoyi.common.core.constant.HttpStatus;
|
|
|
|
+import com.ruoyi.common.core.web.controller.BaseController;
|
|
|
|
+import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
|
+import com.ruoyi.common.core.web.page.PageDomain;
|
|
|
|
+import com.ruoyi.common.core.web.page.TableDataInfo;
|
|
|
|
+import com.ruoyi.common.core.web.page.TableSupport;
|
|
|
|
+import com.ruoyi.common.security.utils.DictUtils;
|
|
|
|
+import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.domain.OtherPersonInfo;
|
|
|
|
+import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.domain.PersonBasicInfo;
|
|
|
|
+import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.service.RemotePersonBasicInfoService;
|
|
|
|
+import com.sooka.sponest.comprehensive.api.comprehensiveRoadCase.domain.ComprehensiveRoadCase;
|
|
|
|
+import com.sooka.sponest.comprehensive.api.comprehensiveRoadCase.service.RemoteRoadCaseService;
|
|
|
|
+import com.sooka.sponest.data.api.digitalenvironment.domain.EnvironmentBiggas;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
+
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
+import java.util.*;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @Author LG
|
|
|
|
+ * @Date 2023/9/8 - 9:38
|
|
|
|
+ */
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping("/AppRoadCaseController")
|
|
|
|
+public class AppRoadCaseController extends BaseController {
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ RemoteRoadCaseService remoteRoadCaseService;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询涉及线、路案(事)件列表
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/RoadCase/list")
|
|
|
|
+ public AjaxResult list(ComprehensiveRoadCase comprehensiveRoadcase) {
|
|
|
|
+ PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
|
|
+ Integer pageNum = pageDomain.getPageNum();
|
|
|
|
+ Integer pageSize = pageDomain.getPageSize();
|
|
|
|
+ TableDataInfo tableDataInfo = remoteRoadCaseService.selectComprehensiveRoadCaseList(pageNum, pageSize, comprehensiveRoadcase.getCaseName());
|
|
|
|
+ if (HttpStatus.SUCCESS == tableDataInfo.getCode()) {
|
|
|
|
+ return AjaxResult.success(tableDataInfo.getRows());
|
|
|
|
+ } else {
|
|
|
|
+ return AjaxResult.error(tableDataInfo.getCode(), tableDataInfo.getMsg());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取涉及线、路案(事)件列表详细信息
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/RoadCase/edit")
|
|
|
|
+ public AjaxResult getInfo(String id) {
|
|
|
|
+ return remoteRoadCaseService.selectComprehensiveRoadCaseById(id);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 新增涉及线、路案(事)件列表
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/RoadCase")
|
|
|
|
+ public AjaxResult add(@RequestBody String json) {
|
|
|
|
+ return remoteRoadCaseService.insertComprehensiveRoadCase(json);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 修改涉及线、路案(事)件列表
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/RoadCase/put")
|
|
|
|
+ public AjaxResult edit(@RequestBody String json) {
|
|
|
|
+ return remoteRoadCaseService.updateComprehensiveRoadCase(json);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 删除涉及线、路案(事)件列表
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/RoadCase/del")
|
|
|
|
+ public AjaxResult remove(@RequestParam("id") List<String> id) {
|
|
|
|
+ return remoteRoadCaseService.deleteComprehensiveRoadCaseByIds(id.toArray(new String[0]));
|
|
|
|
+ }
|
|
|
|
+}
|