| | |
| | | package com.ycl.controller.caseHandler; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.bo.AdminUserDetails; |
| | | import com.ycl.controller.BaseController; |
| | |
| | | import com.ycl.vo.MyBacklogVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | 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; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | |
| | | /** |
| | |
| | | **/ |
| | | @ApiOperation(value = "查询", response = MyBacklogVO.class) |
| | | @GetMapping("/query") |
| | | public CommonResult searchMyTask(@RequestParam Integer caseId) { |
| | | @LogSave(operationType = "我的待办", contain = "查询") |
| | | public CommonResult searchMyTask(@RequestParam(required = false) String num, |
| | | @RequestParam Integer pageSize, |
| | | @RequestParam Integer current, |
| | | @RequestParam(required = false) Short source, |
| | | @RequestParam(required = false) Short type, |
| | | @RequestParam(required = false) Short time |
| | | ) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | return CommonResult.success(iDisposeRecordService.listMyTask(caseId, user.getUserId())); |
| | | return CommonResult.success(iDisposeRecordService.listMyTask(num, user.getUserId(), type, source, time, current, pageSize)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询", response = MyBacklogVO.class) |
| | | @GetMapping("/query/count") |
| | | @LogSave(operationType = "我的待办-总数", contain = "查询总数") |
| | | public CommonResult searchMyTaskCount(@RequestParam(required = false) String num, |
| | | @RequestParam(required = false) Short source, |
| | | @RequestParam(required = false) Short type, |
| | | @RequestParam(required = false) Short time |
| | | ) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | return CommonResult.success(iDisposeRecordService.listMyTaskCount(num, user.getUserId(), type, source, time)); |
| | | } |
| | | } |