| | |
| | | import com.yeshi.fanli.entity.bus.user.BindingAccount;
|
| | | import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode;
|
| | | import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode.ForbiddenUserIdentifyCodeTypeEnum;
|
| | | import com.yeshi.fanli.entity.bus.user.MoneyRecord;
|
| | | import com.yeshi.fanli.entity.bus.user.Order;
|
| | | import com.yeshi.fanli.entity.bus.user.ThreeSale;
|
| | | import com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo;
|
| | |
| | | import com.yeshi.fanli.service.inter.user.BindingAccountService;
|
| | | import com.yeshi.fanli.service.inter.user.ExtractService;
|
| | | import com.yeshi.fanli.service.inter.user.ForbiddenUserIdentifyCodeService;
|
| | | import com.yeshi.fanli.service.inter.user.MoneyRecordService;
|
| | | import com.yeshi.fanli.service.inter.user.ScanHistoryService;
|
| | | import com.yeshi.fanli.service.inter.user.UserActiveLogService;
|
| | | import com.yeshi.fanli.service.inter.user.UserExtraTaoBaoInfoService;
|
| | |
| | | @Resource
|
| | | private UserInfoService userInfoService;
|
| | |
|
| | | @Resource
|
| | | private MoneyRecordService moneyRecordService;
|
| | |
|
| | | @Resource
|
| | | private OrderService orderService;
|
| | |
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | }
|
| | |
|
| | | @RequestMapping(value = "getMoneyRecordList", method = RequestMethod.POST)
|
| | | public void getMoneyRecordList(int pageIndex, long uid, PrintWriter out) {
|
| | | List<MoneyRecord> moneyRecordList = moneyRecordService.getMoneyRecord(uid, pageIndex - 1);
|
| | | if (moneyRecordList != null)
|
| | | for (MoneyRecord mr : moneyRecordList) {
|
| | | mr.setExtract(null);
|
| | | mr.setUserInfo(null);
|
| | | mr.setHongBao(null);
|
| | | }
|
| | |
|
| | | int count = moneyRecordService.getCount(uid);
|
| | | int totalPage = count % Constant.PAGE_SIZE == 0 ? count / Constant.PAGE_SIZE : count / Constant.PAGE_SIZE + 1;
|
| | | PageEntity pe = new PageEntity(pageIndex, Constant.PAGE_SIZE, count, totalPage);
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("pe", pe);
|
| | | data.put("moneyRecordList", GsonUtil.toJsonExpose(moneyRecordList));
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | }
|
| | |
|
| | | /**
|
| | | *
|
| | |
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | }
|
| | |
|
| | |
|
| | | /**
|
| | | * 查询用户信息列表--相关数据统计
|
| | | * 查询用户信息列表 正常用户/异常用户
|
| | | *
|
| | | * @param callback
|
| | | * @param pageIndex
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * 修改用户的状态、等级信息
|
| | | * |
| | | * @param callback
|
| | | * @param userInfo
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "setInfo")
|
| | | public void setInfo(String callback, UserInfo userInfo, PrintWriter out) {
|
| | | try {
|
| | |
|
| | | Long id = userInfo.getId();
|
| | |
|
| | | if (id == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("请传递正确数据"));
|
| | | return;
|
| | | }
|
| | |
|
| | | UserInfo currentInfo = userInfoService.selectByPKey(id);
|
| | | if (currentInfo == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("该用户已不存在"));
|
| | | return;
|
| | | }
|
| | |
|
| | | currentInfo = new UserInfo(id);
|
| | |
|
| | | boolean hasChange = false;
|
| | |
|
| | | // 等级修改
|
| | | Integer rank = userInfo.getRank();
|
| | | if (rank != null) {
|
| | | hasChange = true;
|
| | | currentInfo.setRank(rank);
|
| | | }
|
| | |
|
| | | // 状态修改
|
| | | Integer state = userInfo.getState();
|
| | | if (state != null) {
|
| | | hasChange = true;
|
| | | currentInfo.setState(state);
|
| | | if (state != null && state == UserInfo.STATE_FORBIDDEN)
|
| | | currentInfo.setStateDesc("管理员封禁");
|
| | | }
|
| | |
|
| | | if (hasChange) {
|
| | | userInfoService.updateByPrimaryKeySelective(currentInfo);
|
| | | UserInfo nowUser = userInfoService.selectByPKey(id);
|
| | | if (state != null && state == UserInfo.STATE_FORBIDDEN) {
|
| | | // 加入封禁的账号列表
|
| | | ForbiddenUserIdentifyCode forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
|
| | | forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.wxUnionId);
|
| | | forbiddenUserIdentifyCode.setIdentifyCode(nowUser.getWxUnionId());
|
| | | forbiddenUserIdentifyCode.setBeiZhu(nowUser.getWxName());
|
| | | try {
|
| | | forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
|
| | | } catch (ForbiddenUserIdentifyCodeException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
|
| | | // 电话号码
|
| | | forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
|
| | | forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.phone);
|
| | | forbiddenUserIdentifyCode.setIdentifyCode(nowUser.getPhone());
|
| | | try {
|
| | | forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
|
| | | } catch (ForbiddenUserIdentifyCodeException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
|
| | | // 淘宝
|
| | | UserExtraTaoBaoInfo taoBao = userExtraTaoBaoInfoService.getByUid(nowUser.getId());
|
| | | if (taoBao != null && !StringUtil.isNullOrEmpty(taoBao.getTaoBaoUid())) {
|
| | | forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
|
| | | forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.taobaoUid);
|
| | | forbiddenUserIdentifyCode.setIdentifyCode(taoBao.getTaoBaoUid());
|
| | | try {
|
| | | forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
|
| | | } catch (ForbiddenUserIdentifyCodeException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | // 查询支付宝绑定
|
| | |
|
| | | List<BindingAccount> list = bindingAccountService.getBindingAccountByUid(nowUser.getId());
|
| | | if (list != null)
|
| | | for (BindingAccount ba : list) {
|
| | | forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
|
| | | forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.alipayAccount);
|
| | | forbiddenUserIdentifyCode.setIdentifyCode(ba.getAccount());
|
| | | forbiddenUserIdentifyCode.setBeiZhu(ba.getName());
|
| | | try {
|
| | | forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
|
| | | } catch (ForbiddenUserIdentifyCodeException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | | } else if (state != null && state == UserInfo.STATE_NORMAL) {
|
| | | // 解封微信
|
| | | ForbiddenUserIdentifyCode forbiddenUserIdentifyCode = forbiddenUserIdentifyCodeService
|
| | | .listByTypeAndIdentifyCode(ForbiddenUserIdentifyCodeTypeEnum.wxUnionId,
|
| | | nowUser.getWxUnionId());
|
| | | if (forbiddenUserIdentifyCode != null)
|
| | | forbiddenUserIdentifyCodeService.delete(forbiddenUserIdentifyCode);
|
| | | // 解封手机
|
| | | forbiddenUserIdentifyCode = forbiddenUserIdentifyCodeService
|
| | | .listByTypeAndIdentifyCode(ForbiddenUserIdentifyCodeTypeEnum.phone, nowUser.getPhone());
|
| | | if (forbiddenUserIdentifyCode != null)
|
| | | forbiddenUserIdentifyCodeService.delete(forbiddenUserIdentifyCode);
|
| | | // 解封淘宝
|
| | | UserExtraTaoBaoInfo taoBao = userExtraTaoBaoInfoService.getByUid(nowUser.getId());
|
| | | if (taoBao != null && !StringUtil.isNullOrEmpty(taoBao.getTaoBaoUid())) {
|
| | | forbiddenUserIdentifyCode = forbiddenUserIdentifyCodeService.listByTypeAndIdentifyCode(
|
| | | ForbiddenUserIdentifyCodeTypeEnum.taobaoUid, taoBao.getTaoBaoUid());
|
| | | if (forbiddenUserIdentifyCode != null)
|
| | | forbiddenUserIdentifyCodeService.delete(forbiddenUserIdentifyCode);
|
| | | }
|
| | | // 解封支付宝
|
| | | List<BindingAccount> list = bindingAccountService.getBindingAccountByUid(nowUser.getId());
|
| | | if (list != null)
|
| | | for (BindingAccount ba : list) {
|
| | | forbiddenUserIdentifyCode = forbiddenUserIdentifyCodeService.listByTypeAndIdentifyCode(
|
| | | ForbiddenUserIdentifyCodeTypeEnum.alipayAccount, ba.getAccount());
|
| | | if (forbiddenUserIdentifyCode != null)
|
| | | forbiddenUserIdentifyCodeService.delete(forbiddenUserIdentifyCode);
|
| | | }
|
| | | }
|
| | |
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("修改成功"));
|
| | | } else {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("无可修改内容"));
|
| | | }
|
| | |
|
| | | } catch (
|
| | |
|
| | | Exception e) {
|
| | | e.printStackTrace();
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("修改失败"));
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * 删除绑定的账户信息: 支付宝 微信
|
| | | * |
| | | * @param callback
|
| | | * @param bindId
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "deleteBindingAccount")
|
| | | public void deleteBindingAccount(String callback, Long bindId, PrintWriter out) {
|
| | | try {
|
| | |
|
| | | if (bindId == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("请传递正确数据"));
|
| | | return;
|
| | | }
|
| | |
|
| | | int count = bindingAccountService.deleteByPrimaryKey(bindId);
|
| | |
|
| | | if (count > 0) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("删除成功"));
|
| | | } else {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("删除失败"));
|
| | | }
|
| | |
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("操作异常"));
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | *
|
| | |
| | | * 需要解绑的账户类型
|
| | | */
|
| | | @RequestMapping("unBindUserInfo")
|
| | | public void unBindUserInfo(String callback, Long id, Integer type, PrintWriter out) {
|
| | | public void unBindUserInfo(String callback, Long uid, String typeArray, PrintWriter out) {
|
| | | try {
|
| | |
|
| | | if (id == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("不存在该用户!"));
|
| | | if (typeArray == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("没有可更改的内容"));
|
| | | return;
|
| | | }
|
| | | |
| | | Gson gson = new Gson();
|
| | | List<Integer> list = gson.fromJson(typeArray, new TypeToken<ArrayList<Integer>>() {}.getType());
|
| | | if (list == null || list.size() == 0) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("没有可更改的内容"));
|
| | | return;
|
| | | }
|
| | | |
| | | |
| | | if (uid == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("用户id不能为空"));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (type == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("账户类型不可为空!"));
|
| | | return;
|
| | | }
|
| | |
|
| | | UserInfo find = userInfoService.getUserById(id);
|
| | |
|
| | | UserInfo find = userInfoService.getUserById(uid);
|
| | | if (find == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("不存在该用户!"));
|
| | | return;
|
| | | }
|
| | |
|
| | | String openid = find.getOpenid();
|
| | | String wxUnionId = find.getWxUnionId();
|
| | | String phone = find.getPhone();
|
| | | if (1 == type) {
|
| | | if (StringUtil.isNullOrEmpty(openid)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("当前用户未绑定支付宝!"));
|
| | | |
| | | |
| | | for (Integer type: list) {
|
| | | String openid = find.getOpenid();
|
| | | String wxUnionId = find.getWxUnionId();
|
| | | String phone = find.getPhone();
|
| | | if (1 == type) {
|
| | | if (StringUtil.isNullOrEmpty(openid)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("当前用户未绑定淘宝!"));
|
| | | return;
|
| | | } else {
|
| | | userInfoService.deleteBindInfo(find, type);
|
| | | }
|
| | | } else if (2 == type) {
|
| | | if (StringUtil.isNullOrEmpty(wxUnionId)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("当前用户未绑定微信!"));
|
| | | return;
|
| | | } else {
|
| | | userInfoService.deleteBindInfo(find, type);
|
| | | }
|
| | | } else if (3 == type) {
|
| | | if (StringUtil.isNullOrEmpty(phone)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("当前用户未绑定手机号!"));
|
| | | return;
|
| | | } else {
|
| | | userInfoService.deleteBindInfo(find, type);
|
| | | }
|
| | | } else if (4 == type) {
|
| | | // 查询支付宝绑定
|
| | | BindingAccount account = bindingAccountService.getBindingAccountByUidAndType(uid, BindingAccount.TYPE_ALIPAY);
|
| | | if (account == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("当前用户未绑定支付宝!"));
|
| | | return;
|
| | | } else {
|
| | | bindingAccountService.deleteBindingAccount(account);
|
| | | }
|
| | | } else {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("账户类型不匹配!"));
|
| | | return;
|
| | | }
|
| | | } else if (2 == type) {
|
| | | if (StringUtil.isNullOrEmpty(wxUnionId)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("当前用户未绑定微信!"));
|
| | | return;
|
| | | }
|
| | | } else if (3 == type) {
|
| | | if (StringUtil.isNullOrEmpty(phone)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("当前用户未绑定手机号!"));
|
| | | return;
|
| | | }
|
| | | } else {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("账户类型有误!"));
|
| | | return;
|
| | | }
|
| | |
|
| | | userInfoService.deleteBindInfo(find, type);
|
| | |
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("解绑成功"));
|
| | |
|
| | |
| | | }
|
| | |
|
| | |
|
| | |
|
| | | /**
|
| | | * 封禁用户ID
|
| | | * @param callback
|
| | | * @param uid
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "forbiddenUser")
|
| | | public void forbiddenUser(String callback, Long uid, PrintWriter out) {
|
| | | try {
|
| | |
|
| | | if (uid == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("请传递正确数据"));
|
| | | return;
|
| | | }
|
| | |
|
| | | UserInfo currentInfo = userInfoService.selectByPKey(uid);
|
| | | if (currentInfo == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("该用户已不存在"));
|
| | | return;
|
| | | }
|
| | |
|
| | | currentInfo.setState(UserInfo.STATE_FORBIDDEN);
|
| | | currentInfo.setStateDesc("管理员封禁");
|
| | | userInfoService.updateByPrimaryKeySelective(currentInfo);
|
| | | |
| | | // 加入封禁的账号列表
|
| | | ForbiddenUserIdentifyCode forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
|
| | | forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.wxUnionId);
|
| | | forbiddenUserIdentifyCode.setIdentifyCode(currentInfo.getWxUnionId());
|
| | | forbiddenUserIdentifyCode.setBeiZhu(currentInfo.getWxName());
|
| | | try {
|
| | | forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
|
| | | } catch (ForbiddenUserIdentifyCodeException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
|
| | | // 电话号码
|
| | | forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
|
| | | forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.phone);
|
| | | forbiddenUserIdentifyCode.setIdentifyCode(currentInfo.getPhone());
|
| | | try {
|
| | | forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
|
| | | } catch (ForbiddenUserIdentifyCodeException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
|
| | | // 淘宝
|
| | | UserExtraTaoBaoInfo taoBao = userExtraTaoBaoInfoService.getByUid(uid);
|
| | | if (taoBao != null && !StringUtil.isNullOrEmpty(taoBao.getTaoBaoUid())) {
|
| | | forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
|
| | | forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.taobaoUid);
|
| | | forbiddenUserIdentifyCode.setIdentifyCode(taoBao.getTaoBaoUid());
|
| | | try {
|
| | | forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
|
| | | } catch (ForbiddenUserIdentifyCodeException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | // 查询支付宝绑定
|
| | |
|
| | | List<BindingAccount> list = bindingAccountService.getBindingAccountByUid(uid);
|
| | | if (list != null) {
|
| | | for (BindingAccount ba : list) {
|
| | | forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
|
| | | forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.alipayAccount);
|
| | | forbiddenUserIdentifyCode.setIdentifyCode(ba.getAccount());
|
| | | forbiddenUserIdentifyCode.setBeiZhu(ba.getName());
|
| | | try {
|
| | | forbiddenUserIdentifyCodeService.addIdentifyCode(forbiddenUserIdentifyCode);
|
| | | } catch (ForbiddenUserIdentifyCodeException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | | }
|
| | | |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("用户封禁成功"));
|
| | | |
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("操作失败"));
|
| | | }
|
| | | }
|
| | | |
| | | |
| | | /**
|
| | | * 解除封禁用户ID
|
| | | * @param callback
|
| | | * @param uid
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "relieveForbiddenUser")
|
| | | public void relieveForbiddenUser(String callback, Long uid, PrintWriter out) {
|
| | | try {
|
| | |
|
| | | if (uid == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("请传递正确数据"));
|
| | | return;
|
| | | }
|
| | |
|
| | | UserInfo currentInfo = userInfoService.selectByPKey(uid);
|
| | | if (currentInfo == null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("该用户已不存在"));
|
| | | return;
|
| | | }
|
| | |
|
| | | currentInfo.setState(UserInfo.STATE_NORMAL);
|
| | | currentInfo.setStateDesc("管理员已解封");
|
| | | userInfoService.updateByPrimaryKeySelective(currentInfo);
|
| | |
|
| | | // 解封微信
|
| | | ForbiddenUserIdentifyCode forbiddenUserIdentifyCode = forbiddenUserIdentifyCodeService
|
| | | .listByTypeAndIdentifyCode(ForbiddenUserIdentifyCodeTypeEnum.wxUnionId, currentInfo.getWxUnionId());
|
| | | if (forbiddenUserIdentifyCode != null)
|
| | | forbiddenUserIdentifyCodeService.delete(forbiddenUserIdentifyCode);
|
| | |
|
| | | // 解封手机
|
| | | forbiddenUserIdentifyCode = forbiddenUserIdentifyCodeService
|
| | | .listByTypeAndIdentifyCode(ForbiddenUserIdentifyCodeTypeEnum.phone, currentInfo.getPhone());
|
| | | if (forbiddenUserIdentifyCode != null)
|
| | | forbiddenUserIdentifyCodeService.delete(forbiddenUserIdentifyCode);
|
| | |
|
| | | // 解封淘宝
|
| | | UserExtraTaoBaoInfo taoBao = userExtraTaoBaoInfoService.getByUid(uid);
|
| | | if (taoBao != null && !StringUtil.isNullOrEmpty(taoBao.getTaoBaoUid())) {
|
| | | forbiddenUserIdentifyCode = forbiddenUserIdentifyCodeService
|
| | | .listByTypeAndIdentifyCode(ForbiddenUserIdentifyCodeTypeEnum.taobaoUid, taoBao.getTaoBaoUid());
|
| | | if (forbiddenUserIdentifyCode != null)
|
| | | forbiddenUserIdentifyCodeService.delete(forbiddenUserIdentifyCode);
|
| | | }
|
| | |
|
| | | // 解封支付宝
|
| | | List<BindingAccount> list = bindingAccountService.getBindingAccountByUid(uid);
|
| | | if (list != null) {
|
| | | for (BindingAccount ba : list) {
|
| | | forbiddenUserIdentifyCode = forbiddenUserIdentifyCodeService.listByTypeAndIdentifyCode(
|
| | | ForbiddenUserIdentifyCodeTypeEnum.alipayAccount, ba.getAccount());
|
| | | if (forbiddenUserIdentifyCode != null)
|
| | | forbiddenUserIdentifyCodeService.delete(forbiddenUserIdentifyCode);
|
| | | }
|
| | | }
|
| | |
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("用户解封成功"));
|
| | |
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("操作失败"));
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * 用户账号- 封禁/解封
|
| | |
| | | e.printStackTrace();
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("操作异常"));
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|