| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.DocUser; |
| | | import com.whyc.pojo.ProductBomApproving; |
| | | import com.whyc.pojo.WorksheetMain; |
| | | import com.whyc.service.WorksheetMainService; |
| | | import com.whyc.util.ActionUtil; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | |
| | | private WorksheetMainService service; |
| | | |
| | | @PostMapping("submit") |
| | | @ApiOperation("图纸提交") |
| | | public Response submit(@RequestBody WorksheetMain main){ |
| | | @ApiOperation("产品图纸及bom提交") |
| | | public Response submit(@RequestBody WorksheetMain main, @RequestBody List<ProductBomApproving> bomList){ |
| | | DocUser user = ActionUtil.getUser(); |
| | | boolean res = service.submit(main,user); |
| | | if(res) { |