farm模块-网格
This commit is contained in:
@@ -88,6 +88,14 @@ public class GridInfoController {
|
|||||||
return success(BeanUtils.toBean(pageResult, GridInfoRespVO.class));
|
return success(BeanUtils.toBean(pageResult, GridInfoRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getList")
|
||||||
|
@Operation(summary = "获得网格分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('farm:grid-info:query')")
|
||||||
|
public CommonResult<List<GridInfoRespVO>> getList(@Valid GridInfoPageReqVO pageReqVO) {
|
||||||
|
List<GridInfoDO> pageResult = gridInfoService.getList(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, GridInfoRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/export-excel")
|
@GetMapping("/export-excel")
|
||||||
@Operation(summary = "导出网格 Excel")
|
@Operation(summary = "导出网格 Excel")
|
||||||
@PreAuthorize("@ss.hasPermission('farm:grid-info:export')")
|
@PreAuthorize("@ss.hasPermission('farm:grid-info:export')")
|
||||||
|
|||||||
@@ -59,4 +59,5 @@ public interface GridInfoService {
|
|||||||
*/
|
*/
|
||||||
PageResult<GridInfoDO> getGridInfoPage(GridInfoPageReqVO pageReqVO);
|
PageResult<GridInfoDO> getGridInfoPage(GridInfoPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
List<GridInfoDO> getList(@Valid GridInfoPageReqVO pageReqVO);
|
||||||
}
|
}
|
||||||
@@ -7,6 +7,7 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.farm.controller.admin.gridinfo.vo.*;
|
import cn.iocoder.yudao.module.farm.controller.admin.gridinfo.vo.*;
|
||||||
import cn.iocoder.yudao.module.farm.dal.dataobject.gridinfo.GridInfoDO;
|
import cn.iocoder.yudao.module.farm.dal.dataobject.gridinfo.GridInfoDO;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
@@ -82,4 +83,9 @@ public class GridInfoServiceImpl implements GridInfoService {
|
|||||||
return gridInfoMapper.selectPage(pageReqVO);
|
return gridInfoMapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<GridInfoDO> getList(GridInfoPageReqVO pageReqVO) {
|
||||||
|
return gridInfoMapper.selectList(GridInfoDO::getPlotId, pageReqVO.getPlotId());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user