| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.grid.excel.GridExcel; |
| | | import org.springblade.modules.grid.excel.GridImporter; |
| | | import org.springblade.modules.grid.excel.GridmanExcel; |
| | | import org.springblade.modules.grid.excel.GridmanImporter; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | public R<GridmanVO> detail(GridmanEntity gridman) { |
| | | GridmanEntity detail = gridmanService.getOne(Condition.getQueryWrapper(gridman)); |
| | | return R.data(GridmanWrapper.build().entityVO(detail)); |
| | | } |
| | | |
| | | /** |
| | | * 网格员表 自定义详情 |
| | | */ |
| | | @GetMapping("/getDetail") |
| | | public R<GridmanVO> getDetail(GridmanEntity gridman) { |
| | | return R.data(gridmanService.getDetail(gridman)); |
| | | } |
| | | /** |
| | | * 网格员表 分页 |
| | |
| | | return R.success("操作成功"); |
| | | } |
| | | |
| | | /** |
| | | * 网格员查询 |
| | | * @param gridman |
| | | * @return |
| | | */ |
| | | @GetMapping("/getGridmanList") |
| | | public R getGridmanList(GridmanVO gridman) { |
| | | return R.data(gridmanService.getGridmanList(gridman)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * |
| | | * @param code |
| | | * @param roleType |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "网格员和物业人公司统计", notes = "") |
| | | @GetMapping("/getGridStatistics") |
| | | public R getGridStatistics(@RequestParam("code") String code, @RequestParam("roleType") String roleType) { |
| | | return R.data(gridmanService.getGridStatistics(code,roleType)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |