|
@@ -17,7 +17,7 @@ import java.io.File
|
|
|
* @url https://noahlan.me
|
|
|
*/
|
|
|
fun main(args: Array<String>) {
|
|
|
- generate(true, "NorthLan", "newsys", DataSourceConfig().also {
|
|
|
+ generate(true, "NorthLan", "test", DataSourceConfig().also {
|
|
|
it.dbType = DbType.MYSQL
|
|
|
it.typeConvert = object : MySqlTypeConvert() {
|
|
|
override fun processTypeConvert(fieldType: String?): DbColumnType {
|
|
@@ -76,14 +76,14 @@ fun generate(isKotlin: Boolean, author: String, pkgType: String, dataSourceConfi
|
|
|
it.isEntityLombokModel = true
|
|
|
it.isCapitalMode = false
|
|
|
it.naming = NamingStrategy.underline_to_camel
|
|
|
- // setTablePrefix()
|
|
|
+// it.setTablePrefix("t")
|
|
|
it.superEntityClass = "com.gxzc.zen.common.base.BaseModel"
|
|
|
it.setSuperEntityColumns("id", "create_by", "create_time", "update_by", "update_time", "remark", "enable")
|
|
|
it.superMapperClass = "com.gxzc.zen.common.base.BaseMapper"
|
|
|
it.superServiceClass = "com.gxzc.zen.common.base.BaseService"
|
|
|
it.superServiceImplClass = "com.baomidou.mybatisplus.service.impl.ServiceImpl"
|
|
|
// superControllerClass = ""
|
|
|
-// setInclude("user")
|
|
|
+// it.setInclude("t_test")
|
|
|
it.isEntityBooleanColumnRemoveIsPrefix = true
|
|
|
it.logicDeleteFieldName = "enable"
|
|
|
// setExclude("")
|