|
@@ -16,6 +16,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.google.common.collect.Lists;
|
|
|
+import com.google.common.collect.Sets;
|
|
|
import com.persagy.common.constant.SaasCommonConstant;
|
|
|
import com.persagy.common.enums.ResponseCode;
|
|
|
import com.persagy.common.model.BaseGroupModel;
|
|
@@ -159,6 +160,7 @@ public class SaasAccountController {
|
|
|
SaasAccount saasAccount = new SaasAccount();
|
|
|
BeanUtils.copyProperties(createVO, saasAccount);
|
|
|
saasAccount.setUpdateUser(createVO.getAccountId());
|
|
|
+ saasAccount.setTerminal(Sets.newHashSet(createVO.getAppId()));
|
|
|
saasAccount.setId(null);
|
|
|
if (StringUtil.isBlank(createVO.getPassword())) {
|
|
|
saasAccount.setPassword(this.properties.getDefaultPwd());
|
|
@@ -195,6 +197,7 @@ public class SaasAccountController {
|
|
|
SaasAccount saasAccount = new SaasAccount();
|
|
|
BeanUtils.copyProperties(createVO, saasAccount);
|
|
|
saasAccount.setId(createVO.getAccountId());
|
|
|
+ saasAccount.setTerminal(Sets.newHashSet(createVO.getAppId()));
|
|
|
saasAccount.setUpdateUser(createVO.getAccountId());
|
|
|
exists = this.saasAccountHandler.updateSaasAccount(saasAccount, createVO.getCasType(), createVO.getRoles());
|
|
|
return exists ? ResponseResultUtil.successResult("更新成功") : ResponseResultUtil.errorResult("更新失败");
|