|
@@ -158,6 +158,7 @@ public class StorePlatformUserRoleServiceImpl extends ServiceImpl<StorePlatformU
|
|
|
userRole.setUserId(userId);
|
|
userRole.setUserId(userId);
|
|
|
userRole.setRoleId(roleId);
|
|
userRole.setRoleId(roleId);
|
|
|
userRole.setStoreId(storeId);
|
|
userRole.setStoreId(storeId);
|
|
|
|
|
+ userRole.setDeleteFlag(0);
|
|
|
userRole.setCreatedTime(new Date());
|
|
userRole.setCreatedTime(new Date());
|
|
|
|
|
|
|
|
boolean insertRoleResult = this.save(userRole);
|
|
boolean insertRoleResult = this.save(userRole);
|
|
@@ -208,7 +209,7 @@ public class StorePlatformUserRoleServiceImpl extends ServiceImpl<StorePlatformU
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public SubAccountDetailVo getSubAccountDetail(Integer userId, Integer storeId) {
|
|
|
|
|
|
|
+ public SubAccountDetailVo getSubAccountDetail(Integer userId, Integer storeId , Long roleIdNew) {
|
|
|
if (userId == null || storeId == null) {
|
|
if (userId == null || storeId == null) {
|
|
|
log.error("用户ID或店铺ID不能为空: userId={}, storeId={}", userId, storeId);
|
|
log.error("用户ID或店铺ID不能为空: userId={}, storeId={}", userId, storeId);
|
|
|
return null;
|
|
return null;
|
|
@@ -236,6 +237,7 @@ public class StorePlatformUserRoleServiceImpl extends ServiceImpl<StorePlatformU
|
|
|
// 2. 查询用户角色关联(根据userId和storeId查询)
|
|
// 2. 查询用户角色关联(根据userId和storeId查询)
|
|
|
LambdaQueryWrapper<StorePlatformUserRole> userRoleQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<StorePlatformUserRole> userRoleQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
userRoleQueryWrapper.eq(StorePlatformUserRole::getUserId, userId)
|
|
userRoleQueryWrapper.eq(StorePlatformUserRole::getUserId, userId)
|
|
|
|
|
+ .eq(StorePlatformUserRole::getRoleId, roleIdNew)
|
|
|
.eq(StorePlatformUserRole::getStoreId, storeId);
|
|
.eq(StorePlatformUserRole::getStoreId, storeId);
|
|
|
StorePlatformUserRole userRole = storePlatformUserRoleMapper.selectOne(userRoleQueryWrapper);
|
|
StorePlatformUserRole userRole = storePlatformUserRoleMapper.selectOne(userRoleQueryWrapper);
|
|
|
|
|
|