|
@@ -348,7 +348,7 @@ public class TaUserServiceImpl extends ServiceImpl<TaUserMapper, TaUser> impleme
|
348
|
348
|
}
|
349
|
349
|
|
350
|
350
|
@Override
|
351
|
|
- public void turnUserOnOrNot(Integer id, boolean isOn) throws Exception {
|
|
351
|
+ public void turnUserOnOrNot(Integer id, boolean isOn, String plat) throws Exception {
|
352
|
352
|
TaUser taUser = this.getById(id);
|
353
|
353
|
if (null == taUser) {
|
354
|
354
|
throw new Exception("未找到有效的用户信息");
|
|
@@ -359,6 +359,9 @@ public class TaUserServiceImpl extends ServiceImpl<TaUserMapper, TaUser> impleme
|
359
|
359
|
user.setStatus(status);
|
360
|
360
|
|
361
|
361
|
QueryWrapper<TaUser> taUserQueryWrapper = new QueryWrapper<>();
|
|
362
|
+ if (CommConstant.LOGIN_TYPE_ADMIN.equals(plat)){
|
|
363
|
+ taUserQueryWrapper.eq("user_id", id);
|
|
364
|
+ }
|
362
|
365
|
taUserQueryWrapper.eq("org_id", taUserMapper.selectById(id).getOrgId());
|
363
|
366
|
|
364
|
367
|
if (!this.update(user, taUserQueryWrapper)) {
|