| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.config.EnumWorksheetType; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.WorksheetMainDTO; |
| | | import com.whyc.dto.WorksheetMainDTO2; |
| | | import com.whyc.pojo.DocUser; |
| | | import com.whyc.pojo.ProcedureDocApproving; |
| | | import com.whyc.pojo.WorksheetMain; |
| | | import com.whyc.service.WorksheetMainService; |
| | | import com.whyc.util.ActionUtil; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.mail.MessagingException; |
| | | import java.io.IOException; |
| | | import java.util.Map; |
| | | |
| | |
| | | return service.getMyList(pageNum,pageSize,user); |
| | | } |
| | | |
| | | /** |
| | | * {@link EnumWorksheetType#getType()} |
| | | * @param approving |
| | | * @return |
| | | * @throws IOException |
| | | * @throws MessagingException |
| | | */ |
| | | @PostMapping("productProcedureAndSOP") |
| | | @ApiOperation(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); |
| | | } |
| | | |
| | | |
| | | } |