فهرست منبع

手机端网格长管理接口修改

hanfucheng 1 سال پیش
والد
کامیت
a12203e344

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

@@ -1,82 +0,0 @@
-package com.sooka.sponest.mobile.comprehensive.comprehensiveconflictdefuseController;
-
-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.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("/AppGridLeaderController")
-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();
-        TableDataInfo tableDataInfo = remoteRfhGridLeaderService.selectComprehensiveRfhGridLeaderList(pageNum, pageSize, comprehensiveRfhGridLeader.getUserName(), comprehensiveRfhGridLeader.getMemberName());
-        if(HttpStatus.SUCCESS == tableDataInfo.getCode()){
-            return AjaxResult.success(tableDataInfo.getRows());
-        }else{
-            return AjaxResult.error(tableDataInfo.getCode(),tableDataInfo.getMsg());
-        }
-    }
-
-    @GetMapping("/leader/listAll")
-    public AjaxResult listAll(ComprehensiveRfhGridLeader comprehensiveRfhGridLeader) {
-      return remoteRfhGridLeaderService.listAll();
-    }
-
-    /**
-     * 获取网格长管理详细信息
-     */
-    @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]));
-    }
-
-
-}