|
@@ -0,0 +1,76 @@
|
|
|
|
+package com.sooka.sponest.mobile.comprehensive.organizationAndInstitutioncontroller;
|
|
|
|
+
|
|
|
|
+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.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.domain.ComprehensiveLeadership;
|
|
|
|
+import com.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.service.RemoteLeadershipService;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
+
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 综治领导责任制
|
|
|
|
+ *
|
|
|
|
+ * @author hanfucheng
|
|
|
|
+ * @date 2023/9/21 13:14
|
|
|
|
+ */
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping("/AppLeadershipController")
|
|
|
|
+public class AppLeadershipController extends BaseController {
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ RemoteLeadershipService remoteLeadershipService;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询综治领导责任制列表
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/comprehensiveLeadership/list")
|
|
|
|
+ public AjaxResult list(ComprehensiveLeadership comprehensiveLeadership) {
|
|
|
|
+ PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
|
|
+ Integer pageNum = pageDomain.getPageNum();
|
|
|
|
+ Integer pageSize = pageDomain.getPageSize();
|
|
|
|
+ TableDataInfo tableDataInfo = remoteLeadershipService.selectComprehensiveLeadershipList(pageNum, pageSize,comprehensiveLeadership.getImplementPrincipal());
|
|
|
|
+ if(HttpStatus.SUCCESS == tableDataInfo.getCode()){
|
|
|
|
+ return AjaxResult.success(tableDataInfo.getRows());
|
|
|
|
+ }else{
|
|
|
|
+ return AjaxResult.error(tableDataInfo.getCode(),tableDataInfo.getMsg());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取综治领导责任制详细信息
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/comprehensiveLeadership/edit")
|
|
|
|
+ public AjaxResult getInfo(String id) {
|
|
|
|
+ return AjaxResult.success(remoteLeadershipService.selectComprehensiveLeadershipById(id));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 新增综治领导责任制
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/comprehensiveLeadership")
|
|
|
|
+ public AjaxResult add(@RequestBody String json) {
|
|
|
|
+ return remoteLeadershipService.insertComprehensiveLeadership(json);
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
|
|
+ * 修改综治领导责任制
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/comprehensiveLeadership/put")
|
|
|
|
+ public AjaxResult edit(@RequestBody String json) {
|
|
|
|
+ return remoteLeadershipService.updateComprehensiveLeadership(json);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 删除综治领导责任制
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/comprehensiveLeadership/del")
|
|
|
|
+ public AjaxResult remove(@RequestParam("id") List<String> id) {
|
|
|
|
+ return remoteLeadershipService.deleteComprehensiveLeadershipByIds(id.toArray(new String[0]));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|