Merge branch 'dev-org' into dev-main
# Conflicts: # pom.xml
This commit is contained in:
commit
2ad9680a87
17
pom.xml
17
pom.xml
@ -22,7 +22,7 @@
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--es-->
|
||||
<!--elasticsearch-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||
<!-- <artifactId>spring-boot-starter-data-elasticsearch</artifactId>-->
|
||||
@ -32,18 +32,19 @@
|
||||
<!-- <artifactId>spring-data-elasticsearch</artifactId>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!--mysql-->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<!--mybatis-plus-->
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>3.5.3.2</version>
|
||||
</dependency>
|
||||
|
||||
<!--jooq-codegen-maven-->
|
||||
<dependency>
|
||||
<groupId>org.jooq</groupId>
|
||||
<artifactId>jooq-codegen-maven</artifactId>
|
||||
@ -54,7 +55,7 @@
|
||||
<artifactId>validation-api</artifactId>
|
||||
<version>2.0.1.Final</version>
|
||||
</dependency>
|
||||
|
||||
<!--other lib-->
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
@ -91,14 +92,14 @@
|
||||
<configuration>
|
||||
<jdbc>
|
||||
<driver>com.mysql.cj.jdbc.Driver</driver>
|
||||
<url>jdbc:mysql://39.99.244.11:3306/konosuba</url>
|
||||
<user>konosuba</user>
|
||||
<password>kKWjPDYDMLtLaLwY</password>
|
||||
<url>jdbc:mysql://localhost:3306/darkness</url>
|
||||
<user>root</user>
|
||||
<password>root</password>
|
||||
</jdbc>
|
||||
<generator>
|
||||
<database>
|
||||
<includes>.*</includes>
|
||||
<inputSchema>konosuba</inputSchema>
|
||||
<inputSchema>darkness</inputSchema>
|
||||
</database>
|
||||
<target>
|
||||
<packageName>com.darkness.pojo.entity</packageName>
|
||||
|
@ -5,7 +5,7 @@ import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
@MapperScan("com.darkness.mapper")
|
||||
@MapperScan("com.darkness.api.mapper")
|
||||
public class DarknessApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.api.mapper.demo;
|
||||
|
||||
public class DemoMapper {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.api.mapper.test;
|
||||
|
||||
public interface TestMapper {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.api.repository.demo;
|
||||
|
||||
public interface DemoRepository {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.api.repository.test;
|
||||
|
||||
public interface TestRepository {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.api.service.demo;
|
||||
|
||||
public interface DemoService {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.api.service.test;
|
||||
|
||||
public interface TestService {
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.darkness.common;
|
||||
package com.darkness.common.pojo;
|
||||
|
||||
/**
|
||||
* 公共常量类
|
39
src/main/java/com/darkness/common/util/SpringUtils.java
Normal file
39
src/main/java/com/darkness/common/util/SpringUtils.java
Normal file
@ -0,0 +1,39 @@
|
||||
package com.darkness.common.util;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class SpringUtils {
|
||||
|
||||
private static SpringUtils s_instance;
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
public SpringUtils() {
|
||||
s_instance = this;
|
||||
}
|
||||
|
||||
public static ApplicationContext getApplicationContext() {
|
||||
return s_instance.applicationContext;
|
||||
}
|
||||
|
||||
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
||||
this.applicationContext = applicationContext;
|
||||
}
|
||||
|
||||
public static <T> T getComponent(Class<T> clz) {
|
||||
try {
|
||||
return s_instance.applicationContext.getBean(clz);
|
||||
} catch (NoSuchBeanDefinitionException var2) {
|
||||
log.warn(var2.getMessage());
|
||||
} catch (Exception var3) {
|
||||
log.warn("Unexpected exception", var3);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.engine.demo;
|
||||
|
||||
public class DemoController {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.engine.demo;
|
||||
|
||||
public class DemoServiceImpl {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.engine.test;
|
||||
|
||||
public class TestController {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.engine.test;
|
||||
|
||||
public class TestServiceImpl {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.pojo.cmd.demo;
|
||||
|
||||
public class DemoCommand {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.pojo.cmd.test;
|
||||
|
||||
public class TestCommand {
|
||||
}
|
4
src/main/java/com/darkness/pojo/dto/demo/DemoDto.java
Normal file
4
src/main/java/com/darkness/pojo/dto/demo/DemoDto.java
Normal file
@ -0,0 +1,4 @@
|
||||
package com.darkness.pojo.dto.demo;
|
||||
|
||||
public class DemoDto {
|
||||
}
|
4
src/main/java/com/darkness/pojo/dto/test/TestDto.java
Normal file
4
src/main/java/com/darkness/pojo/dto/test/TestDto.java
Normal file
@ -0,0 +1,4 @@
|
||||
package com.darkness.pojo.dto.test;
|
||||
|
||||
public class TestDto {
|
||||
}
|
@ -4,8 +4,8 @@
|
||||
package com.darkness.pojo.entity;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.DemoUnit;
|
||||
import com.darkness.pojo.entity.tables.DemoUser;
|
||||
import com.darkness.pojo.entity.tables.SysDic;
|
||||
import com.darkness.pojo.entity.tables.SysDicType;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@ -19,30 +19,30 @@ import org.jooq.impl.SchemaImpl;
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Konosuba extends SchemaImpl {
|
||||
public class Darkness extends SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>konosuba</code>
|
||||
* The reference instance of <code>darkness</code>
|
||||
*/
|
||||
public static final Konosuba KONOSUBA = new Konosuba();
|
||||
public static final Darkness DARKNESS = new Darkness();
|
||||
|
||||
/**
|
||||
* The table <code>konosuba.demo_unit</code>.
|
||||
* 字典表
|
||||
*/
|
||||
public final DemoUnit DEMO_UNIT = DemoUnit.DEMO_UNIT;
|
||||
public final SysDic SYS_DIC = SysDic.SYS_DIC;
|
||||
|
||||
/**
|
||||
* The table <code>konosuba.demo_user</code>.
|
||||
* 字典类型表
|
||||
*/
|
||||
public final DemoUser DEMO_USER = DemoUser.DEMO_USER;
|
||||
public final SysDicType SYS_DIC_TYPE = SysDicType.SYS_DIC_TYPE;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Konosuba() {
|
||||
super("konosuba", null);
|
||||
private Darkness() {
|
||||
super("darkness", null);
|
||||
}
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ public class Konosuba extends SchemaImpl {
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
return Arrays.<Table<?>>asList(
|
||||
DemoUnit.DEMO_UNIT,
|
||||
DemoUser.DEMO_USER);
|
||||
SysDic.SYS_DIC,
|
||||
SysDicType.SYS_DIC_TYPE);
|
||||
}
|
||||
}
|
@ -25,9 +25,9 @@ public class DefaultCatalog extends CatalogImpl {
|
||||
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
|
||||
|
||||
/**
|
||||
* The schema <code>konosuba</code>.
|
||||
* The schema <code>darkness</code>.
|
||||
*/
|
||||
public final Konosuba KONOSUBA = Konosuba.KONOSUBA;
|
||||
public final Darkness DARKNESS = Darkness.DARKNESS;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
@ -39,6 +39,6 @@ public class DefaultCatalog extends CatalogImpl {
|
||||
@Override
|
||||
public final List<Schema> getSchemas() {
|
||||
return Arrays.<Schema>asList(
|
||||
Konosuba.KONOSUBA);
|
||||
Darkness.DARKNESS);
|
||||
}
|
||||
}
|
||||
|
@ -4,10 +4,10 @@
|
||||
package com.darkness.pojo.entity;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.DemoUnit;
|
||||
import com.darkness.pojo.entity.tables.DemoUser;
|
||||
import com.darkness.pojo.entity.tables.records.DemoUnitRecord;
|
||||
import com.darkness.pojo.entity.tables.records.DemoUserRecord;
|
||||
import com.darkness.pojo.entity.tables.SysDic;
|
||||
import com.darkness.pojo.entity.tables.SysDicType;
|
||||
import com.darkness.pojo.entity.tables.records.SysDicRecord;
|
||||
import com.darkness.pojo.entity.tables.records.SysDicTypeRecord;
|
||||
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
@ -17,7 +17,7 @@ import org.jooq.impl.Internal;
|
||||
|
||||
/**
|
||||
* A class modelling foreign key relationships and constraints of tables in
|
||||
* konosuba.
|
||||
* darkness.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Keys {
|
||||
@ -26,6 +26,6 @@ public class Keys {
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<DemoUnitRecord> KEY_DEMO_UNIT_PRIMARY = Internal.createUniqueKey(DemoUnit.DEMO_UNIT, DSL.name("KEY_demo_unit_PRIMARY"), new TableField[] { DemoUnit.DEMO_UNIT.ID }, true);
|
||||
public static final UniqueKey<DemoUserRecord> KEY_DEMO_USER_PRIMARY = Internal.createUniqueKey(DemoUser.DEMO_USER, DSL.name("KEY_demo_user_PRIMARY"), new TableField[] { DemoUser.DEMO_USER.ID }, true);
|
||||
public static final UniqueKey<SysDicRecord> KEY_SYS_DIC_PRIMARY = Internal.createUniqueKey(SysDic.SYS_DIC, DSL.name("KEY_sys_dic_PRIMARY"), new TableField[] { SysDic.SYS_DIC.ID }, true);
|
||||
public static final UniqueKey<SysDicTypeRecord> KEY_SYS_DIC_TYPE_PRIMARY = Internal.createUniqueKey(SysDicType.SYS_DIC_TYPE, DSL.name("KEY_sys_dic_type_PRIMARY"), new TableField[] { SysDicType.SYS_DIC_TYPE.ID }, true);
|
||||
}
|
||||
|
@ -4,23 +4,23 @@
|
||||
package com.darkness.pojo.entity;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.DemoUnit;
|
||||
import com.darkness.pojo.entity.tables.DemoUser;
|
||||
import com.darkness.pojo.entity.tables.SysDic;
|
||||
import com.darkness.pojo.entity.tables.SysDicType;
|
||||
|
||||
|
||||
/**
|
||||
* Convenience access to all tables in konosuba.
|
||||
* Convenience access to all tables in darkness.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table <code>konosuba.demo_unit</code>.
|
||||
* 字典表
|
||||
*/
|
||||
public static final DemoUnit DEMO_UNIT = DemoUnit.DEMO_UNIT;
|
||||
public static final SysDic SYS_DIC = SysDic.SYS_DIC;
|
||||
|
||||
/**
|
||||
* The table <code>konosuba.demo_user</code>.
|
||||
* 字典类型表
|
||||
*/
|
||||
public static final DemoUser DEMO_USER = DemoUser.DEMO_USER;
|
||||
public static final SysDicType SYS_DIC_TYPE = SysDicType.SYS_DIC_TYPE;
|
||||
}
|
||||
|
@ -1,148 +0,0 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.Keys;
|
||||
import com.darkness.pojo.entity.Konosuba;
|
||||
import com.darkness.pojo.entity.tables.records.DemoUnitRecord;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row2;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class DemoUnit extends TableImpl<DemoUnitRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>konosuba.demo_unit</code>
|
||||
*/
|
||||
public static final DemoUnit DEMO_UNIT = new DemoUnit();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<DemoUnitRecord> getRecordType() {
|
||||
return DemoUnitRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>konosuba.demo_unit.id</code>.
|
||||
*/
|
||||
public final TableField<DemoUnitRecord, Integer> ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>konosuba.demo_unit.unit_name</code>.
|
||||
*/
|
||||
public final TableField<DemoUnitRecord, String> UNIT_NAME = createField(DSL.name("unit_name"), SQLDataType.VARCHAR(255), this, "");
|
||||
|
||||
private DemoUnit(Name alias, Table<DemoUnitRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private DemoUnit(Name alias, Table<DemoUnitRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>konosuba.demo_unit</code> table reference
|
||||
*/
|
||||
public DemoUnit(String alias) {
|
||||
this(DSL.name(alias), DEMO_UNIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>konosuba.demo_unit</code> table reference
|
||||
*/
|
||||
public DemoUnit(Name alias) {
|
||||
this(alias, DEMO_UNIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>konosuba.demo_unit</code> table reference
|
||||
*/
|
||||
public DemoUnit() {
|
||||
this(DSL.name("demo_unit"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> DemoUnit(Table<O> child, ForeignKey<O, DemoUnitRecord> key) {
|
||||
super(child, key, DEMO_UNIT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return Konosuba.KONOSUBA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<DemoUnitRecord, Integer> getIdentity() {
|
||||
return (Identity<DemoUnitRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<DemoUnitRecord> getPrimaryKey() {
|
||||
return Keys.KEY_DEMO_UNIT_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<DemoUnitRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<DemoUnitRecord>>asList(Keys.KEY_DEMO_UNIT_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUnit as(String alias) {
|
||||
return new DemoUnit(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUnit as(Name alias) {
|
||||
return new DemoUnit(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public DemoUnit rename(String name) {
|
||||
return new DemoUnit(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public DemoUnit rename(Name name) {
|
||||
return new DemoUnit(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row2 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row2<Integer, String> fieldsRow() {
|
||||
return (Row2) super.fieldsRow();
|
||||
}
|
||||
}
|
@ -1,148 +0,0 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.Keys;
|
||||
import com.darkness.pojo.entity.Konosuba;
|
||||
import com.darkness.pojo.entity.tables.records.DemoUserRecord;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row2;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class DemoUser extends TableImpl<DemoUserRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>konosuba.demo_user</code>
|
||||
*/
|
||||
public static final DemoUser DEMO_USER = new DemoUser();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<DemoUserRecord> getRecordType() {
|
||||
return DemoUserRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>konosuba.demo_user.id</code>.
|
||||
*/
|
||||
public final TableField<DemoUserRecord, Integer> ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>konosuba.demo_user.user_name</code>.
|
||||
*/
|
||||
public final TableField<DemoUserRecord, String> USER_NAME = createField(DSL.name("user_name"), SQLDataType.VARCHAR(255), this, "");
|
||||
|
||||
private DemoUser(Name alias, Table<DemoUserRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private DemoUser(Name alias, Table<DemoUserRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>konosuba.demo_user</code> table reference
|
||||
*/
|
||||
public DemoUser(String alias) {
|
||||
this(DSL.name(alias), DEMO_USER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>konosuba.demo_user</code> table reference
|
||||
*/
|
||||
public DemoUser(Name alias) {
|
||||
this(alias, DEMO_USER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>konosuba.demo_user</code> table reference
|
||||
*/
|
||||
public DemoUser() {
|
||||
this(DSL.name("demo_user"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> DemoUser(Table<O> child, ForeignKey<O, DemoUserRecord> key) {
|
||||
super(child, key, DEMO_USER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return Konosuba.KONOSUBA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<DemoUserRecord, Integer> getIdentity() {
|
||||
return (Identity<DemoUserRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<DemoUserRecord> getPrimaryKey() {
|
||||
return Keys.KEY_DEMO_USER_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<DemoUserRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<DemoUserRecord>>asList(Keys.KEY_DEMO_USER_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUser as(String alias) {
|
||||
return new DemoUser(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUser as(Name alias) {
|
||||
return new DemoUser(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public DemoUser rename(String name) {
|
||||
return new DemoUser(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public DemoUser rename(Name name) {
|
||||
return new DemoUser(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row2 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row2<Integer, String> fieldsRow() {
|
||||
return (Row2) super.fieldsRow();
|
||||
}
|
||||
}
|
244
src/main/java/com/darkness/pojo/entity/tables/SysDic.java
Normal file
244
src/main/java/com/darkness/pojo/entity/tables/SysDic.java
Normal file
@ -0,0 +1,244 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.Darkness;
|
||||
import com.darkness.pojo.entity.Keys;
|
||||
import com.darkness.pojo.entity.tables.records.SysDicRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row21;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 字典表
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class SysDic extends TableImpl<SysDicRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>darkness.sys_dic</code>
|
||||
*/
|
||||
public static final SysDic SYS_DIC = new SysDic();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<SysDicRecord> getRecordType() {
|
||||
return SysDicRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.id</code>. 主键
|
||||
*/
|
||||
public final TableField<SysDicRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "主键");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.type_code</code>. 类型编码
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> TYPE_CODE = createField(DSL.name("type_code"), SQLDataType.VARCHAR(50), this, "类型编码");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.code</code>. 编码
|
||||
*/
|
||||
public final TableField<SysDicRecord, Integer> CODE = createField(DSL.name("code"), SQLDataType.INTEGER, this, "编码");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.name</code>. 名称
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255), this, "名称");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.parenet_code</code>. 父编码
|
||||
*/
|
||||
public final TableField<SysDicRecord, Integer> PARENET_CODE = createField(DSL.name("parenet_code"), SQLDataType.INTEGER, this, "父编码");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.tree_code</code>. 树编码
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> TREE_CODE = createField(DSL.name("tree_code"), SQLDataType.VARCHAR(200), this, "树编码");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.order</code>. 排序(正序)
|
||||
*/
|
||||
public final TableField<SysDicRecord, Integer> ORDER = createField(DSL.name("order"), SQLDataType.INTEGER, this, "排序(正序)");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.level</code>. 级别
|
||||
*/
|
||||
public final TableField<SysDicRecord, Integer> LEVEL = createField(DSL.name("level"), SQLDataType.INTEGER, this, "级别");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.namespace_id</code>. 域空间id
|
||||
*/
|
||||
public final TableField<SysDicRecord, Integer> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.INTEGER.nullable(false), this, "域空间id");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public final TableField<SysDicRecord, Long> CREATOR_UID = createField(DSL.name("creator_uid"), SQLDataType.BIGINT, this, "创建者用户id");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public final TableField<SysDicRecord, LocalDateTime> CREATE_TIME = createField(DSL.name("create_time"), SQLDataType.LOCALDATETIME(0), this, "记录创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public final TableField<SysDicRecord, Long> OPERATOR_UID = createField(DSL.name("operator_uid"), SQLDataType.BIGINT, this, "更新人用户id");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public final TableField<SysDicRecord, LocalDateTime> UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(0), this, "记录更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public final TableField<SysDicRecord, Byte> DELETE_FLAG = createField(DSL.name("delete_flag"), SQLDataType.TINYINT, this, "是否删除标识位(0未删除,1已删除)");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.business_value</code>. 业务数据
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> BUSINESS_VALUE = createField(DSL.name("business_value"), SQLDataType.VARCHAR(255), this, "业务数据");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.str_code</code>. 网信办一期编码
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> STR_CODE = createField(DSL.name("str_code"), SQLDataType.VARCHAR(255), this, "网信办一期编码");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.ga_code</code>. 公安编码
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> GA_CODE = createField(DSL.name("ga_code"), SQLDataType.VARCHAR(255), this, "公安编码");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> APP_ID = createField(DSL.name("app_id"), SQLDataType.VARCHAR(255), this, "多应用的应用id");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.is_enable</code>. 是否启用
|
||||
*/
|
||||
public final TableField<SysDicRecord, Integer> IS_ENABLE = createField(DSL.name("is_enable"), SQLDataType.INTEGER, this, "是否启用");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.filter_item</code>. 过滤项
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> FILTER_ITEM = createField(DSL.name("filter_item"), SQLDataType.VARCHAR(255), this, "过滤项");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic.business_value_two</code>. 1:化解类型,2:咨询类型
|
||||
*/
|
||||
public final TableField<SysDicRecord, String> BUSINESS_VALUE_TWO = createField(DSL.name("business_value_two"), SQLDataType.VARCHAR(255), this, "1:化解类型,2:咨询类型");
|
||||
|
||||
private SysDic(Name alias, Table<SysDicRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private SysDic(Name alias, Table<SysDicRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("字典表"), TableOptions.table());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>darkness.sys_dic</code> table reference
|
||||
*/
|
||||
public SysDic(String alias) {
|
||||
this(DSL.name(alias), SYS_DIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>darkness.sys_dic</code> table reference
|
||||
*/
|
||||
public SysDic(Name alias) {
|
||||
this(alias, SYS_DIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>darkness.sys_dic</code> table reference
|
||||
*/
|
||||
public SysDic() {
|
||||
this(DSL.name("sys_dic"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> SysDic(Table<O> child, ForeignKey<O, SysDicRecord> key) {
|
||||
super(child, key, SYS_DIC);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return Darkness.DARKNESS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<SysDicRecord, Long> getIdentity() {
|
||||
return (Identity<SysDicRecord, Long>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<SysDicRecord> getPrimaryKey() {
|
||||
return Keys.KEY_SYS_DIC_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<SysDicRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<SysDicRecord>>asList(Keys.KEY_SYS_DIC_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDic as(String alias) {
|
||||
return new SysDic(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDic as(Name alias) {
|
||||
return new SysDic(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public SysDic rename(String name) {
|
||||
return new SysDic(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public SysDic rename(Name name) {
|
||||
return new SysDic(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row21 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row21<Long, String, Integer, String, Integer, String, Integer, Integer, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String, String, String, String, Integer, String, String> fieldsRow() {
|
||||
return (Row21) super.fieldsRow();
|
||||
}
|
||||
}
|
194
src/main/java/com/darkness/pojo/entity/tables/SysDicType.java
Normal file
194
src/main/java/com/darkness/pojo/entity/tables/SysDicType.java
Normal file
@ -0,0 +1,194 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.Darkness;
|
||||
import com.darkness.pojo.entity.Keys;
|
||||
import com.darkness.pojo.entity.tables.records.SysDicTypeRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row11;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 字典类型表
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class SysDicType extends TableImpl<SysDicTypeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>darkness.sys_dic_type</code>
|
||||
*/
|
||||
public static final SysDicType SYS_DIC_TYPE = new SysDicType();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<SysDicTypeRecord> getRecordType() {
|
||||
return SysDicTypeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.id</code>. 主键
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "主键");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.type_code</code>. 类型编码
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, String> TYPE_CODE = createField(DSL.name("type_code"), SQLDataType.VARCHAR(50), this, "类型编码");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.type_name</code>. 名称
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, String> TYPE_NAME = createField(DSL.name("type_name"), SQLDataType.VARCHAR(20), this, "名称");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.order</code>. 排序
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, Integer> ORDER = createField(DSL.name("order"), SQLDataType.INTEGER, this, "排序");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.namespace_id</code>. 域空间id
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, Integer> NAMESPACE_ID = createField(DSL.name("namespace_id"), SQLDataType.INTEGER.nullable(false), this, "域空间id");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, Long> CREATOR_UID = createField(DSL.name("creator_uid"), SQLDataType.BIGINT, this, "创建者用户id");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, LocalDateTime> CREATE_TIME = createField(DSL.name("create_time"), SQLDataType.LOCALDATETIME(0), this, "记录创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, Long> OPERATOR_UID = createField(DSL.name("operator_uid"), SQLDataType.BIGINT, this, "更新人用户id");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, LocalDateTime> UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(0), this, "记录更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, Byte> DELETE_FLAG = createField(DSL.name("delete_flag"), SQLDataType.TINYINT, this, "是否删除标识位(0未删除,1已删除)");
|
||||
|
||||
/**
|
||||
* The column <code>darkness.sys_dic_type.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
public final TableField<SysDicTypeRecord, String> APP_ID = createField(DSL.name("app_id"), SQLDataType.VARCHAR(255), this, "多应用的应用id");
|
||||
|
||||
private SysDicType(Name alias, Table<SysDicTypeRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private SysDicType(Name alias, Table<SysDicTypeRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("字典类型表"), TableOptions.table());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>darkness.sys_dic_type</code> table reference
|
||||
*/
|
||||
public SysDicType(String alias) {
|
||||
this(DSL.name(alias), SYS_DIC_TYPE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>darkness.sys_dic_type</code> table reference
|
||||
*/
|
||||
public SysDicType(Name alias) {
|
||||
this(alias, SYS_DIC_TYPE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>darkness.sys_dic_type</code> table reference
|
||||
*/
|
||||
public SysDicType() {
|
||||
this(DSL.name("sys_dic_type"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> SysDicType(Table<O> child, ForeignKey<O, SysDicTypeRecord> key) {
|
||||
super(child, key, SYS_DIC_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return Darkness.DARKNESS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<SysDicTypeRecord, Long> getIdentity() {
|
||||
return (Identity<SysDicTypeRecord, Long>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<SysDicTypeRecord> getPrimaryKey() {
|
||||
return Keys.KEY_SYS_DIC_TYPE_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<SysDicTypeRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<SysDicTypeRecord>>asList(Keys.KEY_SYS_DIC_TYPE_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicType as(String alias) {
|
||||
return new SysDicType(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicType as(Name alias) {
|
||||
return new SysDicType(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public SysDicType rename(String name) {
|
||||
return new SysDicType(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public SysDicType rename(Name name) {
|
||||
return new SysDicType(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row11 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row11<Long, String, String, Integer, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String> fieldsRow() {
|
||||
return (Row11) super.fieldsRow();
|
||||
}
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.daos;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.DemoUnit;
|
||||
import com.darkness.pojo.entity.tables.records.DemoUnitRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Configuration;
|
||||
import org.jooq.impl.DAOImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
@Repository
|
||||
public class DemoUnitDao extends DAOImpl<DemoUnitRecord, com.darkness.pojo.entity.tables.pojos.DemoUnit, Integer> {
|
||||
|
||||
/**
|
||||
* Create a new DemoUnitDao without any configuration
|
||||
*/
|
||||
public DemoUnitDao() {
|
||||
super(DemoUnit.DEMO_UNIT, com.darkness.pojo.entity.tables.pojos.DemoUnit.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new DemoUnitDao with an attached configuration
|
||||
*/
|
||||
@Autowired
|
||||
public DemoUnitDao(Configuration configuration) {
|
||||
super(DemoUnit.DEMO_UNIT, com.darkness.pojo.entity.tables.pojos.DemoUnit.class, configuration);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getId(com.darkness.pojo.entity.tables.pojos.DemoUnit object) {
|
||||
return object.getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.DemoUnit> fetchRangeOfId(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(DemoUnit.DEMO_UNIT.ID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>id IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.DemoUnit> fetchById(Integer... values) {
|
||||
return fetch(DemoUnit.DEMO_UNIT.ID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch a unique record that has <code>id = value</code>
|
||||
*/
|
||||
public com.darkness.pojo.entity.tables.pojos.DemoUnit fetchOneById(Integer value) {
|
||||
return fetchOne(DemoUnit.DEMO_UNIT.ID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>unit_name BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.DemoUnit> fetchRangeOfUnitName(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(DemoUnit.DEMO_UNIT.UNIT_NAME, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>unit_name IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.DemoUnit> fetchByUnitName(String... values) {
|
||||
return fetch(DemoUnit.DEMO_UNIT.UNIT_NAME, values);
|
||||
}
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.daos;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.DemoUser;
|
||||
import com.darkness.pojo.entity.tables.records.DemoUserRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Configuration;
|
||||
import org.jooq.impl.DAOImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
@Repository
|
||||
public class DemoUserDao extends DAOImpl<DemoUserRecord, com.darkness.pojo.entity.tables.pojos.DemoUser, Integer> {
|
||||
|
||||
/**
|
||||
* Create a new DemoUserDao without any configuration
|
||||
*/
|
||||
public DemoUserDao() {
|
||||
super(DemoUser.DEMO_USER, com.darkness.pojo.entity.tables.pojos.DemoUser.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new DemoUserDao with an attached configuration
|
||||
*/
|
||||
@Autowired
|
||||
public DemoUserDao(Configuration configuration) {
|
||||
super(DemoUser.DEMO_USER, com.darkness.pojo.entity.tables.pojos.DemoUser.class, configuration);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getId(com.darkness.pojo.entity.tables.pojos.DemoUser object) {
|
||||
return object.getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.DemoUser> fetchRangeOfId(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(DemoUser.DEMO_USER.ID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>id IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.DemoUser> fetchById(Integer... values) {
|
||||
return fetch(DemoUser.DEMO_USER.ID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch a unique record that has <code>id = value</code>
|
||||
*/
|
||||
public com.darkness.pojo.entity.tables.pojos.DemoUser fetchOneById(Integer value) {
|
||||
return fetchOne(DemoUser.DEMO_USER.ID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>user_name BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.DemoUser> fetchRangeOfUserName(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(DemoUser.DEMO_USER.USER_NAME, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>user_name IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.DemoUser> fetchByUserName(String... values) {
|
||||
return fetch(DemoUser.DEMO_USER.USER_NAME, values);
|
||||
}
|
||||
}
|
@ -0,0 +1,346 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.daos;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.SysDic;
|
||||
import com.darkness.pojo.entity.tables.records.SysDicRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Configuration;
|
||||
import org.jooq.impl.DAOImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
|
||||
/**
|
||||
* 字典表
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
@Repository
|
||||
public class SysDicDao extends DAOImpl<SysDicRecord, com.darkness.pojo.entity.tables.pojos.SysDic, Long> {
|
||||
|
||||
/**
|
||||
* Create a new SysDicDao without any configuration
|
||||
*/
|
||||
public SysDicDao() {
|
||||
super(SysDic.SYS_DIC, com.darkness.pojo.entity.tables.pojos.SysDic.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new SysDicDao with an attached configuration
|
||||
*/
|
||||
@Autowired
|
||||
public SysDicDao(Configuration configuration) {
|
||||
super(SysDic.SYS_DIC, com.darkness.pojo.entity.tables.pojos.SysDic.class, configuration);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getId(com.darkness.pojo.entity.tables.pojos.SysDic object) {
|
||||
return object.getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfId(Long lowerInclusive, Long upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.ID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>id IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchById(Long... values) {
|
||||
return fetch(SysDic.SYS_DIC.ID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch a unique record that has <code>id = value</code>
|
||||
*/
|
||||
public com.darkness.pojo.entity.tables.pojos.SysDic fetchOneById(Long value) {
|
||||
return fetchOne(SysDic.SYS_DIC.ID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>type_code BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfTypeCode(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.TYPE_CODE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>type_code IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByTypeCode(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.TYPE_CODE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>code BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfCode(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.CODE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>code IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByCode(Integer... values) {
|
||||
return fetch(SysDic.SYS_DIC.CODE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>name BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfName(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.NAME, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>name IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByName(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.NAME, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>parenet_code BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfParenetCode(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.PARENET_CODE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>parenet_code IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByParenetCode(Integer... values) {
|
||||
return fetch(SysDic.SYS_DIC.PARENET_CODE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>tree_code BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfTreeCode(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.TREE_CODE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>tree_code IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByTreeCode(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.TREE_CODE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>order BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfOrder(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.ORDER, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>order IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByOrder(Integer... values) {
|
||||
return fetch(SysDic.SYS_DIC.ORDER, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>level BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfLevel(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.LEVEL, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>level IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByLevel(Integer... values) {
|
||||
return fetch(SysDic.SYS_DIC.LEVEL, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>namespace_id BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfNamespaceId(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.NAMESPACE_ID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>namespace_id IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByNamespaceId(Integer... values) {
|
||||
return fetch(SysDic.SYS_DIC.NAMESPACE_ID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>creator_uid BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfCreatorUid(Long lowerInclusive, Long upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.CREATOR_UID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>creator_uid IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByCreatorUid(Long... values) {
|
||||
return fetch(SysDic.SYS_DIC.CREATOR_UID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>create_time BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.CREATE_TIME, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>create_time IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByCreateTime(LocalDateTime... values) {
|
||||
return fetch(SysDic.SYS_DIC.CREATE_TIME, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>operator_uid BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfOperatorUid(Long lowerInclusive, Long upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.OPERATOR_UID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>operator_uid IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByOperatorUid(Long... values) {
|
||||
return fetch(SysDic.SYS_DIC.OPERATOR_UID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>update_time BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.UPDATE_TIME, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>update_time IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByUpdateTime(LocalDateTime... values) {
|
||||
return fetch(SysDic.SYS_DIC.UPDATE_TIME, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>delete_flag BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfDeleteFlag(Byte lowerInclusive, Byte upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.DELETE_FLAG, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>delete_flag IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByDeleteFlag(Byte... values) {
|
||||
return fetch(SysDic.SYS_DIC.DELETE_FLAG, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>business_value BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfBusinessValue(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.BUSINESS_VALUE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>business_value IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByBusinessValue(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.BUSINESS_VALUE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>str_code BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfStrCode(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.STR_CODE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>str_code IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByStrCode(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.STR_CODE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>ga_code BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfGaCode(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.GA_CODE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>ga_code IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByGaCode(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.GA_CODE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>app_id BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfAppId(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.APP_ID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>app_id IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByAppId(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.APP_ID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>is_enable BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfIsEnable(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.IS_ENABLE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>is_enable IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByIsEnable(Integer... values) {
|
||||
return fetch(SysDic.SYS_DIC.IS_ENABLE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>filter_item BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfFilterItem(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.FILTER_ITEM, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>filter_item IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByFilterItem(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.FILTER_ITEM, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>business_value_two BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchRangeOfBusinessValueTwo(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDic.SYS_DIC.BUSINESS_VALUE_TWO, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>business_value_two IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDic> fetchByBusinessValueTwo(String... values) {
|
||||
return fetch(SysDic.SYS_DIC.BUSINESS_VALUE_TWO, values);
|
||||
}
|
||||
}
|
@ -0,0 +1,206 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.daos;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.SysDicType;
|
||||
import com.darkness.pojo.entity.tables.records.SysDicTypeRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Configuration;
|
||||
import org.jooq.impl.DAOImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
|
||||
/**
|
||||
* 字典类型表
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
@Repository
|
||||
public class SysDicTypeDao extends DAOImpl<SysDicTypeRecord, com.darkness.pojo.entity.tables.pojos.SysDicType, Long> {
|
||||
|
||||
/**
|
||||
* Create a new SysDicTypeDao without any configuration
|
||||
*/
|
||||
public SysDicTypeDao() {
|
||||
super(SysDicType.SYS_DIC_TYPE, com.darkness.pojo.entity.tables.pojos.SysDicType.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new SysDicTypeDao with an attached configuration
|
||||
*/
|
||||
@Autowired
|
||||
public SysDicTypeDao(Configuration configuration) {
|
||||
super(SysDicType.SYS_DIC_TYPE, com.darkness.pojo.entity.tables.pojos.SysDicType.class, configuration);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getId(com.darkness.pojo.entity.tables.pojos.SysDicType object) {
|
||||
return object.getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfId(Long lowerInclusive, Long upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.ID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>id IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchById(Long... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.ID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch a unique record that has <code>id = value</code>
|
||||
*/
|
||||
public com.darkness.pojo.entity.tables.pojos.SysDicType fetchOneById(Long value) {
|
||||
return fetchOne(SysDicType.SYS_DIC_TYPE.ID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>type_code BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfTypeCode(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.TYPE_CODE, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>type_code IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByTypeCode(String... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.TYPE_CODE, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>type_name BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfTypeName(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.TYPE_NAME, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>type_name IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByTypeName(String... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.TYPE_NAME, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>order BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfOrder(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.ORDER, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>order IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByOrder(Integer... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.ORDER, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>namespace_id BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfNamespaceId(Integer lowerInclusive, Integer upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.NAMESPACE_ID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>namespace_id IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByNamespaceId(Integer... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.NAMESPACE_ID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>creator_uid BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfCreatorUid(Long lowerInclusive, Long upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.CREATOR_UID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>creator_uid IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByCreatorUid(Long... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.CREATOR_UID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>create_time BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.CREATE_TIME, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>create_time IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByCreateTime(LocalDateTime... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.CREATE_TIME, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>operator_uid BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfOperatorUid(Long lowerInclusive, Long upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.OPERATOR_UID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>operator_uid IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByOperatorUid(Long... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.OPERATOR_UID, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>update_time BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.UPDATE_TIME, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>update_time IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByUpdateTime(LocalDateTime... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.UPDATE_TIME, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>delete_flag BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfDeleteFlag(Byte lowerInclusive, Byte upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.DELETE_FLAG, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>delete_flag IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByDeleteFlag(Byte... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.DELETE_FLAG, values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>app_id BETWEEN lowerInclusive AND upperInclusive</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchRangeOfAppId(String lowerInclusive, String upperInclusive) {
|
||||
return fetchRange(SysDicType.SYS_DIC_TYPE.APP_ID, lowerInclusive, upperInclusive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch records that have <code>app_id IN (values)</code>
|
||||
*/
|
||||
public List<com.darkness.pojo.entity.tables.pojos.SysDicType> fetchByAppId(String... values) {
|
||||
return fetch(SysDicType.SYS_DIC_TYPE.APP_ID, values);
|
||||
}
|
||||
}
|
@ -1,77 +0,0 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class DemoUnit implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer id;
|
||||
private String unitName;
|
||||
|
||||
public DemoUnit() {}
|
||||
|
||||
public DemoUnit(DemoUnit value) {
|
||||
this.id = value.id;
|
||||
this.unitName = value.unitName;
|
||||
}
|
||||
|
||||
public DemoUnit(
|
||||
Integer id,
|
||||
String unitName
|
||||
) {
|
||||
this.id = id;
|
||||
this.unitName = unitName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>konosuba.demo_unit.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>konosuba.demo_unit.id</code>.
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>konosuba.demo_unit.unit_name</code>.
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getUnitName() {
|
||||
return this.unitName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>konosuba.demo_unit.unit_name</code>.
|
||||
*/
|
||||
public void setUnitName(String unitName) {
|
||||
this.unitName = unitName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("DemoUnit (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(unitName);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -1,77 +0,0 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class DemoUser implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer id;
|
||||
private String userName;
|
||||
|
||||
public DemoUser() {}
|
||||
|
||||
public DemoUser(DemoUser value) {
|
||||
this.id = value.id;
|
||||
this.userName = value.userName;
|
||||
}
|
||||
|
||||
public DemoUser(
|
||||
Integer id,
|
||||
String userName
|
||||
) {
|
||||
this.id = id;
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>konosuba.demo_user.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>konosuba.demo_user.id</code>.
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>konosuba.demo_user.user_name</code>.
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getUserName() {
|
||||
return this.userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>konosuba.demo_user.user_name</code>.
|
||||
*/
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("DemoUser (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(userName);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
449
src/main/java/com/darkness/pojo/entity/tables/pojos/SysDic.java
Normal file
449
src/main/java/com/darkness/pojo/entity/tables/pojos/SysDic.java
Normal file
@ -0,0 +1,449 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
|
||||
/**
|
||||
* 字典表
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class SysDic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long id;
|
||||
private String typeCode;
|
||||
private Integer code;
|
||||
private String name;
|
||||
private Integer parenetCode;
|
||||
private String treeCode;
|
||||
private Integer order;
|
||||
private Integer level;
|
||||
private Integer namespaceId;
|
||||
private Long creatorUid;
|
||||
private LocalDateTime createTime;
|
||||
private Long operatorUid;
|
||||
private LocalDateTime updateTime;
|
||||
private Byte deleteFlag;
|
||||
private String businessValue;
|
||||
private String strCode;
|
||||
private String gaCode;
|
||||
private String appId;
|
||||
private Integer isEnable;
|
||||
private String filterItem;
|
||||
private String businessValueTwo;
|
||||
|
||||
public SysDic() {}
|
||||
|
||||
public SysDic(SysDic value) {
|
||||
this.id = value.id;
|
||||
this.typeCode = value.typeCode;
|
||||
this.code = value.code;
|
||||
this.name = value.name;
|
||||
this.parenetCode = value.parenetCode;
|
||||
this.treeCode = value.treeCode;
|
||||
this.order = value.order;
|
||||
this.level = value.level;
|
||||
this.namespaceId = value.namespaceId;
|
||||
this.creatorUid = value.creatorUid;
|
||||
this.createTime = value.createTime;
|
||||
this.operatorUid = value.operatorUid;
|
||||
this.updateTime = value.updateTime;
|
||||
this.deleteFlag = value.deleteFlag;
|
||||
this.businessValue = value.businessValue;
|
||||
this.strCode = value.strCode;
|
||||
this.gaCode = value.gaCode;
|
||||
this.appId = value.appId;
|
||||
this.isEnable = value.isEnable;
|
||||
this.filterItem = value.filterItem;
|
||||
this.businessValueTwo = value.businessValueTwo;
|
||||
}
|
||||
|
||||
public SysDic(
|
||||
Long id,
|
||||
String typeCode,
|
||||
Integer code,
|
||||
String name,
|
||||
Integer parenetCode,
|
||||
String treeCode,
|
||||
Integer order,
|
||||
Integer level,
|
||||
Integer namespaceId,
|
||||
Long creatorUid,
|
||||
LocalDateTime createTime,
|
||||
Long operatorUid,
|
||||
LocalDateTime updateTime,
|
||||
Byte deleteFlag,
|
||||
String businessValue,
|
||||
String strCode,
|
||||
String gaCode,
|
||||
String appId,
|
||||
Integer isEnable,
|
||||
String filterItem,
|
||||
String businessValueTwo
|
||||
) {
|
||||
this.id = id;
|
||||
this.typeCode = typeCode;
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
this.parenetCode = parenetCode;
|
||||
this.treeCode = treeCode;
|
||||
this.order = order;
|
||||
this.level = level;
|
||||
this.namespaceId = namespaceId;
|
||||
this.creatorUid = creatorUid;
|
||||
this.createTime = createTime;
|
||||
this.operatorUid = operatorUid;
|
||||
this.updateTime = updateTime;
|
||||
this.deleteFlag = deleteFlag;
|
||||
this.businessValue = businessValue;
|
||||
this.strCode = strCode;
|
||||
this.gaCode = gaCode;
|
||||
this.appId = appId;
|
||||
this.isEnable = isEnable;
|
||||
this.filterItem = filterItem;
|
||||
this.businessValueTwo = businessValueTwo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.id</code>. 主键
|
||||
*/
|
||||
public Long getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.id</code>. 主键
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.type_code</code>. 类型编码
|
||||
*/
|
||||
@Size(max = 50)
|
||||
public String getTypeCode() {
|
||||
return this.typeCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.type_code</code>. 类型编码
|
||||
*/
|
||||
public void setTypeCode(String typeCode) {
|
||||
this.typeCode = typeCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.code</code>. 编码
|
||||
*/
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.code</code>. 编码
|
||||
*/
|
||||
public void setCode(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.name</code>. 名称
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.name</code>. 名称
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.parenet_code</code>. 父编码
|
||||
*/
|
||||
public Integer getParenetCode() {
|
||||
return this.parenetCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.parenet_code</code>. 父编码
|
||||
*/
|
||||
public void setParenetCode(Integer parenetCode) {
|
||||
this.parenetCode = parenetCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.tree_code</code>. 树编码
|
||||
*/
|
||||
@Size(max = 200)
|
||||
public String getTreeCode() {
|
||||
return this.treeCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.tree_code</code>. 树编码
|
||||
*/
|
||||
public void setTreeCode(String treeCode) {
|
||||
this.treeCode = treeCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.order</code>. 排序(正序)
|
||||
*/
|
||||
public Integer getOrder() {
|
||||
return this.order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.order</code>. 排序(正序)
|
||||
*/
|
||||
public void setOrder(Integer order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.level</code>. 级别
|
||||
*/
|
||||
public Integer getLevel() {
|
||||
return this.level;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.level</code>. 级别
|
||||
*/
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.namespace_id</code>. 域空间id
|
||||
*/
|
||||
@NotNull
|
||||
public Integer getNamespaceId() {
|
||||
return this.namespaceId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.namespace_id</code>. 域空间id
|
||||
*/
|
||||
public void setNamespaceId(Integer namespaceId) {
|
||||
this.namespaceId = namespaceId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public Long getCreatorUid() {
|
||||
return this.creatorUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public void setCreatorUid(Long creatorUid) {
|
||||
this.creatorUid = creatorUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public LocalDateTime getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public void setCreateTime(LocalDateTime createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public Long getOperatorUid() {
|
||||
return this.operatorUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public void setOperatorUid(Long operatorUid) {
|
||||
this.operatorUid = operatorUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public LocalDateTime getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public void setUpdateTime(LocalDateTime updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public Byte getDeleteFlag() {
|
||||
return this.deleteFlag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public void setDeleteFlag(Byte deleteFlag) {
|
||||
this.deleteFlag = deleteFlag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.business_value</code>. 业务数据
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getBusinessValue() {
|
||||
return this.businessValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.business_value</code>. 业务数据
|
||||
*/
|
||||
public void setBusinessValue(String businessValue) {
|
||||
this.businessValue = businessValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.str_code</code>. 网信办一期编码
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getStrCode() {
|
||||
return this.strCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.str_code</code>. 网信办一期编码
|
||||
*/
|
||||
public void setStrCode(String strCode) {
|
||||
this.strCode = strCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.ga_code</code>. 公安编码
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getGaCode() {
|
||||
return this.gaCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.ga_code</code>. 公安编码
|
||||
*/
|
||||
public void setGaCode(String gaCode) {
|
||||
this.gaCode = gaCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getAppId() {
|
||||
return this.appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
public void setAppId(String appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.is_enable</code>. 是否启用
|
||||
*/
|
||||
public Integer getIsEnable() {
|
||||
return this.isEnable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.is_enable</code>. 是否启用
|
||||
*/
|
||||
public void setIsEnable(Integer isEnable) {
|
||||
this.isEnable = isEnable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.filter_item</code>. 过滤项
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getFilterItem() {
|
||||
return this.filterItem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.filter_item</code>. 过滤项
|
||||
*/
|
||||
public void setFilterItem(String filterItem) {
|
||||
this.filterItem = filterItem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.business_value_two</code>. 1:化解类型,2:咨询类型
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getBusinessValueTwo() {
|
||||
return this.businessValueTwo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.business_value_two</code>. 1:化解类型,2:咨询类型
|
||||
*/
|
||||
public void setBusinessValueTwo(String businessValueTwo) {
|
||||
this.businessValueTwo = businessValueTwo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("SysDic (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(typeCode);
|
||||
sb.append(", ").append(code);
|
||||
sb.append(", ").append(name);
|
||||
sb.append(", ").append(parenetCode);
|
||||
sb.append(", ").append(treeCode);
|
||||
sb.append(", ").append(order);
|
||||
sb.append(", ").append(level);
|
||||
sb.append(", ").append(namespaceId);
|
||||
sb.append(", ").append(creatorUid);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(operatorUid);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(deleteFlag);
|
||||
sb.append(", ").append(businessValue);
|
||||
sb.append(", ").append(strCode);
|
||||
sb.append(", ").append(gaCode);
|
||||
sb.append(", ").append(appId);
|
||||
sb.append(", ").append(isEnable);
|
||||
sb.append(", ").append(filterItem);
|
||||
sb.append(", ").append(businessValueTwo);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,253 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
|
||||
/**
|
||||
* 字典类型表
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class SysDicType implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long id;
|
||||
private String typeCode;
|
||||
private String typeName;
|
||||
private Integer order;
|
||||
private Integer namespaceId;
|
||||
private Long creatorUid;
|
||||
private LocalDateTime createTime;
|
||||
private Long operatorUid;
|
||||
private LocalDateTime updateTime;
|
||||
private Byte deleteFlag;
|
||||
private String appId;
|
||||
|
||||
public SysDicType() {}
|
||||
|
||||
public SysDicType(SysDicType value) {
|
||||
this.id = value.id;
|
||||
this.typeCode = value.typeCode;
|
||||
this.typeName = value.typeName;
|
||||
this.order = value.order;
|
||||
this.namespaceId = value.namespaceId;
|
||||
this.creatorUid = value.creatorUid;
|
||||
this.createTime = value.createTime;
|
||||
this.operatorUid = value.operatorUid;
|
||||
this.updateTime = value.updateTime;
|
||||
this.deleteFlag = value.deleteFlag;
|
||||
this.appId = value.appId;
|
||||
}
|
||||
|
||||
public SysDicType(
|
||||
Long id,
|
||||
String typeCode,
|
||||
String typeName,
|
||||
Integer order,
|
||||
Integer namespaceId,
|
||||
Long creatorUid,
|
||||
LocalDateTime createTime,
|
||||
Long operatorUid,
|
||||
LocalDateTime updateTime,
|
||||
Byte deleteFlag,
|
||||
String appId
|
||||
) {
|
||||
this.id = id;
|
||||
this.typeCode = typeCode;
|
||||
this.typeName = typeName;
|
||||
this.order = order;
|
||||
this.namespaceId = namespaceId;
|
||||
this.creatorUid = creatorUid;
|
||||
this.createTime = createTime;
|
||||
this.operatorUid = operatorUid;
|
||||
this.updateTime = updateTime;
|
||||
this.deleteFlag = deleteFlag;
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.id</code>. 主键
|
||||
*/
|
||||
public Long getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.id</code>. 主键
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.type_code</code>. 类型编码
|
||||
*/
|
||||
@Size(max = 50)
|
||||
public String getTypeCode() {
|
||||
return this.typeCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.type_code</code>. 类型编码
|
||||
*/
|
||||
public void setTypeCode(String typeCode) {
|
||||
this.typeCode = typeCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.type_name</code>. 名称
|
||||
*/
|
||||
@Size(max = 20)
|
||||
public String getTypeName() {
|
||||
return this.typeName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.type_name</code>. 名称
|
||||
*/
|
||||
public void setTypeName(String typeName) {
|
||||
this.typeName = typeName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.order</code>. 排序
|
||||
*/
|
||||
public Integer getOrder() {
|
||||
return this.order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.order</code>. 排序
|
||||
*/
|
||||
public void setOrder(Integer order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.namespace_id</code>. 域空间id
|
||||
*/
|
||||
@NotNull
|
||||
public Integer getNamespaceId() {
|
||||
return this.namespaceId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.namespace_id</code>. 域空间id
|
||||
*/
|
||||
public void setNamespaceId(Integer namespaceId) {
|
||||
this.namespaceId = namespaceId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public Long getCreatorUid() {
|
||||
return this.creatorUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public void setCreatorUid(Long creatorUid) {
|
||||
this.creatorUid = creatorUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public LocalDateTime getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public void setCreateTime(LocalDateTime createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public Long getOperatorUid() {
|
||||
return this.operatorUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public void setOperatorUid(Long operatorUid) {
|
||||
this.operatorUid = operatorUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public LocalDateTime getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public void setUpdateTime(LocalDateTime updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public Byte getDeleteFlag() {
|
||||
return this.deleteFlag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public void setDeleteFlag(Byte deleteFlag) {
|
||||
this.deleteFlag = deleteFlag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getAppId() {
|
||||
return this.appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
public void setAppId(String appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("SysDicType (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(typeCode);
|
||||
sb.append(", ").append(typeName);
|
||||
sb.append(", ").append(order);
|
||||
sb.append(", ").append(namespaceId);
|
||||
sb.append(", ").append(creatorUid);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(operatorUid);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(deleteFlag);
|
||||
sb.append(", ").append(appId);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -1,147 +0,0 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.records;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.DemoUnit;
|
||||
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record2;
|
||||
import org.jooq.Row2;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class DemoUnitRecord extends UpdatableRecordImpl<DemoUnitRecord> implements Record2<Integer, String> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>konosuba.demo_unit.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>konosuba.demo_unit.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>konosuba.demo_unit.unit_name</code>.
|
||||
*/
|
||||
public void setUnitName(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>konosuba.demo_unit.unit_name</code>.
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getUnitName() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record2 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row2<Integer, String> fieldsRow() {
|
||||
return (Row2) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row2<Integer, String> valuesRow() {
|
||||
return (Row2) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return DemoUnit.DEMO_UNIT.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field2() {
|
||||
return DemoUnit.DEMO_UNIT.UNIT_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component2() {
|
||||
return getUnitName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value2() {
|
||||
return getUnitName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUnitRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUnitRecord value2(String value) {
|
||||
setUnitName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUnitRecord values(Integer value1, String value2) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached DemoUnitRecord
|
||||
*/
|
||||
public DemoUnitRecord() {
|
||||
super(DemoUnit.DEMO_UNIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised DemoUnitRecord
|
||||
*/
|
||||
public DemoUnitRecord(Integer id, String unitName) {
|
||||
super(DemoUnit.DEMO_UNIT);
|
||||
|
||||
setId(id);
|
||||
setUnitName(unitName);
|
||||
}
|
||||
}
|
@ -1,147 +0,0 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.records;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.DemoUser;
|
||||
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record2;
|
||||
import org.jooq.Row2;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class DemoUserRecord extends UpdatableRecordImpl<DemoUserRecord> implements Record2<Integer, String> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>konosuba.demo_user.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>konosuba.demo_user.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>konosuba.demo_user.user_name</code>.
|
||||
*/
|
||||
public void setUserName(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>konosuba.demo_user.user_name</code>.
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getUserName() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record2 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row2<Integer, String> fieldsRow() {
|
||||
return (Row2) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row2<Integer, String> valuesRow() {
|
||||
return (Row2) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return DemoUser.DEMO_USER.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field2() {
|
||||
return DemoUser.DEMO_USER.USER_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component2() {
|
||||
return getUserName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value2() {
|
||||
return getUserName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUserRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUserRecord value2(String value) {
|
||||
setUserName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemoUserRecord values(Integer value1, String value2) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached DemoUserRecord
|
||||
*/
|
||||
public DemoUserRecord() {
|
||||
super(DemoUser.DEMO_USER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised DemoUserRecord
|
||||
*/
|
||||
public DemoUserRecord(Integer id, String userName) {
|
||||
super(DemoUser.DEMO_USER);
|
||||
|
||||
setId(id);
|
||||
setUserName(userName);
|
||||
}
|
||||
}
|
@ -0,0 +1,862 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.records;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.SysDic;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record21;
|
||||
import org.jooq.Row21;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 字典表
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class SysDicRecord extends UpdatableRecordImpl<SysDicRecord> implements Record21<Long, String, Integer, String, Integer, String, Integer, Integer, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String, String, String, String, Integer, String, String> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.id</code>. 主键
|
||||
*/
|
||||
public void setId(Long value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.id</code>. 主键
|
||||
*/
|
||||
public Long getId() {
|
||||
return (Long) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.type_code</code>. 类型编码
|
||||
*/
|
||||
public void setTypeCode(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.type_code</code>. 类型编码
|
||||
*/
|
||||
@Size(max = 50)
|
||||
public String getTypeCode() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.code</code>. 编码
|
||||
*/
|
||||
public void setCode(Integer value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.code</code>. 编码
|
||||
*/
|
||||
public Integer getCode() {
|
||||
return (Integer) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.name</code>. 名称
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.name</code>. 名称
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getName() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.parenet_code</code>. 父编码
|
||||
*/
|
||||
public void setParenetCode(Integer value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.parenet_code</code>. 父编码
|
||||
*/
|
||||
public Integer getParenetCode() {
|
||||
return (Integer) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.tree_code</code>. 树编码
|
||||
*/
|
||||
public void setTreeCode(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.tree_code</code>. 树编码
|
||||
*/
|
||||
@Size(max = 200)
|
||||
public String getTreeCode() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.order</code>. 排序(正序)
|
||||
*/
|
||||
public void setOrder(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.order</code>. 排序(正序)
|
||||
*/
|
||||
public Integer getOrder() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.level</code>. 级别
|
||||
*/
|
||||
public void setLevel(Integer value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.level</code>. 级别
|
||||
*/
|
||||
public Integer getLevel() {
|
||||
return (Integer) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.namespace_id</code>. 域空间id
|
||||
*/
|
||||
public void setNamespaceId(Integer value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.namespace_id</code>. 域空间id
|
||||
*/
|
||||
@NotNull
|
||||
public Integer getNamespaceId() {
|
||||
return (Integer) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public void setCreatorUid(Long value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public Long getCreatorUid() {
|
||||
return (Long) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public void setCreateTime(LocalDateTime value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public LocalDateTime getCreateTime() {
|
||||
return (LocalDateTime) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public void setOperatorUid(Long value) {
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public Long getOperatorUid() {
|
||||
return (Long) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public void setUpdateTime(LocalDateTime value) {
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public LocalDateTime getUpdateTime() {
|
||||
return (LocalDateTime) get(12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public void setDeleteFlag(Byte value) {
|
||||
set(13, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public Byte getDeleteFlag() {
|
||||
return (Byte) get(13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.business_value</code>. 业务数据
|
||||
*/
|
||||
public void setBusinessValue(String value) {
|
||||
set(14, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.business_value</code>. 业务数据
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getBusinessValue() {
|
||||
return (String) get(14);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.str_code</code>. 网信办一期编码
|
||||
*/
|
||||
public void setStrCode(String value) {
|
||||
set(15, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.str_code</code>. 网信办一期编码
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getStrCode() {
|
||||
return (String) get(15);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.ga_code</code>. 公安编码
|
||||
*/
|
||||
public void setGaCode(String value) {
|
||||
set(16, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.ga_code</code>. 公安编码
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getGaCode() {
|
||||
return (String) get(16);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
public void setAppId(String value) {
|
||||
set(17, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getAppId() {
|
||||
return (String) get(17);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.is_enable</code>. 是否启用
|
||||
*/
|
||||
public void setIsEnable(Integer value) {
|
||||
set(18, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.is_enable</code>. 是否启用
|
||||
*/
|
||||
public Integer getIsEnable() {
|
||||
return (Integer) get(18);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.filter_item</code>. 过滤项
|
||||
*/
|
||||
public void setFilterItem(String value) {
|
||||
set(19, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.filter_item</code>. 过滤项
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getFilterItem() {
|
||||
return (String) get(19);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic.business_value_two</code>. 1:化解类型,2:咨询类型
|
||||
*/
|
||||
public void setBusinessValueTwo(String value) {
|
||||
set(20, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic.business_value_two</code>. 1:化解类型,2:咨询类型
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getBusinessValueTwo() {
|
||||
return (String) get(20);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Long> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record21 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row21<Long, String, Integer, String, Integer, String, Integer, Integer, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String, String, String, String, Integer, String, String> fieldsRow() {
|
||||
return (Row21) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row21<Long, String, Integer, String, Integer, String, Integer, Integer, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String, String, String, String, Integer, String, String> valuesRow() {
|
||||
return (Row21) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Long> field1() {
|
||||
return SysDic.SYS_DIC.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field2() {
|
||||
return SysDic.SYS_DIC.TYPE_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field3() {
|
||||
return SysDic.SYS_DIC.CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field4() {
|
||||
return SysDic.SYS_DIC.NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field5() {
|
||||
return SysDic.SYS_DIC.PARENET_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field6() {
|
||||
return SysDic.SYS_DIC.TREE_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field7() {
|
||||
return SysDic.SYS_DIC.ORDER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field8() {
|
||||
return SysDic.SYS_DIC.LEVEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field9() {
|
||||
return SysDic.SYS_DIC.NAMESPACE_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Long> field10() {
|
||||
return SysDic.SYS_DIC.CREATOR_UID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<LocalDateTime> field11() {
|
||||
return SysDic.SYS_DIC.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Long> field12() {
|
||||
return SysDic.SYS_DIC.OPERATOR_UID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<LocalDateTime> field13() {
|
||||
return SysDic.SYS_DIC.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Byte> field14() {
|
||||
return SysDic.SYS_DIC.DELETE_FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field15() {
|
||||
return SysDic.SYS_DIC.BUSINESS_VALUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field16() {
|
||||
return SysDic.SYS_DIC.STR_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field17() {
|
||||
return SysDic.SYS_DIC.GA_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field18() {
|
||||
return SysDic.SYS_DIC.APP_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field19() {
|
||||
return SysDic.SYS_DIC.IS_ENABLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field20() {
|
||||
return SysDic.SYS_DIC.FILTER_ITEM;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field21() {
|
||||
return SysDic.SYS_DIC.BUSINESS_VALUE_TWO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component2() {
|
||||
return getTypeCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component3() {
|
||||
return getCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component4() {
|
||||
return getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component5() {
|
||||
return getParenetCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component6() {
|
||||
return getTreeCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component7() {
|
||||
return getOrder();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component8() {
|
||||
return getLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component9() {
|
||||
return getNamespaceId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long component10() {
|
||||
return getCreatorUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime component11() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long component12() {
|
||||
return getOperatorUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime component13() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte component14() {
|
||||
return getDeleteFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component15() {
|
||||
return getBusinessValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component16() {
|
||||
return getStrCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component17() {
|
||||
return getGaCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component18() {
|
||||
return getAppId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component19() {
|
||||
return getIsEnable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component20() {
|
||||
return getFilterItem();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component21() {
|
||||
return getBusinessValueTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value2() {
|
||||
return getTypeCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value3() {
|
||||
return getCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value4() {
|
||||
return getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value5() {
|
||||
return getParenetCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value6() {
|
||||
return getTreeCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value7() {
|
||||
return getOrder();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value8() {
|
||||
return getLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value9() {
|
||||
return getNamespaceId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long value10() {
|
||||
return getCreatorUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime value11() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long value12() {
|
||||
return getOperatorUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime value13() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte value14() {
|
||||
return getDeleteFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value15() {
|
||||
return getBusinessValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value16() {
|
||||
return getStrCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value17() {
|
||||
return getGaCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value18() {
|
||||
return getAppId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value19() {
|
||||
return getIsEnable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value20() {
|
||||
return getFilterItem();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value21() {
|
||||
return getBusinessValueTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value1(Long value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value2(String value) {
|
||||
setTypeCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value3(Integer value) {
|
||||
setCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value4(String value) {
|
||||
setName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value5(Integer value) {
|
||||
setParenetCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value6(String value) {
|
||||
setTreeCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value7(Integer value) {
|
||||
setOrder(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value8(Integer value) {
|
||||
setLevel(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value9(Integer value) {
|
||||
setNamespaceId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value10(Long value) {
|
||||
setCreatorUid(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value11(LocalDateTime value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value12(Long value) {
|
||||
setOperatorUid(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value13(LocalDateTime value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value14(Byte value) {
|
||||
setDeleteFlag(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value15(String value) {
|
||||
setBusinessValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value16(String value) {
|
||||
setStrCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value17(String value) {
|
||||
setGaCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value18(String value) {
|
||||
setAppId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value19(Integer value) {
|
||||
setIsEnable(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value20(String value) {
|
||||
setFilterItem(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord value21(String value) {
|
||||
setBusinessValueTwo(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicRecord values(Long value1, String value2, Integer value3, String value4, Integer value5, String value6, Integer value7, Integer value8, Integer value9, Long value10, LocalDateTime value11, Long value12, LocalDateTime value13, Byte value14, String value15, String value16, String value17, String value18, Integer value19, String value20, String value21) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
value12(value12);
|
||||
value13(value13);
|
||||
value14(value14);
|
||||
value15(value15);
|
||||
value16(value16);
|
||||
value17(value17);
|
||||
value18(value18);
|
||||
value19(value19);
|
||||
value20(value20);
|
||||
value21(value21);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached SysDicRecord
|
||||
*/
|
||||
public SysDicRecord() {
|
||||
super(SysDic.SYS_DIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised SysDicRecord
|
||||
*/
|
||||
public SysDicRecord(Long id, String typeCode, Integer code, String name, Integer parenetCode, String treeCode, Integer order, Integer level, Integer namespaceId, Long creatorUid, LocalDateTime createTime, Long operatorUid, LocalDateTime updateTime, Byte deleteFlag, String businessValue, String strCode, String gaCode, String appId, Integer isEnable, String filterItem, String businessValueTwo) {
|
||||
super(SysDic.SYS_DIC);
|
||||
|
||||
setId(id);
|
||||
setTypeCode(typeCode);
|
||||
setCode(code);
|
||||
setName(name);
|
||||
setParenetCode(parenetCode);
|
||||
setTreeCode(treeCode);
|
||||
setOrder(order);
|
||||
setLevel(level);
|
||||
setNamespaceId(namespaceId);
|
||||
setCreatorUid(creatorUid);
|
||||
setCreateTime(createTime);
|
||||
setOperatorUid(operatorUid);
|
||||
setUpdateTime(updateTime);
|
||||
setDeleteFlag(deleteFlag);
|
||||
setBusinessValue(businessValue);
|
||||
setStrCode(strCode);
|
||||
setGaCode(gaCode);
|
||||
setAppId(appId);
|
||||
setIsEnable(isEnable);
|
||||
setFilterItem(filterItem);
|
||||
setBusinessValueTwo(businessValueTwo);
|
||||
}
|
||||
}
|
@ -0,0 +1,486 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.darkness.pojo.entity.tables.records;
|
||||
|
||||
|
||||
import com.darkness.pojo.entity.tables.SysDicType;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record11;
|
||||
import org.jooq.Row11;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 字典类型表
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class SysDicTypeRecord extends UpdatableRecordImpl<SysDicTypeRecord> implements Record11<Long, String, String, Integer, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.id</code>. 主键
|
||||
*/
|
||||
public void setId(Long value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.id</code>. 主键
|
||||
*/
|
||||
public Long getId() {
|
||||
return (Long) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.type_code</code>. 类型编码
|
||||
*/
|
||||
public void setTypeCode(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.type_code</code>. 类型编码
|
||||
*/
|
||||
@Size(max = 50)
|
||||
public String getTypeCode() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.type_name</code>. 名称
|
||||
*/
|
||||
public void setTypeName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.type_name</code>. 名称
|
||||
*/
|
||||
@Size(max = 20)
|
||||
public String getTypeName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.order</code>. 排序
|
||||
*/
|
||||
public void setOrder(Integer value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.order</code>. 排序
|
||||
*/
|
||||
public Integer getOrder() {
|
||||
return (Integer) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.namespace_id</code>. 域空间id
|
||||
*/
|
||||
public void setNamespaceId(Integer value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.namespace_id</code>. 域空间id
|
||||
*/
|
||||
@NotNull
|
||||
public Integer getNamespaceId() {
|
||||
return (Integer) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public void setCreatorUid(Long value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.creator_uid</code>. 创建者用户id
|
||||
*/
|
||||
public Long getCreatorUid() {
|
||||
return (Long) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public void setCreateTime(LocalDateTime value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.create_time</code>. 记录创建时间
|
||||
*/
|
||||
public LocalDateTime getCreateTime() {
|
||||
return (LocalDateTime) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public void setOperatorUid(Long value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.operator_uid</code>. 更新人用户id
|
||||
*/
|
||||
public Long getOperatorUid() {
|
||||
return (Long) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public void setUpdateTime(LocalDateTime value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.update_time</code>. 记录更新时间
|
||||
*/
|
||||
public LocalDateTime getUpdateTime() {
|
||||
return (LocalDateTime) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public void setDeleteFlag(Byte value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.delete_flag</code>. 是否删除标识位(0未删除,1已删除)
|
||||
*/
|
||||
public Byte getDeleteFlag() {
|
||||
return (Byte) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>darkness.sys_dic_type.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
public void setAppId(String value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>darkness.sys_dic_type.app_id</code>. 多应用的应用id
|
||||
*/
|
||||
@Size(max = 255)
|
||||
public String getAppId() {
|
||||
return (String) get(10);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Long> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record11 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row11<Long, String, String, Integer, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String> fieldsRow() {
|
||||
return (Row11) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row11<Long, String, String, Integer, Integer, Long, LocalDateTime, Long, LocalDateTime, Byte, String> valuesRow() {
|
||||
return (Row11) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Long> field1() {
|
||||
return SysDicType.SYS_DIC_TYPE.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field2() {
|
||||
return SysDicType.SYS_DIC_TYPE.TYPE_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field3() {
|
||||
return SysDicType.SYS_DIC_TYPE.TYPE_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field4() {
|
||||
return SysDicType.SYS_DIC_TYPE.ORDER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field5() {
|
||||
return SysDicType.SYS_DIC_TYPE.NAMESPACE_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Long> field6() {
|
||||
return SysDicType.SYS_DIC_TYPE.CREATOR_UID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<LocalDateTime> field7() {
|
||||
return SysDicType.SYS_DIC_TYPE.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Long> field8() {
|
||||
return SysDicType.SYS_DIC_TYPE.OPERATOR_UID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<LocalDateTime> field9() {
|
||||
return SysDicType.SYS_DIC_TYPE.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Byte> field10() {
|
||||
return SysDicType.SYS_DIC_TYPE.DELETE_FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field11() {
|
||||
return SysDicType.SYS_DIC_TYPE.APP_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component2() {
|
||||
return getTypeCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component3() {
|
||||
return getTypeName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component4() {
|
||||
return getOrder();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component5() {
|
||||
return getNamespaceId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long component6() {
|
||||
return getCreatorUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime component7() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long component8() {
|
||||
return getOperatorUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime component9() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte component10() {
|
||||
return getDeleteFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component11() {
|
||||
return getAppId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value2() {
|
||||
return getTypeCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value3() {
|
||||
return getTypeName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value4() {
|
||||
return getOrder();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value5() {
|
||||
return getNamespaceId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long value6() {
|
||||
return getCreatorUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime value7() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long value8() {
|
||||
return getOperatorUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime value9() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte value10() {
|
||||
return getDeleteFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value11() {
|
||||
return getAppId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value1(Long value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value2(String value) {
|
||||
setTypeCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value3(String value) {
|
||||
setTypeName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value4(Integer value) {
|
||||
setOrder(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value5(Integer value) {
|
||||
setNamespaceId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value6(Long value) {
|
||||
setCreatorUid(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value7(LocalDateTime value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value8(Long value) {
|
||||
setOperatorUid(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value9(LocalDateTime value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value10(Byte value) {
|
||||
setDeleteFlag(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord value11(String value) {
|
||||
setAppId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysDicTypeRecord values(Long value1, String value2, String value3, Integer value4, Integer value5, Long value6, LocalDateTime value7, Long value8, LocalDateTime value9, Byte value10, String value11) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached SysDicTypeRecord
|
||||
*/
|
||||
public SysDicTypeRecord() {
|
||||
super(SysDicType.SYS_DIC_TYPE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised SysDicTypeRecord
|
||||
*/
|
||||
public SysDicTypeRecord(Long id, String typeCode, String typeName, Integer order, Integer namespaceId, Long creatorUid, LocalDateTime createTime, Long operatorUid, LocalDateTime updateTime, Byte deleteFlag, String appId) {
|
||||
super(SysDicType.SYS_DIC_TYPE);
|
||||
|
||||
setId(id);
|
||||
setTypeCode(typeCode);
|
||||
setTypeName(typeName);
|
||||
setOrder(order);
|
||||
setNamespaceId(namespaceId);
|
||||
setCreatorUid(creatorUid);
|
||||
setCreateTime(createTime);
|
||||
setOperatorUid(operatorUid);
|
||||
setUpdateTime(updateTime);
|
||||
setDeleteFlag(deleteFlag);
|
||||
setAppId(appId);
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.pojo.response.demo;
|
||||
|
||||
public class DemoRsp {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.darkness.pojo.response.test;
|
||||
|
||||
public class TestRsp {
|
||||
}
|
73
src/main/sql/darkness.sql
Normal file
73
src/main/sql/darkness.sql
Normal file
@ -0,0 +1,73 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : localhost
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50726 (5.7.26)
|
||||
Source Host : localhost:3306
|
||||
Source Schema : darkness
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 50726 (5.7.26)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 30/01/2024 19:41:02
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_dic
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_dic`;
|
||||
CREATE TABLE `sys_dic` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型编码',
|
||||
`code` int(10) NULL DEFAULT NULL COMMENT '编码',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
|
||||
`parenet_code` int(10) NULL DEFAULT NULL COMMENT '父编码',
|
||||
`tree_code` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '树编码',
|
||||
`order` int(11) NULL DEFAULT NULL COMMENT '排序(正序)',
|
||||
`level` int(11) NULL DEFAULT NULL COMMENT '级别',
|
||||
`business_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务数据',
|
||||
`filter_item` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '过滤项',
|
||||
`creator_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建者用户id',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '记录创建时间',
|
||||
`operator_uid` bigint(20) NULL DEFAULT NULL COMMENT '更新人用户id',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '记录更新时间',
|
||||
`delete_flag` tinyint(2) NULL DEFAULT NULL COMMENT '是否删除标识位(0未删除,1已删除)',
|
||||
`is_enable` int(11) NULL DEFAULT NULL COMMENT '是否启用',
|
||||
`app_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多应用的应用id',
|
||||
`namespace_id` int(20) NULL DEFAULT NULL COMMENT '域空间id',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 84 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_dic
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_dic_type
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_dic_type`;
|
||||
CREATE TABLE `sys_dic_type` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型编码',
|
||||
`type_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
|
||||
`order` int(11) NULL DEFAULT NULL COMMENT '排序',
|
||||
`creator_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建者用户id',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '记录创建时间',
|
||||
`operator_uid` bigint(20) NULL DEFAULT NULL COMMENT '更新人用户id',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '记录更新时间',
|
||||
`delete_flag` tinyint(2) NULL DEFAULT NULL COMMENT '是否删除标识位(0未删除,1已删除)',
|
||||
`app_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多应用的应用id',
|
||||
`namespace_id` int(20) NULL DEFAULT NULL COMMENT '域空间id',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_dic_type
|
||||
-- ----------------------------
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
Loading…
x
Reference in New Issue
Block a user