解决租户无法注册的bug

This commit is contained in:
季圣华
2023-02-08 21:52:14 +08:00
parent fa97cc8faa
commit 0287eb51c8

View File

@@ -113,9 +113,7 @@ public class TenantService {
if(tenant.getExpireTime()==null) {
tenant.setExpireTime(Tools.addDays(new Date(), tryDayLimit)); //租户允许试用的天数
}
if(BusinessConstants.DEFAULT_MANAGER.equals(userService.getCurrentUser().getLoginName())) {
result = tenantMapper.insertSelective(tenant);
}
result = tenantMapper.insertSelective(tenant);
}catch(Exception e){
JshException.writeFail(logger, e);
}