|
@@ -110,11 +110,13 @@ public class ProductServiceImpl implements IProductService {
|
|
|
}
|
|
|
|
|
|
//7.插入新的附件入报告系统文件表中,返回文件id
|
|
|
- List<Integer> fileIds = reportFileService.uploadFiles(files);
|
|
|
+ if (files != null) {
|
|
|
+ List<Integer> fileIds = reportFileService.uploadFiles(files);
|
|
|
+ //8.插入新的文件id入产品文件关联表中
|
|
|
+ Integer productId = product.getId();
|
|
|
+ assoProductFileService.addAsso(productId, fileIds);
|
|
|
+ }
|
|
|
|
|
|
- //8.插入新的文件id入产品文件关联表中
|
|
|
- Integer productId = product.getId();
|
|
|
- assoProductFileService.addAsso(productId, fileIds);
|
|
|
|
|
|
log.info("产品修改完成");
|
|
|
|