This commit is contained in:
liao
2021-11-16 16:19:56 +08:00
parent 11baf7eda5
commit 7e16815b2d
3 changed files with 1 additions and 72 deletions
@@ -26,7 +26,7 @@ import java.util.List;
*/ */
@RestController @RestController
@Api(description = "|WgdCgfy|") @Api(description = "|WgdCgfy|")
@RequestMapping("/wgdCensusLeo/wgd-cgfy") @RequestMapping("api/wgdCensusLeo/wgd-cgfy")
public class WgdCgfyController extends BaseController<WgdCgfy> { public class WgdCgfyController extends BaseController<WgdCgfy> {
@Autowired @Autowired
@@ -1,70 +0,0 @@
package com.adc.da.slrs.wgdCensusZ.controller;
import com.adc.da.http.PageInfo;
import com.adc.da.http.ResponseMessage;
import com.adc.da.http.Result;
import com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo;
import com.adc.da.slrs.wgdCensusZ.service.IWgdCommiInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RestController;
import com.adc.da.base.web.BaseController;
import java.util.List;
/**
* <p>
* 委员信息数据统计 前端控制器
* </p>
*
* @author zcr
* @since 2021-11-12
*/
@RestController
@Api(description = "|WgdCommiInfo|")
@RequestMapping("api/wgdCensusZ/wgd-commi-info")
public class WgdCommiInfoController extends BaseController<WgdCommiInfo> {
@Autowired
IWgdCommiInfoService iWgdCommiInfoService;
@GetMapping("getAllCommiInfos")
public ResponseMessage<Object> getAllWgdCommiInfos(){//查询所有
return Result.success(iWgdCommiInfoService.getAllWgdCommiInfos());
}
@PostMapping("queryAllCommiInfos")
public ResponseMessage<Object> queryAllWgdCommiInfos(WgdCommiInfo wgdCommiInfo){//多条件查询
List<WgdCommiInfo> wgdCommiInfos = iWgdCommiInfoService.queryAllWgdCommiInfos(wgdCommiInfo);
PageInfo pageInfo = getPageInfo(wgdCommiInfo.getPager(),wgdCommiInfos);
return Result.success(pageInfo);
}
@GetMapping("getCommiInfoById")
public ResponseMessage<Object> getWgdCommiInfoById(String id) {//查询详情
return Result.success(iWgdCommiInfoService.getWgdCommiInfoById(id));
}
@PostMapping("modCommiInfo")
ResponseMessage<Object> updateWgdCommiInfo(WgdCommiInfo WgdCommiInfo) {//编辑
return Result.success(iWgdCommiInfoService.updateWgdCommiInfo(WgdCommiInfo));
}
@PostMapping("addCommiInfo")
ResponseMessage<Object> insertWgdCommiInfo(WgdCommiInfo WgdCommiInfo) {//插入
return Result.success(iWgdCommiInfoService.insertWgdCommiInfo(WgdCommiInfo));
}
@GetMapping("delCommiInfo")
ResponseMessage<Object> deleteWgdCommiInfo(String id){//删除
return Result.success(iWgdCommiInfoService.deleteWgdCommiInfo(id));
}
@GetMapping("delCommiInfos")
ResponseMessage<Object> deleteWgdCommiInfos(String ids){//批量删除
return Result.success(iWgdCommiInfoService.deleteWgdCommiInfos(ids));
}
}
@@ -25,7 +25,6 @@ public class WgdCommiInfoServiceImpl extends ServiceImpl<WgdCommiInfoDao, WgdCom
@Autowired @Autowired
WgdCommiInfoDao wgdCommiInfoDao; WgdCommiInfoDao wgdCommiInfoDao;
@Override @Override
public List<WgdCommiInfo> getAllWgdCommiInfos() { public List<WgdCommiInfo> getAllWgdCommiInfos() {
return wgdCommiInfoDao.selectAll(); return wgdCommiInfoDao.selectAll();