whycxzp
2022-12-05 bac7755aa3aea1705caf870c4318803186484e9c
src/main/java/com/whyc/controller/WorksheetMainController.java
@@ -1,10 +1,12 @@
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;
@@ -14,6 +16,7 @@
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.mail.MessagingException;
import java.io.IOException;
import java.util.Map;
@@ -158,4 +161,19 @@
        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);
    }
}