| | |
| | | |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.system.domain.ItemReviewUser; |
| | | import com.gkhy.exam.system.domain.UseSealApplyFlow; |
| | | import com.gkhy.exam.system.service.ItemReviewService; |
| | | import com.gkhy.exam.system.service.useSealApply.UseSealApplyService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Api(tags = "APP项目审批前端控制器") |
| | | @Api(tags = "APP审批前端控制器") |
| | | @RestController |
| | | @RequestMapping("/app/item/review") |
| | | public class AppItemReviewController { |
| | | |
| | | @Autowired |
| | | private ItemReviewService itemReviewService; |
| | | |
| | | @Autowired |
| | | private UseSealApplyService applyService; |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 用章待审批 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "待审批列表") |
| | | @GetMapping("apply/List") |
| | | public CommonResult applyList(@RequestParam("userId") Integer userId){ |
| | | return applyService.applyList(userId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 用章审批 |
| | | * @param useSealApplyFlow |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "审批") |
| | | @PostMapping("apply/check") |
| | | public CommonResult check(@RequestBody UseSealApplyFlow useSealApplyFlow){ |
| | | return applyService.approveUseSealApply(useSealApplyFlow); |
| | | } |
| | | |
| | | |
| | | } |