|
@@ -235,9 +235,10 @@ public class AccountServiceImpl extends ServiceImpl<IAccountMapper, Account> imp
|
|
|
|
|
|
@Override
|
|
|
public ResultData createApp4Jmga(CreateAppUser4JmgaParamVo param) {
|
|
|
- Account account = this.getOne(new LambdaQueryWrapper<Account>().eq(Account::getUserName, param.getUserName()));
|
|
|
+ Account account = this.getOne(new LambdaQueryWrapper<Account>().eq(Account::getUserName, param.getSystemId()));
|
|
|
if(Objects.nonNull(account)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_10002);
|
|
|
+ UserAuthInfo userAuthInfo = userAuthService.findByAccountId(account.getId());
|
|
|
+ return ResultData.ok(userAuthInfo.getAppKey());
|
|
|
}
|
|
|
if(param.getState() != CommonStatus.NO.code().intValue()
|
|
|
&& param.getState() != CommonStatus.YES.code().intValue()){
|
|
@@ -250,10 +251,8 @@ public class AccountServiceImpl extends ServiceImpl<IAccountMapper, Account> imp
|
|
|
count = -1;
|
|
|
}
|
|
|
account = new Account();
|
|
|
- account.setUserName(param.getUserName());
|
|
|
- account.setCustomerName(param.getUserName());
|
|
|
- account.setDescription(param.getDescription());
|
|
|
- account.setCreaterId(param.getCreaterId());
|
|
|
+ account.setUserName(param.getSystemId());
|
|
|
+ account.setCustomerName(param.getSystemId());
|
|
|
this.save(account);
|
|
|
|
|
|
UserAuthInfo userAuthInfo = new UserAuthInfo();
|
|
@@ -263,7 +262,6 @@ public class AccountServiceImpl extends ServiceImpl<IAccountMapper, Account> imp
|
|
|
userAuthInfo.setCallCount(0);
|
|
|
userAuthInfo.setState(param.getState());
|
|
|
userAuthInfo.setEffectTime(Calendar.getInstance().getTime());
|
|
|
- userAuthInfo.setCreaterId(param.getCreaterId());
|
|
|
userAuthService.save(userAuthInfo);
|
|
|
|
|
|
return ResultData.ok(userAuthInfo.getAppKey());
|