【更新】优化一些细节

pull/120/head
xuyuxiang 2023-05-10 16:39:26 +08:00
parent c4dae1ea1a
commit 3c31705d76
5 changed files with 7 additions and 6 deletions

View File

@ -308,7 +308,7 @@ public class GenBasicServiceImpl extends ServiceImpl<GenBasicMapper, GenBasic> i
DatabaseMetaData metaData = conn.getMetaData();
String url = metaData.getURL();
String schema = null;
if (url.toLowerCase().contains("oracle")) {
if (url.toLowerCase().contains("jdbc:oracle")) {
schema = metaData.getUserName();
}
List<GenBasicTableColumnResult> columns = new ArrayList<>();

View File

@ -570,7 +570,7 @@ public class GlobalConfigure implements WebMvcConfigurer {
//为空则设置createTime
Object createTime = metaObject.getValue(CREATE_TIME);
if (ObjectUtil.isNull(createTime)) {
setFieldValByName(CREATE_TIME, new Date(), metaObject);
setFieldValByName(CREATE_TIME, DateTime.now(), metaObject);
}
} catch (ReflectionException ignored) { }
}

View File

@ -111,6 +111,7 @@ spring.redis.lettuce.pool.min-idle=0
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus.configuration.jdbc-type-for-null=null
mybatis-plus.global-config.banner=false
mybatis-plus.global-config.enable-sql-runner=true
mybatis-plus.global-config.db-config.id-type=ASSIGN_ID
mybatis-plus.global-config.db-config.logic-delete-field=DELETE_FLAG
mybatis-plus.global-config.db-config.logic-delete-value=DELETED