| | |
| | | package com.ycl.controller.caseHandler; |
| | | |
| | | |
| | | 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; |
| | | |
| | | |
| | |
| | | * @since 2022-09-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/dispose-record") |
| | | @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") |
| | | public CommonResult searchMyTask(@RequestParam(required = false) String num) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | return CommonResult.success(iDisposeRecordService.listMyTask(num, user.getUserId())); |
| | | } |
| | | |
| | | } |