parent
f09240c4f1
commit
cb292454f8
@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="${basePackage}.module.system.mpr.DictItemMapper">
|
||||
|
||||
<sql id="table">"SYS_DICT_ITEM"</sql>
|
||||
|
||||
<sql id="entityColumnList">
|
||||
"ID","DICT_NAME","KEY","VALUE","SORT","VALID","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
|
||||
</sql>
|
||||
|
||||
<resultMap id="dictItem" type="${basePackage}.module.system.ent.DictItem">
|
||||
<result column="ID" jdbcType="BIGINT" property="id"/>
|
||||
<result column="DICT_NAME" jdbcType="VARCHAR" property="dictName"/>
|
||||
<result column="KEY" jdbcType="VARCHAR" property="key"/>
|
||||
<result column="VALUE" jdbcType="VARCHAR" property="value"/>
|
||||
<result column="SORT" jdbcType="INTEGER" property="sort"/>
|
||||
<result column="VALID" jdbcType="BIT" property="valid"/>
|
||||
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
|
||||
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
|
||||
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
|
||||
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
|
||||
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="find" resultMap="dictItem">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.dictName != null and request.dictName != ''">
|
||||
AND "DICT_NAME" = ${r"#"}{request.dictName}
|
||||
</if>
|
||||
<if test="request.key != null and request.key != ''">
|
||||
AND "KEY" = ${r"#"}{request.key}
|
||||
</if>
|
||||
<if test="request.value != null and request.value != ''">
|
||||
AND "VALUE" = ${r"#"}{request.value}
|
||||
</if>
|
||||
<if test="request.sort != null and request.sort != 0">
|
||||
AND "SORT" = ${r"#"}{request.sort}
|
||||
</if>
|
||||
<if test="request.valid != null">
|
||||
AND "VALID" = ${r"#"}{request.valid}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="search" resultMap="dictItem">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.keyword != null and request.keyword != ''">
|
||||
1 = 2
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insert">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
${r"#"}{request.id},
|
||||
${r"#"}{request.dictName,jdbcType=VARCHAR},
|
||||
${r"#"}{request.key,jdbcType=VARCHAR},
|
||||
${r"#"}{request.value,jdbcType=VARCHAR},
|
||||
${r"#"}{request.sort,jdbcType=INTEGER},
|
||||
${r"#"}{request.valid,jdbcType=BIT},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
sysdate,
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item= "item" index ="index" separator=",">
|
||||
(
|
||||
${r"#"}{item.id},
|
||||
${r"#"}{item.dictName,jdbcType=VARCHAR},
|
||||
${r"#"}{item.key,jdbcType=VARCHAR},
|
||||
${r"#"}{item.value,jdbcType=VARCHAR},
|
||||
${r"#"}{item.sort,jdbcType=INTEGER},
|
||||
${r"#"}{item.valid,jdbcType=BIT},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
sysdate,
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</foreach >
|
||||
</insert>
|
||||
|
||||
<update id="delete">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET "IS_DELETED" = 1
|
||||
WHERE "IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
</update>
|
||||
|
||||
<update id="update">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET
|
||||
"DICT_NAME" = ${r"#"}{request.dictName,jdbcType=VARCHAR},
|
||||
"KEY" = ${r"#"}{request.key,jdbcType=VARCHAR},
|
||||
"VALUE" = ${r"#"}{request.value,jdbcType=VARCHAR},
|
||||
"SORT" = ${r"#"}{request.sort,jdbcType=INTEGER},
|
||||
"VALID" = ${r"#"}{request.valid,jdbcType=BIT},
|
||||
"ROW_VERSION" = "ROW_VERSION" + 1,
|
||||
"LAST_UPDATE_BY" = ${r"#"}{token.userId},
|
||||
"LAST_UPDATE_TIME" = sysdate
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
AND "ROW_VERSION" = ${r"#"}{request.rowVersion}
|
||||
</update>
|
||||
|
||||
<select id="getAll" resultMap="dictItem">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
</select>
|
||||
|
||||
<select id="get" resultMap="dictItem">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,164 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="${basePackage}.module.system.mpr.DictItemMapper">
|
||||
|
||||
<sql id="table">"SYS_DICT_ITEM"</sql>
|
||||
|
||||
<sql id="entityColumnList">
|
||||
"ID","DICT_NAME","KEY","VALUE","SORT","VALID","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
|
||||
</sql>
|
||||
|
||||
<resultMap id="dictItem" type="${basePackage}.module.system.ent.DictItem">
|
||||
<result column="ID" jdbcType="BIGINT" property="id"/>
|
||||
<result column="DICT_NAME" jdbcType="VARCHAR" property="dictName"/>
|
||||
<result column="KEY" jdbcType="VARCHAR" property="key"/>
|
||||
<result column="VALUE" jdbcType="VARCHAR" property="value"/>
|
||||
<result column="SORT" jdbcType="INTEGER" property="sort"/>
|
||||
<result column="VALID" jdbcType="BIT" property="valid"/>
|
||||
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
|
||||
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
|
||||
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
|
||||
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
|
||||
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="find" resultMap="dictItem">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.dictName != null and request.dictName != ''">
|
||||
AND DICT_NAME = ${r"#"}{request.dictName}
|
||||
</if>
|
||||
<if test="request.key != null and request.key != ''">
|
||||
AND KEY = ${r"#"}{request.key}
|
||||
</if>
|
||||
<if test="request.value != null and request.value != ''">
|
||||
AND VALUE = ${r"#"}{request.value}
|
||||
</if>
|
||||
<if test="request.sort != null and request.sort != 0">
|
||||
AND SORT = ${r"#"}{request.sort}
|
||||
</if>
|
||||
<if test="request.valid != null">
|
||||
AND VALID = ${r"#"}{request.valid}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="search" resultMap="dictItem">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
<if test="request.keyword != null and request.keyword != ''">
|
||||
1 = 2
|
||||
OR ID LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR DICT_NAME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR KEY LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR VALUE LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR SORT LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR VALID LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR ROW_VERSION LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR IS_DELETED LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR CREATE_BY LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR CREATE_TIME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR LAST_UPDATE_BY LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR LAST_UPDATE_TIME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insert">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
${r"#"}{request.id},
|
||||
${r"#"}{request.dictName,jdbcType=VARCHAR},
|
||||
${r"#"}{request.key,jdbcType=VARCHAR},
|
||||
${r"#"}{request.value,jdbcType=VARCHAR},
|
||||
${r"#"}{request.sort,jdbcType=INTEGER},
|
||||
${r"#"}{request.valid,jdbcType=BIT},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
datetime('now','localtime'),
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item= "item" index ="index" separator=",">
|
||||
(
|
||||
${r"#"}{item.id},
|
||||
${r"#"}{item.dictName,jdbcType=VARCHAR},
|
||||
${r"#"}{item.key,jdbcType=VARCHAR},
|
||||
${r"#"}{item.value,jdbcType=VARCHAR},
|
||||
${r"#"}{item.sort,jdbcType=INTEGER},
|
||||
${r"#"}{item.valid,jdbcType=BIT},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
datetime('now','localtime'),
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</foreach >
|
||||
</insert>
|
||||
|
||||
<update id="delete">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
</update>
|
||||
|
||||
<update id="update">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET
|
||||
DICT_NAME = ${r"#"}{request.dictName,jdbcType=VARCHAR},
|
||||
KEY = ${r"#"}{request.key,jdbcType=VARCHAR},
|
||||
VALUE = ${r"#"}{request.value,jdbcType=VARCHAR},
|
||||
SORT = ${r"#"}{request.sort,jdbcType=INTEGER},
|
||||
VALID = ${r"#"}{request.valid,jdbcType=BIT},
|
||||
ROW_VERSION = ROW_VERSION + 1,
|
||||
LAST_UPDATE_BY = ${r"#"}{token.userId},
|
||||
LAST_UPDATE_TIME = datetime('now','localtime')
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
AND ID = ${r"#"}{request.id}
|
||||
AND ROW_VERSION = ${r"#"}{request.rowVersion}
|
||||
</update>
|
||||
|
||||
<select id="getAll" resultMap="dictItem">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
</select>
|
||||
|
||||
<select id="get" resultMap="dictItem">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
AND ID = ${r"#"}{request.id}
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="${basePackage}.module.system.mpr.DictMapper">
|
||||
|
||||
<sql id="table">"SYS_DICT"</sql>
|
||||
|
||||
<sql id="entityColumnList">
|
||||
"ID","DICT_NAME","DICT_COMMENT","VERSION","VALID","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
|
||||
</sql>
|
||||
|
||||
<resultMap id="dict" type="${basePackage}.module.system.ent.Dict">
|
||||
<result column="ID" jdbcType="BIGINT" property="id"/>
|
||||
<result column="DICT_NAME" jdbcType="VARCHAR" property="dictName"/>
|
||||
<result column="DICT_COMMENT" jdbcType="VARCHAR" property="dictComment"/>
|
||||
<result column="VERSION" jdbcType="VARCHAR" property="version"/>
|
||||
<result column="VALID" jdbcType="BIT" property="valid"/>
|
||||
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
|
||||
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
|
||||
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
|
||||
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
|
||||
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="find" resultMap="dict">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.dictName != null and request.dictName != ''">
|
||||
AND "DICT_NAME" = ${r"#"}{request.dictName}
|
||||
</if>
|
||||
<if test="request.dictComment != null and request.dictComment != ''">
|
||||
AND "DICT_COMMENT" = ${r"#"}{request.dictComment}
|
||||
</if>
|
||||
<if test="request.valid != null">
|
||||
AND "VALID" = ${r"#"}{request.valid}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="search" resultMap="dict">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.keyword != null and request.keyword != ''">
|
||||
1 = 2
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insert">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
${r"#"}{request.id},
|
||||
${r"#"}{request.dictName,jdbcType=VARCHAR},
|
||||
${r"#"}{request.dictComment,jdbcType=VARCHAR},
|
||||
${r"#"}{request.version,jdbcType=VARCHAR},
|
||||
${r"#"}{request.valid,jdbcType=BIT},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
sysdate,
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item= "item" index ="index" separator=",">
|
||||
(
|
||||
${r"#"}{item.id},
|
||||
${r"#"}{item.dictName,jdbcType=VARCHAR},
|
||||
${r"#"}{item.dictComment,jdbcType=VARCHAR},
|
||||
${r"#"}{item.version,jdbcType=VARCHAR},
|
||||
${r"#"}{item.valid,jdbcType=BIT},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
sysdate,
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</foreach >
|
||||
</insert>
|
||||
|
||||
<update id="delete">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET "IS_DELETED" = 1
|
||||
WHERE "IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
</update>
|
||||
|
||||
<update id="update">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET
|
||||
"DICT_NAME" = ${r"#"}{request.dictName,jdbcType=VARCHAR},
|
||||
"DICT_COMMENT" = ${r"#"}{request.dictComment,jdbcType=VARCHAR},
|
||||
"VERSION" = ${r"#"}{request.version,jdbcType=VARCHAR},
|
||||
"VALID" = ${r"#"}{request.valid,jdbcType=BIT},
|
||||
"ROW_VERSION" = "ROW_VERSION" + 1,
|
||||
"LAST_UPDATE_BY" = ${r"#"}{token.userId},
|
||||
"LAST_UPDATE_TIME" = sysdate
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
AND "ROW_VERSION" = ${r"#"}{request.rowVersion}
|
||||
</update>
|
||||
|
||||
<select id="getAll" resultMap="dict">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
</select>
|
||||
|
||||
<select id="get" resultMap="dict">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="${basePackage}.module.system.mpr.DictMapper">
|
||||
|
||||
<sql id="table">"SYS_DICT"</sql>
|
||||
|
||||
<sql id="entityColumnList">
|
||||
"ID","DICT_NAME","DICT_COMMENT","VERSION","VALID","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
|
||||
</sql>
|
||||
|
||||
<resultMap id="dict" type="${basePackage}.module.system.ent.Dict">
|
||||
<result column="ID" jdbcType="BIGINT" property="id"/>
|
||||
<result column="DICT_NAME" jdbcType="VARCHAR" property="dictName"/>
|
||||
<result column="DICT_COMMENT" jdbcType="VARCHAR" property="dictComment"/>
|
||||
<result column="VERSION" jdbcType="VARCHAR" property="version"/>
|
||||
<result column="VALID" jdbcType="BIT" property="valid"/>
|
||||
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
|
||||
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
|
||||
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
|
||||
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
|
||||
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="find" resultMap="dict">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.dictName != null and request.dictName != ''">
|
||||
AND DICT_NAME = ${r"#"}{request.dictName}
|
||||
</if>
|
||||
<if test="request.dictComment != null and request.dictComment != ''">
|
||||
AND DICT_COMMENT = ${r"#"}{request.dictComment}
|
||||
</if>
|
||||
<if test="request.valid != null">
|
||||
AND VALID = ${r"#"}{request.valid}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="search" resultMap="dict">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
<if test="request.keyword != null and request.keyword != ''">
|
||||
1 = 2
|
||||
OR ID LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR DICT_NAME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR DICT_COMMENT LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR VERSION LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR VALID LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR ROW_VERSION LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR IS_DELETED LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR CREATE_BY LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR CREATE_TIME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR LAST_UPDATE_BY LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR LAST_UPDATE_TIME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insert">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
${r"#"}{request.id},
|
||||
${r"#"}{request.dictName,jdbcType=VARCHAR},
|
||||
${r"#"}{request.dictComment,jdbcType=VARCHAR},
|
||||
${r"#"}{request.version,jdbcType=VARCHAR},
|
||||
${r"#"}{request.valid,jdbcType=BIT},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
datetime('now','localtime'),
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item= "item" index ="index" separator=",">
|
||||
(
|
||||
${r"#"}{item.id},
|
||||
${r"#"}{item.dictName,jdbcType=VARCHAR},
|
||||
${r"#"}{item.dictComment,jdbcType=VARCHAR},
|
||||
${r"#"}{item.version,jdbcType=VARCHAR},
|
||||
${r"#"}{item.valid,jdbcType=BIT},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
datetime('now','localtime'),
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</foreach >
|
||||
</insert>
|
||||
|
||||
<update id="delete">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
</update>
|
||||
|
||||
<update id="update">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET
|
||||
DICT_NAME = ${r"#"}{request.dictName,jdbcType=VARCHAR},
|
||||
DICT_COMMENT = ${r"#"}{request.dictComment,jdbcType=VARCHAR},
|
||||
VERSION = ${r"#"}{request.version,jdbcType=VARCHAR},
|
||||
VALID = ${r"#"}{request.valid,jdbcType=BIT},
|
||||
ROW_VERSION = ROW_VERSION + 1,
|
||||
LAST_UPDATE_BY = ${r"#"}{token.userId},
|
||||
LAST_UPDATE_TIME = datetime('now','localtime')
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
AND ID = ${r"#"}{request.id}
|
||||
AND ROW_VERSION = ${r"#"}{request.rowVersion}
|
||||
</update>
|
||||
|
||||
<select id="getAll" resultMap="dict">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
</select>
|
||||
|
||||
<select id="get" resultMap="dict">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
AND ID = ${r"#"}{request.id}
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,161 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="${basePackage}.module.system.mpr.FileMapper">
|
||||
|
||||
<sql id="table">"SYS_FILE"</sql>
|
||||
|
||||
<sql id="entityColumnList">
|
||||
"ID","NAME","FILE_TYPE","ATTRIBUTE1","ATTRIBUTE2","LOCATION","URL","URL_DOWNLOAD","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
|
||||
</sql>
|
||||
|
||||
<resultMap id="file" type="${basePackage}.module.system.ent.File">
|
||||
<result column="ID" jdbcType="BIGINT" property="id"/>
|
||||
<result column="NAME" jdbcType="VARCHAR" property="name"/>
|
||||
<result column="FILE_TYPE" jdbcType="VARCHAR" property="fileType"/>
|
||||
<result column="ATTRIBUTE1" jdbcType="VARCHAR" property="attribute1"/>
|
||||
<result column="ATTRIBUTE2" jdbcType="VARCHAR" property="attribute2"/>
|
||||
<result column="LOCATION" jdbcType="VARCHAR" property="location"/>
|
||||
<result column="URL" jdbcType="VARCHAR" property="url"/>
|
||||
<result column="URL_DOWNLOAD" jdbcType="VARCHAR" property="urlDownload"/>
|
||||
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
|
||||
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
|
||||
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
|
||||
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
|
||||
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="find" resultMap="file">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.name != null and request.name != ''">
|
||||
AND "NAME" = ${r"#"}{request.name}
|
||||
</if>
|
||||
<if test="request.fileType != null and request.fileType != ''">
|
||||
AND "FILE_TYPE" = ${r"#"}{request.fileType}
|
||||
</if>
|
||||
<if test="request.attribute1 != null and request.attribute1 != ''">
|
||||
AND "ATTRIBUTE1" = ${r"#"}{request.attribute1}
|
||||
</if>
|
||||
<if test="request.attribute2 != null and request.attribute2 != ''">
|
||||
AND "ATTRIBUTE2" = ${r"#"}{request.attribute2}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="search" resultMap="file">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.keyword != null and request.keyword != ''">
|
||||
1 = 2
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insert">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
${r"#"}{request.id},
|
||||
${r"#"}{request.name,jdbcType=VARCHAR},
|
||||
${r"#"}{request.fileType,jdbcType=VARCHAR},
|
||||
${r"#"}{request.attribute1,jdbcType=VARCHAR},
|
||||
${r"#"}{request.attribute2,jdbcType=VARCHAR},
|
||||
${r"#"}{request.location,jdbcType=VARCHAR},
|
||||
${r"#"}{request.url,jdbcType=VARCHAR},
|
||||
${r"#"}{request.urlDownload,jdbcType=VARCHAR},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
sysdate,
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item= "item" index ="index" separator=",">
|
||||
(
|
||||
${r"#"}{item.id},
|
||||
${r"#"}{item.name,jdbcType=VARCHAR},
|
||||
${r"#"}{item.fileType,jdbcType=VARCHAR},
|
||||
${r"#"}{item.attribute1,jdbcType=VARCHAR},
|
||||
${r"#"}{item.attribute2,jdbcType=VARCHAR},
|
||||
${r"#"}{item.location,jdbcType=VARCHAR},
|
||||
${r"#"}{item.url,jdbcType=VARCHAR},
|
||||
${r"#"}{item.urlDownload,jdbcType=VARCHAR},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
sysdate,
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</foreach >
|
||||
</insert>
|
||||
|
||||
<update id="delete">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET "IS_DELETED" = 1
|
||||
WHERE "IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
</update>
|
||||
|
||||
<update id="update">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET
|
||||
"NAME" = ${r"#"}{request.name,jdbcType=VARCHAR},
|
||||
"FILE_TYPE" = ${r"#"}{request.fileType,jdbcType=VARCHAR},
|
||||
"ATTRIBUTE1" = ${r"#"}{request.attribute1,jdbcType=VARCHAR},
|
||||
"ATTRIBUTE2" = ${r"#"}{request.attribute2,jdbcType=VARCHAR},
|
||||
"LOCATION" = ${r"#"}{request.location,jdbcType=VARCHAR},
|
||||
"URL" = ${r"#"}{request.url,jdbcType=VARCHAR},
|
||||
"URL_DOWNLOAD" = ${r"#"}{request.urlDownload,jdbcType=VARCHAR},
|
||||
"ROW_VERSION" = "ROW_VERSION" + 1,
|
||||
"LAST_UPDATE_BY" = ${r"#"}{token.userId},
|
||||
"LAST_UPDATE_TIME" = sysdate
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
AND "ROW_VERSION" = ${r"#"}{request.rowVersion}
|
||||
</update>
|
||||
|
||||
<select id="getAll" resultMap="file">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
</select>
|
||||
|
||||
<select id="get" resultMap="file">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
AND "ID" = ${r"#"}{request.id}
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="${basePackage}.module.system.mpr.FileMapper">
|
||||
|
||||
<sql id="table">"SYS_FILE"</sql>
|
||||
|
||||
<sql id="entityColumnList">
|
||||
"ID","NAME","FILE_TYPE","ATTRIBUTE1","ATTRIBUTE2","LOCATION","URL","URL_DOWNLOAD","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
|
||||
</sql>
|
||||
|
||||
<resultMap id="file" type="${basePackage}.module.system.ent.File">
|
||||
<result column="ID" jdbcType="BIGINT" property="id"/>
|
||||
<result column="NAME" jdbcType="VARCHAR" property="name"/>
|
||||
<result column="FILE_TYPE" jdbcType="VARCHAR" property="fileType"/>
|
||||
<result column="ATTRIBUTE1" jdbcType="VARCHAR" property="attribute1"/>
|
||||
<result column="ATTRIBUTE2" jdbcType="VARCHAR" property="attribute2"/>
|
||||
<result column="LOCATION" jdbcType="VARCHAR" property="location"/>
|
||||
<result column="URL" jdbcType="VARCHAR" property="url"/>
|
||||
<result column="URL_DOWNLOAD" jdbcType="VARCHAR" property="urlDownload"/>
|
||||
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
|
||||
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
|
||||
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
|
||||
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
|
||||
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="find" resultMap="file">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
"IS_DELETED" = 0
|
||||
<if test="request.name != null and request.name != ''">
|
||||
AND NAME = ${r"#"}{request.name}
|
||||
</if>
|
||||
<if test="request.fileType != null and request.fileType != ''">
|
||||
AND FILE_TYPE = ${r"#"}{request.fileType}
|
||||
</if>
|
||||
<if test="request.attribute1 != null and request.attribute1 != ''">
|
||||
AND ATTRIBUTE1 = ${r"#"}{request.attribute1}
|
||||
</if>
|
||||
<if test="request.attribute2 != null and request.attribute2 != ''">
|
||||
AND ATTRIBUTE2 = ${r"#"}{request.attribute2}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="search" resultMap="file">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
<if test="request.keyword != null and request.keyword != ''">
|
||||
1 = 2
|
||||
OR ID LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR NAME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR FILE_TYPE LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR ATTRIBUTE1 LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR ATTRIBUTE2 LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR LOCATION LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR URL LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR URL_DOWNLOAD LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR ROW_VERSION LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR IS_DELETED LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR CREATE_BY LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR CREATE_TIME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR LAST_UPDATE_BY LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
OR LAST_UPDATE_TIME LIKE CONCAT('%',${r"#"}{request.keyword},'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insert">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
${r"#"}{request.id},
|
||||
${r"#"}{request.name,jdbcType=VARCHAR},
|
||||
${r"#"}{request.fileType,jdbcType=VARCHAR},
|
||||
${r"#"}{request.attribute1,jdbcType=VARCHAR},
|
||||
${r"#"}{request.attribute2,jdbcType=VARCHAR},
|
||||
${r"#"}{request.location,jdbcType=VARCHAR},
|
||||
${r"#"}{request.url,jdbcType=VARCHAR},
|
||||
${r"#"}{request.urlDownload,jdbcType=VARCHAR},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
datetime('now','localtime'),
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch">
|
||||
INSERT INTO
|
||||
<include refid="table"/>
|
||||
(
|
||||
<include refid="entityColumnList"/>
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item= "item" index ="index" separator=",">
|
||||
(
|
||||
${r"#"}{item.id},
|
||||
${r"#"}{item.name,jdbcType=VARCHAR},
|
||||
${r"#"}{item.fileType,jdbcType=VARCHAR},
|
||||
${r"#"}{item.attribute1,jdbcType=VARCHAR},
|
||||
${r"#"}{item.attribute2,jdbcType=VARCHAR},
|
||||
${r"#"}{item.location,jdbcType=VARCHAR},
|
||||
${r"#"}{item.url,jdbcType=VARCHAR},
|
||||
${r"#"}{item.urlDownload,jdbcType=VARCHAR},
|
||||
0,
|
||||
0,
|
||||
${r"#"}{token.userId,jdbcType=NUMERIC},
|
||||
datetime('now','localtime'),
|
||||
NULL,
|
||||
NULL
|
||||
)
|
||||
</foreach >
|
||||
</insert>
|
||||
|
||||
<update id="delete">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
</update>
|
||||
|
||||
<update id="update">
|
||||
UPDATE
|
||||
<include refid="table"/>
|
||||
SET
|
||||
NAME = ${r"#"}{request.name,jdbcType=VARCHAR},
|
||||
FILE_TYPE = ${r"#"}{request.fileType,jdbcType=VARCHAR},
|
||||
ATTRIBUTE1 = ${r"#"}{request.attribute1,jdbcType=VARCHAR},
|
||||
ATTRIBUTE2 = ${r"#"}{request.attribute2,jdbcType=VARCHAR},
|
||||
LOCATION = ${r"#"}{request.location,jdbcType=VARCHAR},
|
||||
URL = ${r"#"}{request.url,jdbcType=VARCHAR},
|
||||
URL_DOWNLOAD = ${r"#"}{request.urlDownload,jdbcType=VARCHAR},
|
||||
ROW_VERSION = ROW_VERSION + 1,
|
||||
LAST_UPDATE_BY = ${r"#"}{token.userId},
|
||||
LAST_UPDATE_TIME = datetime('now','localtime')
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
AND ID = ${r"#"}{request.id}
|
||||
AND ROW_VERSION = ${r"#"}{request.rowVersion}
|
||||
</update>
|
||||
|
||||
<select id="getAll" resultMap="file">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
</select>
|
||||
|
||||
<select id="get" resultMap="file">
|
||||
SELECT
|
||||
<include refid="entityColumnList"/>
|
||||
FROM
|
||||
<include refid="table"/>
|
||||
WHERE
|
||||
IS_DELETED = 0
|
||||
AND ID = ${r"#"}{request.id}
|
||||
</select>
|
||||
</mapper>
|
@ -1,238 +0,0 @@
|
||||
<#if dataBase == 'MySQL'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_DICT` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`DICT_NAME` VARCHAR(50) NOT NULL COMMENT '字典名称',
|
||||
`DICT_COMMENT` VARCHAR(50) NOT NULL COMMENT '字典描述',
|
||||
`VERSION` VARCHAR(50) NOT NULL COMMENT '字典版本',
|
||||
`VALID` TINYINT(1) NOT NULL COMMENT '是否有效',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_DICT_ITEM` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`DICT_NAME` BIGINT(20) NOT NULL COMMENT '字典名称',
|
||||
`KEY` CHAR(10) NOT NULL COMMENT '字典键',
|
||||
`VALUE` VARCHAR(100) NOT NULL COMMENT '字典值',
|
||||
`SORT` INTEGER(10) NOT NULL COMMENT '排序',
|
||||
`VALID` TINYINT(1) NOT NULL COMMENT '是否有效',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典项';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_FILE` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`NAME` VARCHAR(250) COMMENT '文件名称',
|
||||
`FILE_TYPE` VARCHAR(10) COMMENT '文件类型',
|
||||
`ATTRIBUTE1` VARCHAR(50) COMMENT '扩展属性1',
|
||||
`ATTRIBUTE2` VARCHAR(50) COMMENT '扩展属性2',
|
||||
`LOCATION` VARCHAR(500) COMMENT '存放地址',
|
||||
`URL` VARCHAR(500) COMMENT '访问地址',
|
||||
`URL_DOWNLOAD` VARCHAR(500) COMMENT '下载地址',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件';
|
||||
</#if>
|
||||
<#if dataBase == 'Oracle'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_DICT" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"DICT_NAME" VARCHAR2(50) NULL,
|
||||
"DICT_COMMENT" VARCHAR2(50) NULL,
|
||||
"VERSION" VARCHAR2(50) NULL,
|
||||
"VALID" CHAR(1) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
COMMENT ON TABLE "SYS_DICT" is '字典';
|
||||
COMMENT ON COLUMN "SYS_DICT"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_DICT"."DICT_NAME" is '字典名称';
|
||||
COMMENT ON COLUMN "SYS_DICT"."DICT_COMMENT" is '字典描述';
|
||||
COMMENT ON COLUMN "SYS_DICT"."VERSION" is '字典版本';
|
||||
COMMENT ON COLUMN "SYS_DICT"."VALID" is '是否有效';
|
||||
COMMENT ON COLUMN "SYS_DICT"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_DICT"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_DICT"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_DICT"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_DICT"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_DICT"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_DICT_ITEM" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"DICT_NAME" NUMBER(19) NULL,
|
||||
"KEY" CHAR(10) NULL,
|
||||
"VALUE" VARCHAR2(100) NULL,
|
||||
"SORT" NUMBER(10) NULL,
|
||||
"VALID" CHAR(1) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
COMMENT ON TABLE "SYS_DICT_ITEM" is '字典项';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."DICT_NAME" is '字典名称';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."KEY" is '字典键';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."VALUE" is '字典值';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."SORT" is '排序';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."VALID" is '是否有效';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_FILE" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"NAME" VARCHAR2(250) NULL,
|
||||
"FILE_TYPE" VARCHAR(10) NULL,
|
||||
"ATTRIBUTE1" VARCHAR2(50) NULL,
|
||||
"ATTRIBUTE2" VARCHAR2(50) NULL,
|
||||
"LOCATION" VARCHAR2(500) NULL,
|
||||
"URL" VARCHAR2(500) NULL,
|
||||
"URL_DOWNLOAD" VARCHAR2(500) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
COMMENT ON TABLE "SYS_FILE" is '文件';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_FILE"."NAME" is '文件名称';
|
||||
COMMENT ON COLUMN "SYS_FILE"."FILE_TYPE" is '文件类型';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ATTRIBUTE1" is '扩展属性1';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ATTRIBUTE2" is '扩展属性2';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LOCATION" is '存放地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."URL" is '访问地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."URL_DOWNLOAD" is '下载地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_FILE"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_FILE"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_FILE"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
</#if>
|
||||
<#if dataBase == 'SQLite'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS "SYS_DICT" (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"DICT_NAME" VARCHAR(50) NOT NULL,
|
||||
"DICT_COMMENT" VARCHAR(50) NOT NULL,
|
||||
"VERSION" VARCHAR(50) NOT NULL,
|
||||
"VALID" BOOLEAN NOT NULL,
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS "SYS_DICT_ITEM" (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"DICT_NAME" BIGINT NOT NULL,
|
||||
"KEY" CHAR(10) NOT NULL,
|
||||
"VALUE" VARCHAR(100) NOT NULL,
|
||||
"SORT" MEDIUMINT NOT NULL,
|
||||
"VALID" BOOLEAN NOT NULL,
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS "SYS_FILE" (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"NAME" VARCHAR(250),
|
||||
"FILE_TYPE" VARCHAR(10),
|
||||
"ATTRIBUTE1" VARCHAR(50),
|
||||
"ATTRIBUTE2" VARCHAR(50),
|
||||
"LOCATION" VARCHAR(500),
|
||||
"URL" VARCHAR(500),
|
||||
"URL_DOWNLOAD" VARCHAR(500),
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
||||
</#if>
|
@ -0,0 +1,67 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_DICT` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`DICT_NAME` VARCHAR(50) NOT NULL COMMENT '字典名称',
|
||||
`DICT_COMMENT` VARCHAR(50) NOT NULL COMMENT '字典描述',
|
||||
`VERSION` VARCHAR(50) NOT NULL COMMENT '字典版本',
|
||||
`VALID` TINYINT(1) NOT NULL COMMENT '是否有效',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` INTEGER NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` INTEGER DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_DICT_ITEM` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`DICT_NAME` VARCHAR(50) NOT NULL COMMENT '字典名称',
|
||||
`KEY` VARCHAR(20) NOT NULL COMMENT '字典键',
|
||||
`VALUE` VARCHAR(100) NOT NULL COMMENT '字典值',
|
||||
`SORT` INTEGER(10) NOT NULL COMMENT '排序',
|
||||
`VALID` TINYINT(1) NOT NULL COMMENT '是否有效',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` INTEGER NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` INTEGER DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典项';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_FILE` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`NAME` VARCHAR(250) COMMENT '文件名称',
|
||||
`FILE_TYPE` VARCHAR(10) COMMENT '文件类型',
|
||||
`ATTRIBUTE1` VARCHAR(50) COMMENT '扩展属性1',
|
||||
`ATTRIBUTE2` VARCHAR(50) COMMENT '扩展属性2',
|
||||
`LOCATION` VARCHAR(500) COMMENT '存放地址',
|
||||
`URL` VARCHAR(500) COMMENT '访问地址',
|
||||
`URL_DOWNLOAD` VARCHAR(500) COMMENT '下载地址',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` INTEGER NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` INTEGER DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件';
|
||||
|
@ -0,0 +1,104 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_DICT" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"DICT_NAME" VARCHAR2(50) NULL,
|
||||
"DICT_COMMENT" VARCHAR2(50) NULL,
|
||||
"VERSION" VARCHAR2(50) NULL,
|
||||
"VALID" CHAR(1) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
COMMENT ON TABLE "SYS_DICT" is '字典';
|
||||
COMMENT ON COLUMN "SYS_DICT"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_DICT"."DICT_NAME" is '字典名称';
|
||||
COMMENT ON COLUMN "SYS_DICT"."DICT_COMMENT" is '字典描述';
|
||||
COMMENT ON COLUMN "SYS_DICT"."VERSION" is '字典版本';
|
||||
COMMENT ON COLUMN "SYS_DICT"."VALID" is '是否有效';
|
||||
COMMENT ON COLUMN "SYS_DICT"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_DICT"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_DICT"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_DICT"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_DICT"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_DICT"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_DICT_ITEM" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"DICT_NAME" VARCHAR2(50) NULL,
|
||||
"KEY" VARCHAR2(20) NULL,
|
||||
"VALUE" VARCHAR2(100) NULL,
|
||||
"SORT" NUMBER(10) NULL,
|
||||
"VALID" CHAR(1) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
COMMENT ON TABLE "SYS_DICT_ITEM" is '字典项';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."DICT_NAME" is '字典名称';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."KEY" is '字典键';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."VALUE" is '字典值';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."SORT" is '排序';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."VALID" is '是否有效';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_FILE" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"NAME" VARCHAR2(250) NULL,
|
||||
"FILE_TYPE" VARCHAR(10) NULL,
|
||||
"ATTRIBUTE1" VARCHAR2(50) NULL,
|
||||
"ATTRIBUTE2" VARCHAR2(50) NULL,
|
||||
"LOCATION" VARCHAR2(500) NULL,
|
||||
"URL" VARCHAR2(500) NULL,
|
||||
"URL_DOWNLOAD" VARCHAR2(500) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
COMMENT ON TABLE "SYS_FILE" is '文件';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_FILE"."NAME" is '文件名称';
|
||||
COMMENT ON COLUMN "SYS_FILE"."FILE_TYPE" is '文件类型';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ATTRIBUTE1" is '扩展属性1';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ATTRIBUTE2" is '扩展属性2';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LOCATION" is '存放地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."URL" is '访问地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."URL_DOWNLOAD" is '下载地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_FILE"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_FILE"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_FILE"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
|
@ -0,0 +1,23 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS SYS_FILE (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"NAME" VARCHAR(250),
|
||||
"FILE_TYPE" VARCHAR(10),
|
||||
"ATTRIBUTE1" VARCHAR(50),
|
||||
"ATTRIBUTE2" VARCHAR(50),
|
||||
"LOCATION" VARCHAR(500),
|
||||
"URL" VARCHAR(500),
|
||||
"URL_DOWNLOAD" VARCHAR(500),
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
||||
|
@ -1,77 +0,0 @@
|
||||
<#if dataBase == 'MySQL'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_DICT` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`DICT_NAME` VARCHAR(50) NOT NULL COMMENT '字典名称',
|
||||
`DICT_COMMENT` VARCHAR(50) NOT NULL COMMENT '字典描述',
|
||||
`VERSION` VARCHAR(50) NOT NULL COMMENT '字典版本',
|
||||
`VALID` TINYINT(1) NOT NULL COMMENT '是否有效',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典';
|
||||
</#if>
|
||||
<#if dataBase == 'Oracle'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_DICT" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"DICT_NAME" VARCHAR2(50) NULL,
|
||||
"DICT_COMMENT" VARCHAR2(50) NULL,
|
||||
"VERSION" VARCHAR2(50) NULL,
|
||||
"VALID" CHAR(1) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
|
||||
COMMENT ON TABLE "SYS_DICT" is '字典';
|
||||
COMMENT ON COLUMN "SYS_DICT"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_DICT"."DICT_NAME" is '字典名称';
|
||||
COMMENT ON COLUMN "SYS_DICT"."DICT_COMMENT" is '字典描述';
|
||||
COMMENT ON COLUMN "SYS_DICT"."VERSION" is '字典版本';
|
||||
COMMENT ON COLUMN "SYS_DICT"."VALID" is '是否有效';
|
||||
COMMENT ON COLUMN "SYS_DICT"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_DICT"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_DICT"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_DICT"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_DICT"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_DICT"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
</#if>
|
||||
<#if dataBase == 'SQLite'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS "SYS_DICT" (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"DICT_NAME" VARCHAR(50) NOT NULL,
|
||||
"DICT_COMMENT" VARCHAR(50) NOT NULL,
|
||||
"VERSION" VARCHAR(50) NOT NULL,
|
||||
"VALID" BOOLEAN NOT NULL,
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
||||
</#if>
|
@ -1,81 +0,0 @@
|
||||
<#if dataBase == 'MySQL'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_DICT_ITEM` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`DICT_NAME` BIGINT(20) NOT NULL COMMENT '字典名称',
|
||||
`KEY` CHAR(10) NOT NULL COMMENT '字典键',
|
||||
`VALUE` VARCHAR(100) NOT NULL COMMENT '字典值',
|
||||
`SORT` INTEGER(10) NOT NULL COMMENT '排序',
|
||||
`VALID` TINYINT(1) NOT NULL COMMENT '是否有效',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典项';
|
||||
</#if>
|
||||
<#if dataBase == 'Oracle'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_DICT_ITEM" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"DICT_NAME" NUMBER(19) NULL,
|
||||
"KEY" CHAR(10) NULL,
|
||||
"VALUE" VARCHAR2(100) NULL,
|
||||
"SORT" NUMBER(10) NULL,
|
||||
"VALID" CHAR(1) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
|
||||
COMMENT ON TABLE "SYS_DICT_ITEM" is '字典项';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."DICT_NAME" is '字典名称';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."KEY" is '字典键';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."VALUE" is '字典值';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."SORT" is '排序';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."VALID" is '是否有效';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
</#if>
|
||||
<#if dataBase == 'SQLite'>
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS "SYS_DICT_ITEM" (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"DICT_NAME" BIGINT NOT NULL,
|
||||
"KEY" CHAR(10) NOT NULL,
|
||||
"VALUE" VARCHAR(100) NOT NULL,
|
||||
"SORT" MEDIUMINT NOT NULL,
|
||||
"VALID" BOOLEAN NOT NULL,
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
||||
</#if>
|
@ -0,0 +1,21 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_DICT_ITEM` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`DICT_NAME` VARCHAR(50) NOT NULL COMMENT '字典名称',
|
||||
`KEY` VARCHAR(20) NOT NULL COMMENT '字典键',
|
||||
`VALUE` VARCHAR(100) NOT NULL COMMENT '字典值',
|
||||
`SORT` INTEGER(10) NOT NULL COMMENT '排序',
|
||||
`VALID` TINYINT(1) NOT NULL COMMENT '是否有效',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` INTEGER NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` INTEGER DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典项';
|
@ -0,0 +1,34 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_DICT_ITEM" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"DICT_NAME" VARCHAR2(50) NULL,
|
||||
"KEY" VARCHAR2(20) NULL,
|
||||
"VALUE" VARCHAR2(100) NULL,
|
||||
"SORT" NUMBER(10) NULL,
|
||||
"VALID" CHAR(1) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
|
||||
COMMENT ON TABLE "SYS_DICT_ITEM" is '字典项';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."DICT_NAME" is '字典名称';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."KEY" is '字典键';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."VALUE" is '字典值';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."SORT" is '排序';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."VALID" is '是否有效';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_DICT_ITEM"."LAST_UPDATE_TIME" is '最后更新时间';
|
@ -0,0 +1,20 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT_ITEM - 字典项
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS SYS_DICT_ITEM (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"DICT_NAME" VARCHAR(50) NOT NULL,
|
||||
"KEY" VARCHAR(20) NOT NULL,
|
||||
"VALUE" VARCHAR(100) NOT NULL,
|
||||
"SORT" MEDIUMINT NOT NULL,
|
||||
"VALID" BOOLEAN NOT NULL,
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
@ -0,0 +1,20 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_DICT` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`DICT_NAME` VARCHAR(50) NOT NULL COMMENT '字典名称',
|
||||
`DICT_COMMENT` VARCHAR(50) NOT NULL COMMENT '字典描述',
|
||||
`VERSION` VARCHAR(50) NOT NULL COMMENT '字典版本',
|
||||
`VALID` TINYINT(1) NOT NULL COMMENT '是否有效',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` INTEGER NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` INTEGER DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典';
|
@ -0,0 +1,32 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_DICT" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"DICT_NAME" VARCHAR2(50) NULL,
|
||||
"DICT_COMMENT" VARCHAR2(50) NULL,
|
||||
"VERSION" VARCHAR2(50) NULL,
|
||||
"VALID" CHAR(1) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
|
||||
COMMENT ON TABLE "SYS_DICT" is '字典';
|
||||
COMMENT ON COLUMN "SYS_DICT"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_DICT"."DICT_NAME" is '字典名称';
|
||||
COMMENT ON COLUMN "SYS_DICT"."DICT_COMMENT" is '字典描述';
|
||||
COMMENT ON COLUMN "SYS_DICT"."VERSION" is '字典版本';
|
||||
COMMENT ON COLUMN "SYS_DICT"."VALID" is '是否有效';
|
||||
COMMENT ON COLUMN "SYS_DICT"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_DICT"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_DICT"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_DICT"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_DICT"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_DICT"."LAST_UPDATE_TIME" is '最后更新时间';
|
@ -0,0 +1,19 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for DICT - 字典
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS SYS_DICT (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"DICT_NAME" VARCHAR(50) NOT NULL,
|
||||
"DICT_COMMENT" VARCHAR(50) NOT NULL,
|
||||
"VERSION" VARCHAR(50) NOT NULL,
|
||||
"VALID" BOOLEAN NOT NULL,
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
@ -1,89 +0,0 @@
|
||||
<#if dataBase == 'MySQL'>
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_FILE` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`NAME` VARCHAR(250) COMMENT '文件名称',
|
||||
`FILE_TYPE` VARCHAR(10) COMMENT '文件类型',
|
||||
`ATTRIBUTE1` VARCHAR(50) COMMENT '扩展属性1',
|
||||
`ATTRIBUTE2` VARCHAR(50) COMMENT '扩展属性2',
|
||||
`LOCATION` VARCHAR(500) COMMENT '存放地址',
|
||||
`URL` VARCHAR(500) COMMENT '访问地址',
|
||||
`URL_DOWNLOAD` VARCHAR(500) COMMENT '下载地址',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件';
|
||||
</#if>
|
||||
<#if dataBase == 'Oracle'>
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_FILE" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"NAME" VARCHAR2(250) NULL,
|
||||
"FILE_TYPE" VARCHAR(10) NULL,
|
||||
"ATTRIBUTE1" VARCHAR2(50) NULL,
|
||||
"ATTRIBUTE2" VARCHAR2(50) NULL,
|
||||
"LOCATION" VARCHAR2(500) NULL,
|
||||
"URL" VARCHAR2(500) NULL,
|
||||
"URL_DOWNLOAD" VARCHAR2(500) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
|
||||
COMMENT ON TABLE "SYS_FILE" is '文件';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_FILE"."NAME" is '文件名称';
|
||||
COMMENT ON COLUMN "SYS_FILE"."FILE_TYPE" is '文件类型';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ATTRIBUTE1" is '扩展属性1';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ATTRIBUTE2" is '扩展属性2';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LOCATION" is '存放地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."URL" is '访问地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."URL_DOWNLOAD" is '下载地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_FILE"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_FILE"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_FILE"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LAST_UPDATE_TIME" is '最后更新时间';
|
||||
</#if>
|
||||
<#if dataBase == 'SQLite'>
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-16
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS "SYS_FILE" (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"NAME" VARCHAR(250),
|
||||
"FILE_TYPE" VARCHAR(10),
|
||||
"ATTRIBUTE1" VARCHAR(50),
|
||||
"ATTRIBUTE2" VARCHAR(50),
|
||||
"LOCATION" VARCHAR(500),
|
||||
"URL" VARCHAR(500),
|
||||
"URL_DOWNLOAD" VARCHAR(500),
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
||||
</#if>
|
@ -0,0 +1,23 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : MySQL
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE `SYS_FILE` (
|
||||
`ID` BIGINT(20) NOT NULL COMMENT '主键',
|
||||
`NAME` VARCHAR(250) COMMENT '文件名称',
|
||||
`FILE_TYPE` VARCHAR(10) COMMENT '文件类型',
|
||||
`ATTRIBUTE1` VARCHAR(50) COMMENT '扩展属性1',
|
||||
`ATTRIBUTE2` VARCHAR(50) COMMENT '扩展属性2',
|
||||
`LOCATION` VARCHAR(500) COMMENT '存放地址',
|
||||
`URL` VARCHAR(500) COMMENT '访问地址',
|
||||
`URL_DOWNLOAD` VARCHAR(500) COMMENT '下载地址',
|
||||
`ROW_VERSION` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '行版本',
|
||||
`IS_DELETED` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否已删除',
|
||||
`CREATE_BY` BIGINT(20) NOT NULL COMMENT '创建用户',
|
||||
`CREATE_TIME` INTEGER NOT NULL COMMENT '创建时间',
|
||||
`LAST_UPDATE_BY` BIGINT(20) DEFAULT NULL COMMENT '最后更新用户',
|
||||
`LAST_UPDATE_TIME` INTEGER DEFAULT NULL COMMENT '最后更新时间',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件';
|
@ -0,0 +1,38 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : Oracle
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE "SYS_FILE" (
|
||||
"ID" NUMBER(19) NOT NULL,
|
||||
"NAME" VARCHAR2(250) NULL,
|
||||
"FILE_TYPE" VARCHAR(10) NULL,
|
||||
"ATTRIBUTE1" VARCHAR2(50) NULL,
|
||||
"ATTRIBUTE2" VARCHAR2(50) NULL,
|
||||
"LOCATION" VARCHAR2(500) NULL,
|
||||
"URL" VARCHAR2(500) NULL,
|
||||
"URL_DOWNLOAD" VARCHAR2(500) NULL,
|
||||
"ROW_VERSION" NUMBER(19) NOT NULL,
|
||||
"IS_DELETED" CHAR(1) NOT NULL,
|
||||
"CREATE_BY" NUMBER(19) NOT NULL,
|
||||
"CREATE_TIME" DATE NOT NULL,
|
||||
"LAST_UPDATE_BY" NUMBER(19) NULL,
|
||||
"LAST_UPDATE_TIME" DATE NULL
|
||||
);
|
||||
|
||||
COMMENT ON TABLE "SYS_FILE" is '文件';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ID" is '主键';
|
||||
COMMENT ON COLUMN "SYS_FILE"."NAME" is '文件名称';
|
||||
COMMENT ON COLUMN "SYS_FILE"."FILE_TYPE" is '文件类型';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ATTRIBUTE1" is '扩展属性1';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ATTRIBUTE2" is '扩展属性2';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LOCATION" is '存放地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."URL" is '访问地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."URL_DOWNLOAD" is '下载地址';
|
||||
COMMENT ON COLUMN "SYS_FILE"."ROW_VERSION" is '行版本';
|
||||
COMMENT ON COLUMN "SYS_FILE"."IS_DELETED" is '是否已删除';
|
||||
COMMENT ON COLUMN "SYS_FILE"."CREATE_BY" is '创建用户';
|
||||
COMMENT ON COLUMN "SYS_FILE"."CREATE_TIME" is '创建时间';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LAST_UPDATE_BY" is '最后更新用户';
|
||||
COMMENT ON COLUMN "SYS_FILE"."LAST_UPDATE_TIME" is '最后更新时间';
|
@ -0,0 +1,22 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for FILE - 文件
|
||||
-- Target : SQLite
|
||||
-- Author : wangbing
|
||||
-- Date: : 2019-12-17
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS SYS_FILE (
|
||||
"ID" BIGINT PRIMARY KEY NOT NULL,
|
||||
"NAME" VARCHAR(250),
|
||||
"FILE_TYPE" VARCHAR(10),
|
||||
"ATTRIBUTE1" VARCHAR(50),
|
||||
"ATTRIBUTE2" VARCHAR(50),
|
||||
"LOCATION" VARCHAR(500),
|
||||
"URL" VARCHAR(500),
|
||||
"URL_DOWNLOAD" VARCHAR(500),
|
||||
"ROW_VERSION" BIGINT NOT NULL,
|
||||
"IS_DELETED" BOOLEAN NOT NULL,
|
||||
"CREATE_BY" BIGINT NOT NULL,
|
||||
"CREATE_TIME" DATETIME NOT NULL,
|
||||
"LAST_UPDATE_BY" BIGINT,
|
||||
"LAST_UPDATE_TIME" DATETIME
|
||||
);
|
@ -1,65 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project>
|
||||
<projectName>wadmin</projectName>
|
||||
<projectBasePackage>xyz.wbsite</projectBasePackage>
|
||||
<projectAuthor>wangbing</projectAuthor>
|
||||
<modules>
|
||||
<module>
|
||||
<moduleComment>系统</moduleComment>
|
||||
<modulePrefix>SYS_</modulePrefix>
|
||||
<moduleName>system</moduleName>
|
||||
<hasSysFields>true</hasSysFields>
|
||||
<tables>
|
||||
<table create="true" delete="true" find="true" get="true" getAll="false" html="false" search="false" tableComment="字典" tableName="DICT" update="true">
|
||||
<fields>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典描述" fieldLength="50" fieldName="DICT_COMMENT" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典版本" fieldLength="50" fieldName="VERSION" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
</fields>
|
||||
</table>
|
||||
<table create="true" delete="true" find="true" get="true" getAll="false" html="false" search="false" tableComment="字典项" tableName="DICT_ITEM" update="true">
|
||||
<fields>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典名称" fieldLength="0" fieldName="DICT_NAME" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典键" fieldLength="10" fieldName="KEY" fieldType="String_10" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典值" fieldLength="100" fieldName="VALUE" fieldType="String_var100" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="排序" fieldLength="0" fieldName="SORT" fieldType="Integer" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
</fields>
|
||||
</table>
|
||||
<table create="true" delete="true" find="true" get="true" getAll="false" html="false" search="false" tableComment="文件" tableName="FILE" update="true">
|
||||
<fields>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="文件名称" fieldLength="255" fieldName="NAME" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="文件类型" fieldLength="0" fieldName="FILE_TYPE" fieldType="Dict" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="扩展属性1" fieldLength="50" fieldName="ATTRIBUTE1" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="扩展属性2" fieldLength="50" fieldName="ATTRIBUTE2" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="存放地址" fieldLength="500" fieldName="LOCATION" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="访问地址" fieldLength="500" fieldName="URL" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="下载地址" fieldLength="500" fieldName="URL_DOWNLOAD" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
</fields>
|
||||
</table>
|
||||
</tables>
|
||||
</module>
|
||||
</modules>
|
||||
<projectName>wadmin</projectName>
|
||||
<projectBasePackage>xyz.wbsite</projectBasePackage>
|
||||
<projectAuthor>wangbing</projectAuthor>
|
||||
<modules>
|
||||
<module>
|
||||
<moduleComment>系统</moduleComment>
|
||||
<modulePrefix>SYS_</modulePrefix>
|
||||
<moduleName>system</moduleName>
|
||||
<hasSysFields>true</hasSysFields>
|
||||
<tables>
|
||||
<table create="true" delete="true" find="true" get="true" getAll="false" html="false" search="false" tableComment="字典" tableName="DICT" update="true">
|
||||
<fields>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典描述" fieldLength="50" fieldName="DICT_COMMENT" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典版本" fieldLength="50" fieldName="VERSION" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
</fields>
|
||||
</table>
|
||||
<table create="true" delete="true" find="true" get="true" getAll="false" html="false" search="false" tableComment="字典项" tableName="DICT_ITEM" update="true">
|
||||
<fields>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典键" fieldLength="20" fieldName="KEY" fieldType="String_var" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="字典值" fieldLength="100" fieldName="VALUE" fieldType="String_var100" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="排序" fieldLength="0" fieldName="SORT" fieldType="Integer" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
</fields>
|
||||
</table>
|
||||
<table create="true" delete="true" find="true" get="true" getAll="false" html="false" search="false" tableComment="文件" tableName="FILE" update="true">
|
||||
<fields>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="文件名称" fieldLength="255" fieldName="NAME" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="文件类型" fieldLength="0" fieldName="FILE_TYPE" fieldType="Dict" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="扩展属性1" fieldLength="50" fieldName="ATTRIBUTE1" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="扩展属性2" fieldLength="50" fieldName="ATTRIBUTE2" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="存放地址" fieldLength="500" fieldName="LOCATION" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="访问地址" fieldLength="500" fieldName="URL" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="false" defaultValue="NULL" fieldComment="下载地址" fieldLength="500" fieldName="URL_DOWNLOAD" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"/>
|
||||
</fields>
|
||||
</table>
|
||||
</tables>
|
||||
</module>
|
||||
</modules>
|
||||
</project>
|
||||
|
Loading…
Reference in new issue