| | |
| | | package com.ycl.controller.caseHandler; |
| | | |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.dto.caseHandler.ChechParam; |
| | | import com.ycl.bo.AdminUserDetails; |
| | | import com.ycl.dto.caseHandler.CheckParam; |
| | | import com.ycl.service.caseHandler.ICheckHandleService; |
| | | 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.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 审核处理 前端控制器 |
| | | * 审核处理 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author mg |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/check_handle") |
| | | @Api(tags = "审核处理") |
| | | @Api(tags = "审核管理") |
| | | public class CheckHandleController { |
| | | |
| | | |
| | |
| | | @ApiOperation(value = "审核") |
| | | @RequestMapping(value = "/check", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | public CommonResult check(@Validated @RequestBody ChechParam chechParam) { |
| | | return CommonResult.success(iCheckHandleService.chech(chechParam)); |
| | | @LogSave(operationType = "审核管理", contain = "案件审核") |
| | | public CommonResult check(@Validated @RequestBody CheckParam checkParam) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | checkParam.setCurrentUser(user.getUserId()); |
| | | return CommonResult.success(iCheckHandleService.check(checkParam)); |
| | | } |
| | | |
| | | @ApiOperation(value = "审核") |
| | | @RequestMapping(value = "/check_batch", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | @LogSave(operationType = "审核管理", contain = "案件审核") |
| | | public CommonResult checkBatch(@RequestBody CheckParam checkParam) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | return CommonResult.success(iCheckHandleService.checkBatch(checkParam.getIds(), user.getUserId())); |
| | | } |
| | | } |