Commit 5e346a75 by huangjy

fix:平台端子女端列表编辑删除问题

parent f6bb0606
......@@ -169,7 +169,8 @@ public class PlatElderChildrenInfoServiceImpl extends ServiceImpl<PlatElderChild
PlatElderChildrenInfo db = getById(dto.getId());
List<PlatElderChildrenInfo> platElderChildrenInfoList = list(new QueryWrapper<PlatElderChildrenInfo>().lambda()
.eq(PlatElderChildrenInfo::getOpenid, db.getOpenid()));
.eq(PlatElderChildrenInfo::getOpenid, db.getOpenid())
.isNotNull(PlatElderChildrenInfo::getElderId));
List<String> idList = StreamUtil.map(platElderChildrenInfoList, BaseEntity::getId);
removeByIds(idList);
CommonUserVO commonUserVO = CommonUserUtil.getUser();
......@@ -230,7 +231,8 @@ public class PlatElderChildrenInfoServiceImpl extends ServiceImpl<PlatElderChild
public void del(String id) {
PlatElderChildrenInfo db = getById(id);
List<PlatElderChildrenInfo> platElderChildrenInfoList = list(new QueryWrapper<PlatElderChildrenInfo>().lambda()
.eq(PlatElderChildrenInfo::getOpenid, db.getOpenid()));
.eq(PlatElderChildrenInfo::getOpenid, db.getOpenid())
.isNotNull(PlatElderChildrenInfo::getElderId));
List<String> idList = StreamUtil.map(platElderChildrenInfoList, BaseEntity::getId);
removeByIds(idList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment