| | |
| | | public Result save(@RequestBody MultipartFile file, Long id, String type, String subType, |
| | | String name, String contentType, String systemMark, Integer sortNo, String remark) { |
| | | SysPictureBase sysPictureBase; |
| | | if (id != null) { |
| | | if (id != 0) { |
| | | sysPictureBase = sysPictureBaseService.get(id); |
| | | sysPictureBase.setType(type); |
| | | sysPictureBase.setSubType(subType); |
| | |
| | | params.append('file', x.file) |
| | | }); |
| | | // 将输入表单数据添加到params表单中 |
| | | if (!this.dataForm.id){ |
| | | this.dataForm.id = 0 |
| | | } |
| | | params.append('id', this.dataForm.id) |
| | | params.append('type', this.dataForm.type) |
| | | params.append('subType', this.dataForm.subType) |