| | |
| | | if (user == null) { |
| | | throw new YamiShopBindException("参数错误!"); |
| | | } |
| | | // if (Constants.SECURITY_ROLE_AGENT.equals(user.getRoleName())||Constants.SECURITY_ROLE_AGENTLOW.equals(user.getRoleName())) { |
| | | // &&user!=null&&!Constants.SECURITY_ROLE_GUEST.equals(user.getRolename())) { |
| | | // if(!Constants.SECURITY_ROLE_GUEST.equals(user.getRoleName())) { |
| | | // throw new YamiShopBindException("只能修改演示账户"); |
| | | // } |
| | | // List<String> children = userRecomService.findChildren(sec.getPartyId()); |
| | | // if(!children.contains(partyId)) { |
| | | // throw new YamiShopBindException("只能修改自己线下的用户演示账户"); |
| | | // |
| | | // } |
| | | // } |
| | | user.setEnabled(model.isEnabled()); |
| | | user.setRemarks(model.getRemarks()); |
| | | user.setStatus(model.isLoginAuthority()?1:0); |
| | | user.setWithdrawAuthority(model.isWithdrawAuthority()); |
| | | user.setStatus(model.isLoginAuthority() ? 1 : 0); |
| | | user.setCreditScore(model.getCreditScore()); |
| | | userService.updateById(user); |
| | | return Result.ok(null); |
| | | } |