| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | |
| | | |
| | | @PostMapping("submit") |
| | | @ApiOperation("产品图纸及bom提交") |
| | | public Response submit(@RequestBody WorksheetMain main){ |
| | | public Response submit(@RequestBody WorksheetMain main) throws IOException { |
| | | DocUser user = ActionUtil.getUser(); |
| | | boolean res = service.submit(main,user); |
| | | if(res) { |
| | |
| | | } |
| | | } |
| | | |
| | | /**前端未传递过来物料文件所在路径,存在问题 TODO*/ |
| | | @PostMapping("materialSubmit") |
| | | @ApiOperation(value="物料审批提交") |
| | | public Response materialSubmit(@RequestBody WorksheetMain main){ |