mitao
2025-05-07 4e0f9ae911742c41ef2b87647afdfd7df54d3e18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.panzhihua.sangeshenbian.controller;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.sangeshenbian.model.query.SuperviseQuery;
import com.panzhihua.sangeshenbian.model.vo.AppComplaintRejectVO;
import com.panzhihua.sangeshenbian.model.vo.ComplaintVO;
import com.panzhihua.sangeshenbian.service.impl.SuperviseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Lazy;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.validation.Valid;
 
/**
 * @author mitao
 * @date 2025/5/7
 */
@Api(tags = {"小程序-诉求监督"})
@Validated
@RestController
@RequestMapping("/applet/supervise")
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
public class SuperviseController extends BaseController {
    private final SuperviseService superviseService;
    @PostMapping("/processing-record-page")
    @ApiOperation("诉求监督-处理记录")
    public R<Page<ComplaintVO>> queryProcessingRecordPage(@RequestBody SuperviseQuery query) {
        LoginUserInfoVO loginUserInfo = super.getLoginUserInfo();
        return R.ok(superviseService.queryProcessingRecordPage(query,loginUserInfo));
    }
    @PostMapping("/reject-record-page")
    @ApiOperation("诉求监督-问题驳回池")
    public R<Page<AppComplaintRejectVO>> queryRejectRecordPage(@RequestBody SuperviseQuery query) {
        LoginUserInfoVO loginUserInfo = super.getLoginUserInfo();
        return R.ok(superviseService.queryRejectRecordPage(query,loginUserInfo));
    }
}