| | |
| | | import com.panzhihua.sangeshenbian.model.query.ComplaintQuery; |
| | | import com.panzhihua.sangeshenbian.model.vo.ComplaintVO; |
| | | import com.panzhihua.sangeshenbian.service.IComplaintService; |
| | | import com.panzhihua.sangeshenbian.warpper.MgtComplaintQuery; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | |
| | | @ApiOperation("诉求列表") |
| | | @PostMapping("/page") |
| | | public R<Page<ComplaintVO>> pageList(@RequestBody ComplaintQuery query) { |
| | | public R<Page<ComplaintVO>> pageList(@RequestBody MgtComplaintQuery query) { |
| | | SystemUserVo loginUserInfo = getLoginUserInfoSanGeShenBian(); |
| | | return R.ok(complaintService.pageList(query,loginUserInfo)); |
| | | } |
| | |
| | | public R<ComplaintVO> detail(@ApiParam(name = "id", value = "诉求id", required = true) @PathVariable("id") Long id) { |
| | | return R.ok(complaintService.getDetailMgt(id)); |
| | | } |
| | | @ApiOperation("诉求列表") |
| | | @ApiOperation("导出") |
| | | @PostMapping("/export") |
| | | public void export(@RequestBody ComplaintQuery query) { |
| | | public void export(@RequestBody MgtComplaintQuery query) { |
| | | SystemUserVo loginUserInfo = getLoginUserInfoSanGeShenBian(); |
| | | try { |
| | | complaintService.export(query,loginUserInfo); |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | @ApiOperation("社区问题单") |
| | | @GetMapping("/community-problem/{id}") |
| | | public void communityProblem(@ApiParam(name = "id", value = "诉求id", required = true) @PathVariable("id") Long id) { |
| | | |
| | | @ApiOperation("社区问题单、问题处理单、协调通知单 下载") |
| | | @GetMapping("/download-file/{id}/{type}") |
| | | public void communityProblem(@ApiParam(name = "id", value = "诉求id", required = true) @PathVariable("id") Long id, |
| | | @ApiParam(name = "type", value = "类型:1:社区问题单 2:问题处理单 3:协调通知单", required = true) @PathVariable("type") Integer type) { |
| | | try { |
| | | complaintService.communityProblem(id); |
| | | complaintService.downloadFile(id, type); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | @ApiOperation("问题处理单") |
| | | @GetMapping("/problem-handle/{id}") |
| | | public void problemHandle(@ApiParam(name = "id", value = "诉求id", required = true) @PathVariable("id") Long id) { |
| | | complaintService.problemHandle(id); |
| | | } |
| | | @ApiOperation("协调通知单") |
| | | @GetMapping("/coordination-notice/{id}") |
| | | public void coordinationNotice(@ApiParam(name = "id", value = "诉求id", required = true) @PathVariable("id") Long id) { |
| | | complaintService.coordinationNotice(id); |
| | | } |
| | | } |