|
|
@@ -496,6 +496,10 @@ public class ProjectApplicationService extends BaseService<ProjectApplication> {
|
|
|
}
|
|
|
}
|
|
|
//删除原有材料
|
|
|
+ List<ProjectMaterial> materials = projectMaterialService.findByContentAndApplyId(apply.getId());
|
|
|
+ for (ProjectMaterial material : materials) {
|
|
|
+ attachmentService.deleteByBusiness(Constant.Attachment.PROJECT, material.getId());
|
|
|
+ }
|
|
|
projectMaterialService.deleteByApplyId(apply.getId());
|
|
|
//保存材料
|
|
|
if (null != apply.getApplyMaterials() && apply.getApplyMaterials().size() > 0) {
|