| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.WorksheetLink; |
| | | import com.whyc.service.WorksheetLinkService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @RequestMapping("worksheetLink") |
| | | @Api(tags = "工单流程") |
| | | @Api(tags = "工作流") |
| | | public class WorksheetLinkController { |
| | | |
| | | @Autowired |
| | | private WorksheetLinkService service; |
| | | |
| | | /** |
| | | * @param link linkStatus:1通过,2驳回,驳回到员工 |
| | | * @return |
| | | */ |
| | | @PostMapping("audit") |
| | | @ApiOperation(value = "经理审核",notes = "传参:int id,int linkStatus,String dealReason,int mainId,int nextUser;" + |
| | | "linkStatus:1通过,2驳回;dealReason:审核意见") |
| | | public Response audit(@RequestBody WorksheetLink link){ |
| | | service.audit(link); |
| | | return new Response().setII(1,"审核完成"); |
| | | } |
| | | |
| | | |
| | | @PostMapping("approve") |
| | | @ApiOperation(value = "总经理审批",notes = "传参:int id,int linkStatus,String dealReason,int mainId;" + |
| | | "linkStatus:1通过,2驳回,驳回到员工,通知经理;dealReason:审核意见") |
| | | public Response approve(@RequestBody WorksheetLink link){ |
| | | service.approve(link); |
| | | return new Response().setII(1,"审批完成"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |