bug修复
This commit is contained in:
parent
94d86dcd46
commit
1e35270762
@ -2,20 +2,18 @@ package com.xkrs.controller;
|
|||||||
|
|
||||||
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
|
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
|
||||||
import com.xkrs.common.encapsulation.PromptMessageEnum;
|
import com.xkrs.common.encapsulation.PromptMessageEnum;
|
||||||
import com.xkrs.model.va.SysUserQoInsert;
|
|
||||||
import com.xkrs.model.va.SysUserQoUpdate;
|
|
||||||
import com.xkrs.service.RedisService;
|
|
||||||
import com.xkrs.dao.SysUserDao;
|
import com.xkrs.dao.SysUserDao;
|
||||||
import com.xkrs.model.entity.SysUserEntity;
|
import com.xkrs.model.entity.SysUserEntity;
|
||||||
import com.xkrs.model.qo.SysUserQo;
|
import com.xkrs.model.qo.SysUserQo;
|
||||||
import com.xkrs.model.qo.SysUserReceiveSmsQo;
|
import com.xkrs.model.qo.SysUserReceiveSmsQo;
|
||||||
import com.xkrs.model.qo.SysUserRemarkQo;
|
import com.xkrs.model.qo.SysUserRemarkQo;
|
||||||
import com.xkrs.model.qo.SysUserVipLevelQo;
|
import com.xkrs.model.qo.SysUserVipLevelQo;
|
||||||
|
import com.xkrs.model.va.SysUserQoInsert;
|
||||||
|
import com.xkrs.model.va.SysUserQoUpdate;
|
||||||
import com.xkrs.model.vo.SysUserVo;
|
import com.xkrs.model.vo.SysUserVo;
|
||||||
|
import com.xkrs.service.RedisService;
|
||||||
import com.xkrs.service.SysUserService;
|
import com.xkrs.service.SysUserService;
|
||||||
import com.xkrs.utilsnew.*;
|
import com.xkrs.utilsnew.*;
|
||||||
import com.xkrs.utilsnew.AliYunSmsUtils;
|
|
||||||
import com.xkrs.utilsnew.RandomUtil;
|
|
||||||
import org.apache.hc.core5.util.TextUtils;
|
import org.apache.hc.core5.util.TextUtils;
|
||||||
import org.springframework.context.i18n.LocaleContextHolder;
|
import org.springframework.context.i18n.LocaleContextHolder;
|
||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
||||||
@ -273,7 +271,7 @@ public class SysUserController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/operateActiveFlag")
|
@PostMapping("/operateActiveFlag")
|
||||||
public String operateActiveFlag(@RequestBody Map map, @RequestHeader(value = "Authorization") String token) {
|
public String operateActiveFlag(@RequestBody Map map, @RequestHeader(value = "Authorization") String token) {
|
||||||
Long userId = (Long) map.get("userId");
|
Integer userId = (Integer) map.get("userId");
|
||||||
String keepType = (String) map.get("keepType");
|
String keepType = (String) map.get("keepType");
|
||||||
// 验证token
|
// 验证token
|
||||||
String tokenUserName = TokenUtil.obtainUserNameByToken(token);
|
String tokenUserName = TokenUtil.obtainUserNameByToken(token);
|
||||||
@ -283,10 +281,10 @@ public class SysUserController {
|
|||||||
}
|
}
|
||||||
// 如果keepType等于1进行启用操作
|
// 如果keepType等于1进行启用操作
|
||||||
if ("1".equals(keepType)) {
|
if ("1".equals(keepType)) {
|
||||||
sysUserService.updateEnable(userId);
|
sysUserService.updateEnable(Long.valueOf(userId));
|
||||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "启用成功", locale);
|
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "启用成功", locale);
|
||||||
} else {
|
} else {
|
||||||
sysUserService.updateDisable(userId);
|
sysUserService.updateDisable(Long.valueOf(userId));
|
||||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "禁用成功", locale);
|
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "禁用成功", locale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user