| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.errand.domain.Report; |
| | | import com.ruoyi.errand.object.dto.app.AddRegisterReportDTO; |
| | | import com.ruoyi.errand.object.dto.app.AddReportDTO; |
| | | import com.ruoyi.errand.object.dto.sys.CourierPageListDTO; |
| | | import com.ruoyi.errand.object.dto.sys.ReportPageListDTO; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 未开通上报列表 权限设置 |
| | | * 未开通上报列表 |
| | | */ |
| | | @PostMapping("/list") |
| | | @PreAuthorize("@ss.hasPermi('system:community:list')") |
| | | @PreAuthorize("@ss.hasPermi('system:report:list')") |
| | | @ApiOperation(value = "未开通上报管理-列表", tags = "系统后台-小区管理") |
| | | public R<IPage<ReportPageListVO>> getReportList(@RequestBody @Valid ReportPageListDTO reportPageListDTO) { |
| | | return R.ok(reportService.getReportList(reportPageListDTO)); |
| | | } |
| | | |
| | | /** |
| | | * 处理 权限设置 |
| | | * 处理 |
| | | */ |
| | | @PutMapping("/dispose") |
| | | @PreAuthorize("@ss.hasPermi('system:community:list')") |
| | | @PreAuthorize("@ss.hasPermi('system:report:list')") |
| | | @ApiOperation(value = "未开通上报管理-处理", tags = "系统后台-小区管理") |
| | | public R<Void> dispose(@RequestParam("id")Integer id) { |
| | | reportService.dispose(id); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除 权限设置 |
| | | * 删除 |
| | | */ |
| | | @DeleteMapping("/delete") |
| | | @PreAuthorize("@ss.hasPermi('system:community:list')") |
| | | @PreAuthorize("@ss.hasPermi('system:report:list')") |
| | | @ApiOperation(value = "未开通上报管理-删除", tags = "系统后台-小区管理") |
| | | public R<Void> delete(@RequestParam("id")Integer id) { |
| | | reportService.delete(id); |