|
@@ -184,10 +184,10 @@ public class RtkAccountServiceImpl extends ServiceImpl<IRtkAccountMapper, RtkAcc
|
|
}
|
|
}
|
|
RtkAccount rtkAccount = this.getByUserName(param.getUserName());
|
|
RtkAccount rtkAccount = this.getByUserName(param.getUserName());
|
|
if(rtkAccount != null && param.getId() == null){
|
|
if(rtkAccount != null && param.getId() == null){
|
|
- throw new BusinessException(ResultCode.RTK_SN_EXIST);
|
|
|
|
|
|
+ throw new BusinessException(ResultCode.RTK_USERNAME_EXIST);
|
|
}
|
|
}
|
|
if(rtkAccount != null && !param.getId().equals(rtkAccount.getId())){
|
|
if(rtkAccount != null && !param.getId().equals(rtkAccount.getId())){
|
|
- throw new BusinessException(ResultCode.RTK_SN_EXIST);
|
|
|
|
|
|
+ throw new BusinessException(ResultCode.RTK_USERNAME_EXIST);
|
|
}
|
|
}
|
|
if(param.getId()== null){
|
|
if(param.getId()== null){
|
|
param.setCreateUserId(Long.valueOf(StpUtil.getLoginId().toString()));
|
|
param.setCreateUserId(Long.valueOf(StpUtil.getLoginId().toString()));
|