| | |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.WorksheetMainDTO; |
| | | import com.whyc.pojo.DocUser; |
| | | import com.whyc.pojo.WorksheetMain; |
| | | import com.whyc.service.WorksheetMainService; |
| | |
| | | } |
| | | |
| | | @PostMapping("componentRelatedSubmit") |
| | | @ApiOperation(value="散装件-产品审批提交",notes = "type:1(关联),2(替换),3(删除),4(解除);散装件-产品的信息在approvingBomList,这个对象数组内,componentList为关联的散装件") |
| | | public Response componentProductSubmit(@RequestParam int type,@RequestBody WorksheetMain main){ |
| | | @ApiOperation(value="散装件-产品审批提交") |
| | | public Response componentProductSubmit(@RequestBody WorksheetMainDTO mainDTO){ |
| | | DocUser user = ActionUtil.getUser(); |
| | | boolean res = service.componentProductSubmit(type,main,user); |
| | | boolean res = service.componentProductSubmit(mainDTO,user); |
| | | if(res) { |
| | | return new Response().set(1,true, "提交完成"); |
| | | }else{ |