mirror of https://gitee.com/xiaonuobase/snowy
【更新】优化一些细节
parent
c4dae1ea1a
commit
3c31705d76
|
@ -308,7 +308,7 @@ public class GenBasicServiceImpl extends ServiceImpl<GenBasicMapper, GenBasic> i
|
||||||
DatabaseMetaData metaData = conn.getMetaData();
|
DatabaseMetaData metaData = conn.getMetaData();
|
||||||
String url = metaData.getURL();
|
String url = metaData.getURL();
|
||||||
String schema = null;
|
String schema = null;
|
||||||
if (url.toLowerCase().contains("oracle")) {
|
if (url.toLowerCase().contains("jdbc:oracle")) {
|
||||||
schema = metaData.getUserName();
|
schema = metaData.getUserName();
|
||||||
}
|
}
|
||||||
List<GenBasicTableColumnResult> columns = new ArrayList<>();
|
List<GenBasicTableColumnResult> columns = new ArrayList<>();
|
||||||
|
|
|
@ -570,7 +570,7 @@ public class GlobalConfigure implements WebMvcConfigurer {
|
||||||
//为空则设置createTime
|
//为空则设置createTime
|
||||||
Object createTime = metaObject.getValue(CREATE_TIME);
|
Object createTime = metaObject.getValue(CREATE_TIME);
|
||||||
if (ObjectUtil.isNull(createTime)) {
|
if (ObjectUtil.isNull(createTime)) {
|
||||||
setFieldValByName(CREATE_TIME, new Date(), metaObject);
|
setFieldValByName(CREATE_TIME, DateTime.now(), metaObject);
|
||||||
}
|
}
|
||||||
} catch (ReflectionException ignored) { }
|
} catch (ReflectionException ignored) { }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
mybatis-plus.configuration.jdbc-type-for-null=null
|
mybatis-plus.configuration.jdbc-type-for-null=null
|
||||||
mybatis-plus.global-config.banner=false
|
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.id-type=ASSIGN_ID
|
||||||
mybatis-plus.global-config.db-config.logic-delete-field=DELETE_FLAG
|
mybatis-plus.global-config.db-config.logic-delete-field=DELETE_FLAG
|
||||||
mybatis-plus.global-config.db-config.logic-delete-value=DELETED
|
mybatis-plus.global-config.db-config.logic-delete-value=DELETED
|
||||||
|
|
Loading…
Reference in New Issue