init
This commit is contained in:
@@ -147,7 +147,7 @@ public class SysUserController extends BaseController {
|
|||||||
if(vo == null){
|
if(vo == null){
|
||||||
throw new ServiceException("未找到对应的平台");
|
throw new ServiceException("未找到对应的平台");
|
||||||
}
|
}
|
||||||
user.setUserName(vo.getPrefix()+"-"+user.getUserName());
|
user.setUserName(vo.getPrefix()+"_"+user.getUserName());
|
||||||
user.setPrefix(vo.getPrefix());
|
user.setPrefix(vo.getPrefix());
|
||||||
deptService.checkDeptDataScope(user.getDeptId());
|
deptService.checkDeptDataScope(user.getDeptId());
|
||||||
AtomicBoolean checkUserName = new AtomicBoolean(false);
|
AtomicBoolean checkUserName = new AtomicBoolean(false);
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
|
|||||||
OssClient storage = OssFactory.instance();
|
OssClient storage = OssFactory.instance();
|
||||||
UploadResult uploadResult;
|
UploadResult uploadResult;
|
||||||
try {
|
try {
|
||||||
uploadResult = storage.uploadFile(file.getBytes(), tenant.getPrefix(), suffix, file.getContentType());
|
uploadResult = storage.uploadFile(file.getBytes(), tenant.getTenantId(), suffix, file.getContentType());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ServiceException(e.getMessage());
|
throw new ServiceException(e.getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user