wl
2022-11-15 84e920b9f7a80b05c2f9197ab9e64f1fba86a491
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
47
48
49
package com.ycl.controller.caseHandler;
 
 
import com.ycl.annotation.LogSave;
import com.ycl.api.CommonResult;
import com.ycl.bo.AdminUserDetails;
import com.ycl.controller.BaseController;
import com.ycl.service.caseHandler.IDisposeRecordService;
import com.ycl.vo.MyBacklogVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
 
/**
 * <p>
 * 处置流程记录 前端控制器
 * </p>
 *
 * @author wl
 * @since 2022-09-24
 */
@RestController
@RequestMapping("/my_backlog")
@Api(tags = "我的待办")
public class DisposeRecordController extends BaseController {
 
    @Autowired
    IDisposeRecordService iDisposeRecordService;
 
    /**
     * @return com.ycl.api.CommonResult
     * @Description query my task
     * @Param [caseId]
     **/
    @ApiOperation(value = "查询", response = MyBacklogVO.class)
    @GetMapping("/query")
    @LogSave(operationType = "我的待办", contain = "查询")
    public CommonResult searchMyTask(@RequestParam(required = false) String num) {
        AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
        return CommonResult.success(iDisposeRecordService.listMyTask(num, user.getUserId()));
    }
 
}