| | |
| | | |
| | | @PostMapping("productSoftwareSubmit") |
| | | @ApiOperation(value="产品软件审批提交") |
| | | public Response productSoftwareSubmit(@RequestParam MultipartFile file, @Valid WorksheetMain main) throws IOException { |
| | | public Response productSoftwareSubmit(@RequestParam MultipartFile multipartFile,@RequestParam String mainDTOString) throws IOException { |
| | | DocUser user = ActionUtil.getUser(); |
| | | return service.productSoftwareSubmit(file,main,user); |
| | | WorksheetMainDTO2 mainDTO = ActionUtil.getGson().fromJson(mainDTOString, WorksheetMainDTO2.class); |
| | | return service.productSoftwareSubmit(multipartFile,mainDTO,user); |
| | | } |
| | | |
| | | @GetMapping("statusStatistic") |
| | |
| | | @TableField(exist = false) |
| | | private List<ComponentProductApproving> cpApprovingList; |
| | | |
| | | @TableField(exist = false) |
| | | private ProductSoftwareApproving softwareApproving; |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | |
| | | |
| | | public void setCpApprovingList(List<ComponentProductApproving> cpApprovingList) { |
| | | this.cpApprovingList = cpApprovingList; |
| | | } |
| | | |
| | | public ProductSoftwareApproving getSoftwareApproving() { |
| | | return softwareApproving; |
| | | } |
| | | |
| | | public void setSoftwareApproving(ProductSoftwareApproving softwareApproving) { |
| | | this.softwareApproving = softwareApproving; |
| | | } |
| | | } |
| | |
| | | return response.set(1); |
| | | } |
| | | |
| | | public Response productSoftwareSubmit(MultipartFile file, WorksheetMain main, DocUser user) throws IOException { |
| | | public Response productSoftwareSubmit(MultipartFile file, WorksheetMainDTO2 mainDTO, DocUser user) throws IOException { |
| | | Response response = new Response(); |
| | | |
| | | ProductSoftwareApproving approving = main.getSoftwareApproving(); |
| | | WorksheetMain main = mainDTO.getMain(); |
| | | ProductSoftwareApproving approving = mainDTO.getApproving(); |
| | | |
| | | main.setType(1); |
| | | //提交主表 |