Parcourir la source

综治机构app接口

codepeople il y a 1 an
Parent
commit
b6ddbbb1a2

+ 68 - 0
src/main/java/com/sooka/sponest/mobile/comprehensive/organizationAndInstitutioncontroller/APPComprehensiveTGrossCaseController.java

@@ -0,0 +1,68 @@
+package com.sooka.sponest.mobile.comprehensive.organizationAndInstitutioncontroller;
+
+import com.ruoyi.common.core.constant.HttpStatus;
+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.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.domain.ComprehensiveTGrossCase;
+import com.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.service.ComprehensiveTGrossCaseService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @author zhaozhan
+ * @date 2023/9/18
+ */
+@RestController
+@RequestMapping("/APPComprehensiveTGrossCaseController")
+public class APPComprehensiveTGrossCaseController {
+    @Resource
+    private ComprehensiveTGrossCaseService comprehensiveTGrossCaseService;
+
+    /**
+     * 查询重特大案(事)件列表
+     */
+    @GetMapping("/grossCase/list")
+    public AjaxResult list(ComprehensiveTGrossCase comprehensiveTGrossCase) {
+        PageDomain pageDomain = TableSupport.buildPageRequest();
+        Integer pageNum = pageDomain.getPageNum();
+        Integer pageSize = pageDomain.getPageSize();
+        TableDataInfo tableDataInfo = comprehensiveTGrossCaseService.list(pageNum, pageSize, comprehensiveTGrossCase.getEventName());
+        if(HttpStatus.SUCCESS == tableDataInfo.getCode()){
+            return AjaxResult.success(tableDataInfo.getRows());
+        }else{
+            return AjaxResult.error(tableDataInfo.getCode(),tableDataInfo.getMsg());
+        }
+    }
+    /**
+     * 获取重特大案(事)件详细信息
+     */
+    @GetMapping(value = "/grossCase/{id}")
+    public AjaxResult getInfo(String id) {
+        return comprehensiveTGrossCaseService.getInfo(id);
+    }
+    /**
+     * 新增重特大案(事)件
+     */
+    @PostMapping("/grossCase")
+    public AjaxResult add(@RequestBody String json) {
+        return comprehensiveTGrossCaseService.add(json);
+    }
+    /**
+     * 修改重特大案(事)件
+     */
+    @PostMapping("/grossCase/put")
+    public AjaxResult edit(@RequestBody String json) {
+        return comprehensiveTGrossCaseService.edit(json);
+    }
+    /**
+     * 删除重特大案(事)件
+     */
+    @GetMapping("/grossCase/del")
+    public AjaxResult remove(@RequestParam("id") List<String> id) {
+        return comprehensiveTGrossCaseService.remove(id.toArray(new String[0]));
+    }
+}

+ 68 - 0
src/main/java/com/sooka/sponest/mobile/comprehensive/organizationAndInstitutioncontroller/APPComprehensiveTPreventionOrganizationController.java

@@ -0,0 +1,68 @@
+package com.sooka.sponest.mobile.comprehensive.organizationAndInstitutioncontroller;
+
+import com.ruoyi.common.core.constant.HttpStatus;
+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.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.domain.ComprehensiveTPreventionOrganization;
+import com.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.service.ComprehensiveTPreventionOrganizationService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @author zhaozhan
+ * @date 2023/9/18
+ */
+@RestController
+@RequestMapping("/APPComprehensiveTPreventionOrganizationController")
+public class APPComprehensiveTPreventionOrganizationController {
+
+    @Resource
+    private ComprehensiveTPreventionOrganizationService comprehensiveTPreventionOrganizationService;
+    /**
+     * 查询群防群治组织列表
+     */
+    @GetMapping("/preventionOrganization/list")
+    public AjaxResult list(ComprehensiveTPreventionOrganization comprehensiveTPreventionOrganization) {
+        PageDomain pageDomain = TableSupport.buildPageRequest();
+        Integer pageNum = pageDomain.getPageNum();
+        Integer pageSize = pageDomain.getPageSize();
+        TableDataInfo tableDataInfo = comprehensiveTPreventionOrganizationService.list(pageNum, pageSize, comprehensiveTPreventionOrganization.getOrganizationName(), comprehensiveTPreventionOrganization.getOrganizationType(), comprehensiveTPreventionOrganization.getLevel(), comprehensiveTPreventionOrganization.getGuidanceDepartment(), comprehensiveTPreventionOrganization.getPersonnel(), comprehensiveTPreventionOrganization.getFunctions());
+        if(HttpStatus.SUCCESS == tableDataInfo.getCode()){
+            return AjaxResult.success(tableDataInfo.getRows());
+        }else{
+            return AjaxResult.error(tableDataInfo.getCode(),tableDataInfo.getMsg());
+        }
+    }
+    /**
+     * 获取群防群治组织详细信息
+     */
+    @GetMapping(value = "/preventionOrganization/{id}")
+    public AjaxResult getInfo(String id) {
+        return AjaxResult.success(comprehensiveTPreventionOrganizationService.getInfo(id));
+    }
+    /**
+     * 新增群防群治组织
+     */
+    @PostMapping("/preventionOrganization")
+    public AjaxResult add(@RequestBody String json) {
+        return comprehensiveTPreventionOrganizationService.add(json);
+    }
+    /**
+     * 修改群防群治组织
+     */
+    @PostMapping("/preventionOrganization/put")
+    public AjaxResult edit(@RequestBody String json) {
+        return comprehensiveTPreventionOrganizationService.edit(json);
+    }
+    /**
+     * 删除群防群治组织
+     */
+    @GetMapping("/preventionOrganization/del")
+    public AjaxResult remove(@RequestParam("id") List<String> id) {
+       return comprehensiveTPreventionOrganizationService.remove(id.toArray(new String[0]));
+    }
+}

+ 66 - 0
src/main/java/com/sooka/sponest/mobile/comprehensive/organizationAndInstitutioncontroller/APPComprehensiveTPreventionTeam.java

@@ -0,0 +1,66 @@
+package com.sooka.sponest.mobile.comprehensive.organizationAndInstitutioncontroller;
+
+import com.ruoyi.common.core.constant.HttpStatus;
+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.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.domain.ComprehensiveTPreventionTeam;
+import com.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.service.ComprehensiveTPreventionTeamService;
+import org.springframework.web.bind.annotation.*;
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @author zhaozhan
+ * @date 2023/9/18
+ */
+@RestController
+@RequestMapping("/APPComprehensiveTPreventionTeam")
+public class APPComprehensiveTPreventionTeam {
+    @Resource
+    private ComprehensiveTPreventionTeamService comprehensiveTPreventionTeamService;
+    /**
+     * 查询群防群治队伍列表
+     */
+    @GetMapping("/preventionTeam/list")
+    public AjaxResult list(ComprehensiveTPreventionTeam comprehensiveTPreventionTeam) {
+        PageDomain pageDomain = TableSupport.buildPageRequest();
+        Integer pageNum = pageDomain.getPageNum();
+        Integer pageSize = pageDomain.getPageSize();
+        TableDataInfo tableDataInfo = comprehensiveTPreventionTeamService.list(pageNum, pageSize, comprehensiveTPreventionTeam.getName());
+        if(HttpStatus.SUCCESS == tableDataInfo.getCode()){
+            return AjaxResult.success(tableDataInfo.getRows());
+        }else{
+            return AjaxResult.error(tableDataInfo.getCode(),tableDataInfo.getMsg());
+        }
+    }
+    /**
+     * 获取群防群治队伍详细信息
+     */
+    @GetMapping(value = "/preventionTeam/{id}")
+    public AjaxResult getInfo(String id) {
+        return comprehensiveTPreventionTeamService.getInfo(id);
+    }
+    /**
+     * 新增群防群治队伍
+     */
+    @PostMapping("/preventionTeam")
+    public AjaxResult add(@RequestBody String json) {
+        return comprehensiveTPreventionTeamService.add(json);
+    }
+    /**
+     * 修改群防群治队伍
+     */
+    @PostMapping("/preventionTeam/put")
+    public AjaxResult edit(@RequestBody String json) {
+        return comprehensiveTPreventionTeamService.edit(json);
+    }
+    /**
+     * 删除群防群治队伍
+     */
+    @GetMapping("/preventionTeam/del")
+    public AjaxResult remove(@RequestParam("id") List<String> id) {
+        return comprehensiveTPreventionTeamService.remove(id.toArray(new String[0]));
+    }
+}