|
@@ -404,11 +404,6 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
|
|
|
@Override
|
|
|
public Object updateMessage(Object object) {
|
|
|
- //TODO 更新基本信息
|
|
|
- //TODO 更新场景
|
|
|
- //TODO 更新事件
|
|
|
- //TODO 若产品或产品类别技术类别有更新,则删除产品或产品类别技术类别和专利的标引(只需判断,删除部分,待es完成)
|
|
|
- //TODO 更新关联附件
|
|
|
if (object == null) {
|
|
|
throw new XiaoShiException("参数不能为空");
|
|
|
}
|
|
@@ -431,9 +426,7 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
} catch (Exception e) {
|
|
|
throw new UnLoginException("未登录");
|
|
|
}
|
|
|
- /**
|
|
|
- * 装载project
|
|
|
- */
|
|
|
+ //TODO 更新基本信息
|
|
|
//根据传入对象id查询project对象
|
|
|
Project project = projectService.getById(updatePatentProjectDTO.getId());
|
|
|
BeanUtils.copyProperties(updatePatentProjectDTO, project);
|
|
@@ -465,10 +458,9 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
//赋值
|
|
|
BeanUtils.copyProperties(updatePatentProjectDTO, patentProject);
|
|
|
patentProject.updateById();
|
|
|
+ //TODO 更新场景
|
|
|
|
|
|
- /**
|
|
|
- * 装载事件与project关联
|
|
|
- */
|
|
|
+ //TODO 更新事件
|
|
|
List<AssoProjectEvent> assoProjectEvents = new ArrayList<>();
|
|
|
LambdaQueryWrapper<AssoProjectEvent> updateEventWrapper = new LambdaQueryWrapper<>();
|
|
|
updateEventWrapper.eq(AssoProjectEvent::getProjectId, project.getId());
|
|
@@ -557,7 +549,8 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
assoProjectTreeNodeService.saveBatch(assoProjectTreeNodes);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ //TODO 若产品或产品类别技术类别有更新,则删除产品或产品类别技术类别和专利的标引(只需判断,删除部分,待es完成)
|
|
|
+ //TODO 更新关联附件
|
|
|
/**
|
|
|
* 装载和附件关联
|
|
|
*/
|