whyclxw
3 天以前 12154b62b42df29173cdc54d7fd35d02d9a6422b
src/main/java/com/whyc/controller/WorksheetMainController.java
@@ -17,6 +17,7 @@
import org.springframework.web.multipart.MultipartFile;
import javax.mail.MessagingException;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@@ -127,14 +128,14 @@
    }
    @GetMapping("handlingListPage")
    @ApiOperation("查看分页-待处理")
    @ApiOperation(tags = "流程卡和SOP",value = "查看分页-待处理")
    public Response<PageInfo<WorksheetMain>> getHandlingListPage(@RequestParam int pageNum, @RequestParam int pageSize){
        DocUser user = ActionUtil.getUser();
        return service.getHandlingListPage(user,pageNum,pageSize);
    }
    @GetMapping("handledListPage")
    @ApiOperation("查看分页-已处理")
    @ApiOperation(tags = "流程卡和SOP",value = "查看分页-已处理")
    public Response<PageInfo<WorksheetMain>> getHandledListPage(@RequestParam int pageNum, @RequestParam int pageSize){
        DocUser user = ActionUtil.getUser();
        return service.getHandledListPage(user,pageNum,pageSize);
@@ -155,7 +156,7 @@
    }
    @GetMapping("myListPage")
    @ApiOperation("我的工单")
    @ApiOperation(tags = "流程卡和SOP",value = "我的工单")
    public Response<PageInfo<WorksheetMain>> getMyList(@RequestParam int pageNum,@RequestParam int pageSize){
        DocUser user = ActionUtil.getUser();
        return service.getMyList(pageNum,pageSize,user);
@@ -169,11 +170,25 @@
     * @throws MessagingException
     */
    @PostMapping("productProcedureAndSOP")
    @ApiOperation(value = "产品流程卡及SOP提交",notes = "type:1-流程卡,2-SOP")
    @ApiOperation(tags = "流程卡和SOP",value = "确认过程-产品流程卡及SOP提交",notes = "type:1-流程卡,2-SOP")
    public Response addProductProcedureAndSOP(@RequestBody ProcedureDocApproving approving) throws IOException, MessagingException {
        DocUser user = ActionUtil.getUser();
        return service.addProductProcedureAndSOP(approving,user);
    }
    @GetMapping("procedurePreview")
    @ApiOperation(tags = "流程卡和SOP",value = "确认过程-预览pdf",notes = "")
    public Response procedurePreview(HttpServletResponse response,@RequestParam int mainId) throws IOException {
        return service.procedurePreview(response,mainId);
    }
    /**
     * 询所有的工单,所有人可见
     */
    @PostMapping("getAllPage")
    @ApiOperation(value = "询所有的工单,所有人可见")
    public Response getAllPage(@RequestBody WorksheetMain param) {
        return service.getAllPage(param);
    }
}