提交 f8c8be47 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 6786b7dd
...@@ -120,7 +120,7 @@ public class AcupointLibrarySerivceImpl extends BaseServiceImpl<AcupointLibrary, ...@@ -120,7 +120,7 @@ public class AcupointLibrarySerivceImpl extends BaseServiceImpl<AcupointLibrary,
//删除关联资源 //删除关联资源
Example example = new Example(ResourceRelation.class); Example example = new Example(ResourceRelation.class);
example.createCriteria().andEqualTo("objectId", entity.getId()); example.createCriteria().andEqualTo("objectId", entity.getId());
meridianLibraryMapper.deleteByExample(example); resourceRelationMapper.deleteByExample(example);
//添加当前对象与关联资源的关系 //添加当前对象与关联资源的关系
if(form.getResourceRelationList() != null && form.getResourceRelationList().size() > 0){ if(form.getResourceRelationList() != null && form.getResourceRelationList().size() > 0){
List<ResourceRelation> list = form.getResourceRelationList(); List<ResourceRelation> list = form.getResourceRelationList();
......
...@@ -51,6 +51,10 @@ public class HourLibrarySerivceImpl extends BaseServiceImpl<HourLibrary,String> ...@@ -51,6 +51,10 @@ public class HourLibrarySerivceImpl extends BaseServiceImpl<HourLibrary,String>
example.createCriteria().andEqualTo("objectId", entity.getId()); example.createCriteria().andEqualTo("objectId", entity.getId());
resourceRelationMapper.deleteByExample(example); resourceRelationMapper.deleteByExample(example);
} }
//删除关联资源
Example example = new Example(ResourceRelation.class);
example.createCriteria().andEqualTo("objectId", entity.getId());
resourceRelationMapper.deleteByExample(example);
//添加当前对象与关联资源的关系 //添加当前对象与关联资源的关系
if(form.getResourceRelationList() != null && form.getResourceRelationList().size() > 0){ if(form.getResourceRelationList() != null && form.getResourceRelationList().size() > 0){
List<ResourceRelation> list = form.getResourceRelationList(); List<ResourceRelation> list = form.getResourceRelationList();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论