|
@@ -831,6 +831,7 @@ public class StorePlatformUserRoleServiceImpl extends ServiceImpl<StorePlatformU
|
|
|
updateWrapper.eq(StorePlatformUserRole::getId, id)
|
|
updateWrapper.eq(StorePlatformUserRole::getId, id)
|
|
|
.eq(StorePlatformUserRole::getDeleteFlag, 0) // 只更新未删除的记录
|
|
.eq(StorePlatformUserRole::getDeleteFlag, 0) // 只更新未删除的记录
|
|
|
.set(StorePlatformUserRole::getStatus, status);
|
|
.set(StorePlatformUserRole::getStatus, status);
|
|
|
|
|
+ int updateResult = storePlatformUserRoleMapper.update(null, updateWrapper);
|
|
|
// 根据传入的 status 值更新
|
|
// 根据传入的 status 值更新
|
|
|
StoreUser storeUser = storeUserMapper.selectById(userRole.getUserId());
|
|
StoreUser storeUser = storeUserMapper.selectById(userRole.getUserId());
|
|
|
if (storeUser != null && storeUser.getPhone() != null) {
|
|
if (storeUser != null && storeUser.getPhone() != null) {
|
|
@@ -847,7 +848,6 @@ public class StorePlatformUserRoleServiceImpl extends ServiceImpl<StorePlatformU
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- int updateResult = storePlatformUserRoleMapper.update(null, updateWrapper);
|
|
|
|
|
if (updateResult > 0) {
|
|
if (updateResult > 0) {
|
|
|
String statusText = status == 0 ? "启用" : "禁用";
|
|
String statusText = status == 0 ? "启用" : "禁用";
|
|
|
log.info("成功{}子账号: id={}, userId={}, storeId={}, roleId={}, status={}",
|
|
log.info("成功{}子账号: id={}, userId={}, storeId={}, roleId={}, status={}",
|