|
|
@ -71,12 +71,11 @@ public class SysPostUserServiceImpl extends ServiceImpl<SysPostUserMapper,SysPos |
|
|
|
public void updatePathIds(String orgPathIds,String newPathIds,String orgPathNames,String newPathNames){ |
|
|
|
LambdaQueryWrapper<SysPostUser> lqw = new LambdaQueryWrapper<>(); |
|
|
|
lqw.likeRight(SysPostUser::getPathIds,orgPathIds+"_"); |
|
|
|
lqw.select(SysPostUser::getId,SysPostUser::getPathIds,SysPostUser::getPathNames); |
|
|
|
lqw.select(SysPostUser::getId,SysPostUser::getPathIds); |
|
|
|
List<SysPostUser> postUserList = this.list(lqw); |
|
|
|
if(CollectionUtil.isNotEmpty(postUserList)){ |
|
|
|
for (SysPostUser postUser : postUserList) { |
|
|
|
postUser.setPathIds(postUser.getPathIds().replace(orgPathIds,newPathIds)); |
|
|
|
// postUser.setPostName(postUser.getPathNames().replace(orgPathNames,newPathNames));
|
|
|
|
} |
|
|
|
this.updateBatchById(postUserList); |
|
|
|
} |
|
|
|