Browse Source

数据中心

韩福成 1 year ago
parent
commit
9b5c4f7889

+ 71 - 0
src/main/java/com/sooka/sponest/mobile/comprehensive/comprehensiveconflictdefusecontroller/AppGridLeaderController.java

@@ -0,0 +1,71 @@
+package com.sooka.sponest.mobile.comprehensive.comprehensiveconflictdefusecontroller;
+
+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.TableSupport;
+import com.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.domain.ComprehensiveRfhGridLeader;
+import com.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.service.RemoteRfhGridLeaderService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * 网格长管理App
+ *
+ * @author hanfucheng
+ * @date 2023/9/6 14:57
+ */
+@RestController
+@RequestMapping("/AppOverseasPersonInfoController")
+public class AppGridLeaderController extends BaseController {
+
+    @Resource
+    RemoteRfhGridLeaderService remoteRfhGridLeaderService;
+
+    /**
+     * 查询网格长管理列表
+     */
+    @GetMapping("/leader/list")
+    public AjaxResult list(ComprehensiveRfhGridLeader comprehensiveRfhGridLeader) {
+        PageDomain pageDomain = TableSupport.buildPageRequest();
+        Integer pageNum = pageDomain.getPageNum();
+        Integer pageSize = pageDomain.getPageSize();
+        return AjaxResult.success(remoteRfhGridLeaderService.selectComprehensiveRfhGridLeaderList(pageNum, pageSize, comprehensiveRfhGridLeader.getUserName(), comprehensiveRfhGridLeader.getMemberName()).getRows());
+    }
+
+
+    /**
+     * 获取网格长管理详细信息
+     */
+    @GetMapping("/leader/edit")
+    public AjaxResult getInfo(String id) {
+        return remoteRfhGridLeaderService.selectComprehensiveRfhGridLeaderById(id);
+    }
+
+    /**
+     * 新增网格长管理
+     */
+    @PostMapping("/leader")
+    public AjaxResult add(@RequestBody String json) {
+        return remoteRfhGridLeaderService.insertComprehensiveRfhGridLeader(json);
+    }
+    /**
+     * 修改网格长管理
+     */
+    @PostMapping("/leader/put")
+    public AjaxResult edit(@RequestBody String json) {
+        return remoteRfhGridLeaderService.updateComprehensiveRfhGridLeader(json);
+    }
+
+    /**
+     * 删除网格长管理
+     */
+    @GetMapping("/leader/del")
+    public AjaxResult remove(@RequestParam("id") List<String> id) {
+        return remoteRfhGridLeaderService.deleteComprehensiveRfhGridLeaderByIds(id.toArray(new String[0]));
+    }
+
+
+}