|
@@ -220,6 +220,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
if (CollectionUtils.isEmpty(targetUserList)) {
|
|
|
userDO.setUserName("临时用户");
|
|
|
userDO.setPhone(commonUser.getPhone());
|
|
|
+ userDO.setCid(commonUser.getCid());
|
|
|
userDO.setPassword(Md5Crypt.md5Crypt(password.getBytes(), "$1$" + commonUser.getPhone().substring(0, 7)));
|
|
|
this.insert(userDO);
|
|
|
} else {
|
|
@@ -228,6 +229,9 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
if (userDO.getStatus() == 0) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_CAN_NOT_ACTICE);
|
|
|
}
|
|
|
+ else{
|
|
|
+ userDO.setCid(commonUser.getCid());
|
|
|
+ }
|
|
|
}
|
|
|
if (commonUser.getPhone() != null) {
|
|
|
DBConnection();
|
|
@@ -300,11 +304,16 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
if (user == null) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_PHONE_OR_PASSWORD_NOT_CORRECT);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
CommonUser userDO = this.selectById(user.getId());
|
|
|
//检查帐号是否已经冻结
|
|
|
if (userDO.getStatus() == 0) {
|
|
|
throw new AppServiceException(ExceptionDefinition.USER_CAN_NOT_ACTICE);
|
|
|
}
|
|
|
+ else{
|
|
|
+ userDO.setCid(commonUser.getCid());
|
|
|
+ }
|
|
|
if (commonUser.getPhone() != null) {
|
|
|
DBConnection();
|
|
|
String sUserId = null;
|