1、LogErr优化,ftl优化

Former-commit-id: 621e0159fb8feee91061440cd9a620b5730d773f
master
王兵 4 years ago
parent e1b6e32c72
commit 2b227382e8

@ -1,13 +1,13 @@
package com.example.config;
package ${basePackage}.config;
import com.example.frame.auth.LocalData;
import com.example.frame.schedule.RunTask;
import com.example.frame.schedule.Scheduler;
import com.example.frame.utils.LogUtil;
import com.example.module.system.ent.TaskSql;
import com.example.module.system.mgr.TaskSqlManager;
import com.example.module.system.req.TaskSqlFindRequest;
import com.example.module.system.rsp.TaskSqlFindResponse;
import ${basePackage}.frame.auth.LocalData;
import ${basePackage}.frame.schedule.RunTask;
import ${basePackage}.frame.schedule.Scheduler;
import ${basePackage}.frame.utils.LogUtil;
import ${basePackage}.module.system.ent.TaskSql;
import ${basePackage}.module.system.mgr.TaskSqlManager;
import ${basePackage}.module.system.req.TaskSqlFindRequest;
import ${basePackage}.module.system.rsp.TaskSqlFindResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;

@ -11,6 +11,7 @@ import ${basePackage}.module.system.rsp.DictLoadResponse;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.List;
import java.util.Locale;
public class DictValidator implements ConstraintValidator<Dict, String> {
@ -23,13 +24,13 @@ public class DictValidator implements ConstraintValidator<Dict, String> {
@Override
public boolean isValid(String o, ConstraintValidatorContext constraintValidatorContext) {
String messagePrefix = "";
String fieldName = "";
if (constraintValidatorContext instanceof ConstraintValidatorContextImpl) {
ConstraintValidatorContextImpl validatorContext = (ConstraintValidatorContextImpl) constraintValidatorContext;
if (validatorContext.getConstraintViolationCreationContexts() != null
&& validatorContext.getConstraintViolationCreationContexts().size() > 0
&& validatorContext.getConstraintViolationCreationContexts().get(0).getPath() != null) {
messagePrefix = "[" + validatorContext.getConstraintViolationCreationContexts().get(0).getPath().asString() + "]";
fieldName = validatorContext.getConstraintViolationCreationContexts().get(0).getPath().asString();
}
}
@ -37,8 +38,8 @@ public class DictValidator implements ConstraintValidator<Dict, String> {
return true;
} else if (name == null) {
constraintValidatorContext.disableDefaultConstraintViolation();
constraintValidatorContext.buildConstraintViolationWithTemplate(messagePrefix + "字典名称为空").addConstraintViolation();
String message = String.format(Locale.CHINESE, "[ %s ] 未指定字典名称!", fieldName);
constraintValidatorContext.buildConstraintViolationWithTemplate(message).addConstraintViolation();
return false;
} else {
// name 字典名称
@ -49,7 +50,8 @@ public class DictValidator implements ConstraintValidator<Dict, String> {
if (dictLoadResponse.hasError()) {
constraintValidatorContext.disableDefaultConstraintViolation();
constraintValidatorContext.buildConstraintViolationWithTemplate(messagePrefix + "验证字典[" + name + "]值出现异常->" + dictLoadResponse.getErrors().get(0).getMessage()).addConstraintViolation();
String message = String.format(Locale.CHINESE, "[ %s ] 验证字典 [ %s ] 值出现异常-> %s", fieldName, name, dictLoadResponse.getErrors().get(0).getMessage());
constraintValidatorContext.buildConstraintViolationWithTemplate(message).addConstraintViolation();
return false;
}
@ -64,8 +66,8 @@ public class DictValidator implements ConstraintValidator<Dict, String> {
if (i < dictItems.size()) {
return true;
} else {
constraintValidatorContext.disableDefaultConstraintViolation();
constraintValidatorContext.buildConstraintViolationWithTemplate(messagePrefix + "不存在于字典[" + name + "]中").addConstraintViolation();
String message = String.format(Locale.CHINESE, "%s 指定的字典 [ %s ] 中,未找到字典值(%s)", fieldName, name, o);
constraintValidatorContext.buildConstraintViolationWithTemplate(message).addConstraintViolation();
return false;
}
}

@ -1,16 +1,17 @@
package ${basePackage}.module.system.ent;
import ${basePackage}.frame.base.BaseEntity;
import ${basePackage}.frame.excel.annotation.ColumnDescription;
import ${basePackage}.frame.excel.annotation.ColumnList;
import ${basePackage}.frame.excel.annotation.ColumnName;
import ${basePackage}.frame.excel.annotation.SheetName;
import ${basePackage}.frame.base.BaseEntity;
/**
* LOG_ERR -
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
* @since 2020-06-07
*/
@SheetName("错误日志")
public class LogErr extends BaseEntity {
@ -22,17 +23,17 @@ public class LogErr extends BaseEntity {
@ColumnDescription("")
private String logErrType;
/**
* TITLE -
* LOG_TITLE -
*/
@ColumnName("错误标题")
@ColumnName("日志标题")
@ColumnDescription("")
private String title;
private String logTitle;
/**
* CONTENT -
* LOG_NOTE -
*/
@ColumnName("错误内容")
@ColumnName("日志内容")
@ColumnDescription("")
private String content;
private String logNote;
/**
* LOG_ERR_RESULT -
*/
@ -40,23 +41,23 @@ public class LogErr extends BaseEntity {
@ColumnDescription("")
private String logErrResult;
/**
* ATTRIBUTE1 - 1
* LOG_ATTR1 - 1
*/
@ColumnName("属性1")
@ColumnDescription("")
private String attribute1;
private String logAttr1;
/**
* ATTRIBUTE2 - 2
* LOG_ATTR2 - 2
*/
@ColumnName("属性2")
@ColumnDescription("")
private String attribute2;
private String logAttr2;
/**
* ATTRIBUTE3 - 3
* LOG_ATTR3 - 3
*/
@ColumnName("属性3")
@ColumnDescription("")
private String attribute3;
private String logAttr3;
public String getLogErrType() {
return this.logErrType;
@ -66,20 +67,20 @@ public class LogErr extends BaseEntity {
this.logErrType = logErrType;
}
public String getTitle() {
return this.title;
public String getLogTitle() {
return this.logTitle;
}
public void setTitle(String title) {
this.title = title;
public void setLogTitle(String logTitle) {
this.logTitle = logTitle;
}
public String getContent() {
return this.content;
public String getLogNote() {
return this.logNote;
}
public void setContent(String content) {
this.content = content;
public void setLogNote(String logNote) {
this.logNote = logNote;
}
public String getLogErrResult() {
@ -90,27 +91,27 @@ public class LogErr extends BaseEntity {
this.logErrResult = logErrResult;
}
public String getAttribute1() {
return this.attribute1;
public String getLogAttr1() {
return this.logAttr1;
}
public void setAttribute1(String attribute1) {
this.attribute1 = attribute1;
public void setLogAttr1(String logAttr1) {
this.logAttr1 = logAttr1;
}
public String getAttribute2() {
return this.attribute2;
public String getLogAttr2() {
return this.logAttr2;
}
public void setAttribute2(String attribute2) {
this.attribute2 = attribute2;
public void setLogAttr2(String logAttr2) {
this.logAttr2 = logAttr2;
}
public String getAttribute3() {
return this.attribute3;
public String getLogAttr3() {
return this.logAttr3;
}
public void setAttribute3(String attribute3) {
this.attribute3 = attribute3;
public void setLogAttr3(String logAttr3) {
this.logAttr3 = logAttr3;
}
}

@ -65,4 +65,13 @@ public interface LogErrManager {
* @return
*/
LogErrGetResponse get(LogErrGetRequest request, Token token);
/**
*
* @param LogErrType SYS_ERRBIZ_ERR
* @param title
* @param content
* @return
*/
boolean addErr(String LogErrType, String title, String content);
}

@ -6,6 +6,7 @@ import com.github.pagehelper.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import ${basePackage}.frame.auth.LocalData;
import ${basePackage}.frame.base.ErrorType;
import ${basePackage}.frame.auth.Token;
import ${basePackage}.frame.utils.IDgenerator;
@ -174,4 +175,27 @@ public class LogErrManagerImpl implements ${basePackage}.module.system.mgr.LogEr
return response;
}
/**
*
*
* @param LogErrType SYS_ERRBIZ_ERR
* @param logTitle
* @param logNote
* @return
*/
public boolean addErr(String LogErrType, String logTitle, String logNote){
LogErr entity = new LogErr();
entity.setId(IDgenerator.nextId());
entity.setLogTitle(logTitle);
entity.setLogNote(logNote);
entity.setLogErrType(LogErrType);
entity.setLogErrResult("0");
long result = logErrMapper.insert(entity, LocalData.getSysToken());
if (1L != result) {
return false;
}
return true;
}
}

@ -7,24 +7,24 @@
<sql id="table">`SYS_LOG_ERR`</sql>
<sql id="entityColumnList">
`ID`,`LOG_ERR_TYPE`,`TITLE`,`CONTENT`,`LOG_ERR_RESULT`,`ATTRIBUTE1`,`ATTRIBUTE2`,`ATTRIBUTE3`,`ROW_VERSION`,`IS_DELETED`,`CREATE_BY`,`CREATE_TIME`,`LAST_UPDATE_BY`,`LAST_UPDATE_TIME`
`ID`,`LOG_ERR_TYPE`,`LOG_TITLE`,`LOG_NOTE`,`LOG_ERR_RESULT`,`LOG_ATTR1`,`LOG_ATTR2`,`LOG_ATTR3`,`ROW_VERSION`,`IS_DELETED`,`CREATE_BY`,`CREATE_TIME`,`LAST_UPDATE_BY`,`LAST_UPDATE_TIME`
</sql>
<resultMap id="logErr" type="${basePackage}.module.system.ent.LogErr">
<result column="ID" jdbcType="BIGINT" property="id"/>
<result column="LOG_ERR_TYPE" jdbcType="VARCHAR" property="logErrType"/>
<result column="TITLE" jdbcType="VARCHAR" property="title"/>
<result column="CONTENT" jdbcType="VARCHAR" property="content"/>
<result column="LOG_ERR_RESULT" jdbcType="VARCHAR" property="logErrResult"/>
<result column="ATTRIBUTE1" jdbcType="VARCHAR" property="attribute1"/>
<result column="ATTRIBUTE2" jdbcType="VARCHAR" property="attribute2"/>
<result column="ATTRIBUTE3" jdbcType="VARCHAR" property="attribute3"/>
<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"/>
<result column="ID" jdbcType="BIGINT" property="id"/>
<result column="LOG_ERR_TYPE" jdbcType="VARCHAR" property="logErrType"/>
<result column="LOG_TITLE" jdbcType="VARCHAR" property="logTitle"/>
<result column="LOG_NOTE" jdbcType="VARCHAR" property="logNote"/>
<result column="LOG_ERR_RESULT" jdbcType="VARCHAR" property="logErrResult"/>
<result column="LOG_ATTR1" jdbcType="VARCHAR" property="logAttr1"/>
<result column="LOG_ATTR2" jdbcType="VARCHAR" property="logAttr2"/>
<result column="LOG_ATTR3" jdbcType="VARCHAR" property="logAttr3"/>
<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="logErr">
@ -35,22 +35,13 @@
WHERE
`IS_DELETED` = 0
<if test="request.logErrType != null and request.logErrType != ''">
AND `LOG_ERR_TYPE` = ${r'#'}{request.logErrType}
AND `LOG_ERR_TYPE` = ${r"#"}{request.logErrType}
</if>
<if test="request.title != null and request.title != ''">
AND `TITLE` = ${r'#'}{request.title}
<if test="request.logTitle != null and request.logTitle != ''">
AND `LOG_TITLE` = ${r"#"}{request.logTitle}
</if>
<if test="request.logErrResult != null and request.logErrResult != ''">
AND `LOG_ERR_RESULT` = ${r'#'}{request.logErrResult}
</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>
<if test="request.attribute3 != null and request.attribute3 != ''">
AND `ATTRIBUTE3` = ${r'#'}{request.attribute3}
AND `LOG_ERR_RESULT` = ${r"#"}{request.logErrResult}
</if>
</select>
@ -61,9 +52,6 @@
<include refid="table"/>
WHERE
`IS_DELETED` = 0
<if test="request.keyword != null and request.keyword != ''">
1 = 2
</if>
</select>
<insert id="insert">
@ -74,17 +62,17 @@
)
VALUES
(
${r'#'}{request.id},
${r'#'}{request.logErrType,jdbcType=VARCHAR},
${r'#'}{request.title,jdbcType=VARCHAR},
${r'#'}{request.content,jdbcType=VARCHAR},
${r'#'}{request.logErrResult,jdbcType=VARCHAR},
${r'#'}{request.attribute1,jdbcType=VARCHAR},
${r'#'}{request.attribute2,jdbcType=VARCHAR},
${r'#'}{request.attribute3,jdbcType=VARCHAR},
${r"#"}{request.id},
${r"#"}{request.logErrType,jdbcType=VARCHAR},
${r"#"}{request.logTitle,jdbcType=VARCHAR},
${r"#"}{request.logNote,jdbcType=VARCHAR},
${r"#"}{request.logErrResult,jdbcType=VARCHAR},
${r"#"}{request.logAttr1,jdbcType=VARCHAR},
${r"#"}{request.logAttr2,jdbcType=VARCHAR},
${r"#"}{request.logAttr3,jdbcType=VARCHAR},
0,
0,
${r'#'}{token.userId,jdbcType=NUMERIC},
${r"#"}{token.userId,jdbcType=NUMERIC},
sysdate(),
NULL,
NULL
@ -98,24 +86,24 @@
<include refid="entityColumnList"/>
)
VALUES
<foreach collection="list" item= "item" index ="index" separator=",">
(
${r'#'}{item.id},
${r'#'}{item.logErrType,jdbcType=VARCHAR},
${r'#'}{item.title,jdbcType=VARCHAR},
${r'#'}{item.content,jdbcType=VARCHAR},
${r'#'}{item.logErrResult,jdbcType=VARCHAR},
${r'#'}{item.attribute1,jdbcType=VARCHAR},
${r'#'}{item.attribute2,jdbcType=VARCHAR},
${r'#'}{item.attribute3,jdbcType=VARCHAR},
0,
0,
${r'#'}{token.userId,jdbcType=NUMERIC},
sysdate(),
NULL,
NULL
)
</foreach >
<foreach collection="list" item="item" index="index" separator=",">
(
${r"#"}{item.id},
${r"#"}{item.logErrType,jdbcType=VARCHAR},
${r"#"}{item.logTitle,jdbcType=VARCHAR},
${r"#"}{item.logNote,jdbcType=VARCHAR},
${r"#"}{item.logErrResult,jdbcType=VARCHAR},
${r"#"}{item.logAttr1,jdbcType=VARCHAR},
${r"#"}{item.logAttr2,jdbcType=VARCHAR},
${r"#"}{item.logAttr3,jdbcType=VARCHAR},
0,
0,
${r"#"}{token.userId,jdbcType=NUMERIC},
sysdate(),
NULL,
NULL
)
</foreach>
</insert>
<update id="delete">
@ -123,27 +111,26 @@
<include refid="table"/>
SET `IS_DELETED` = 1
WHERE `IS_DELETED` = 0
AND `ID` = ${r'#'}{request.id}
AND `ID` = ${r"#"}{request.id}
</update>
<update id="update">
UPDATE
<include refid="table"/>
SET
`LOG_ERR_TYPE` = ${r'#'}{request.logErrType,jdbcType=VARCHAR},
`TITLE` = ${r'#'}{request.title,jdbcType=VARCHAR},
`CONTENT` = ${r'#'}{request.content,jdbcType=VARCHAR},
`LOG_ERR_RESULT` = ${r'#'}{request.logErrResult,jdbcType=VARCHAR},
`ATTRIBUTE1` = ${r'#'}{request.attribute1,jdbcType=VARCHAR},
`ATTRIBUTE2` = ${r'#'}{request.attribute2,jdbcType=VARCHAR},
`ATTRIBUTE3` = ${r'#'}{request.attribute3,jdbcType=VARCHAR},
`LOG_ERR_TYPE` = ${r"#"}{request.logErrType,jdbcType=VARCHAR},
`LOG_TITLE` = ${r"#"}{request.logTitle,jdbcType=VARCHAR},
`LOG_NOTE` = ${r"#"}{request.logNote,jdbcType=VARCHAR},
`LOG_ERR_RESULT` = ${r"#"}{request.logErrResult,jdbcType=VARCHAR},
`LOG_ATTR1` = ${r"#"}{request.logAttr1,jdbcType=VARCHAR},
`LOG_ATTR2` = ${r"#"}{request.logAttr2,jdbcType=VARCHAR},
`LOG_ATTR3` = ${r"#"}{request.logAttr3,jdbcType=VARCHAR},
`ROW_VERSION` = `ROW_VERSION` + 1,
`LAST_UPDATE_BY` = ${r'#'}{token.userId},
`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}
WHERE `IS_DELETED` = 0
AND `ID` = ${r"#"}{request.id}
AND `ROW_VERSION` = ${r"#"}{request.rowVersion}
</update>
<select id="get" resultMap="logErr">
@ -151,8 +138,7 @@
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE
`IS_DELETED` = 0
AND `ID` = ${r'#'}{request.id}
WHERE `IS_DELETED` = 0
AND `ID` = ${r"#"}{request.id}
</select>
</mapper>

@ -0,0 +1,125 @@
<?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.ProfilesMapper">
<sql id="table">`SYS_PROFILES`</sql>
<sql id="entityColumnList">
`ID`,`ACTIVE`,`KEY`,`VALUE`,`ROW_VERSION`,`IS_DELETED`,`CREATE_BY`,`CREATE_TIME`,`LAST_UPDATE_BY`,`LAST_UPDATE_TIME`
</sql>
<resultMap id="profiles" type="${basePackage}.module.system.ent.Profiles">
<result column="ID" jdbcType="BIGINT" property="id"/>
<result column="ACTIVE" jdbcType="VARCHAR" property="active"/>
<result column="KEY" jdbcType="VARCHAR" property="key"/>
<result column="VALUE" jdbcType="VARCHAR" property="value"/>
<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="profiles">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE
`IS_DELETED` = 0
<if test="request.active != null and request.active != ''">
AND `ACTIVE` = ${r"#"}{request.active}
</if>
<if test="request.key != null and request.key != ''">
AND `KEY` = ${r"#"}{request.key}
</if>
</select>
<select id="search" resultMap="profiles">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE
`IS_DELETED` = 0
</select>
<insert id="insert">
INSERT INTO
<include refid="table"/>
(
<include refid="entityColumnList"/>
)
VALUES
(
${r"#"}{request.id},
${r"#"}{request.active,jdbcType=VARCHAR},
${r"#"}{request.key,jdbcType=VARCHAR},
${r"#"}{request.value,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.active,jdbcType=VARCHAR},
${r"#"}{item.key,jdbcType=VARCHAR},
${r"#"}{item.value,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
`ACTIVE` = ${r"#"}{request.active,jdbcType=VARCHAR},
`KEY` = ${r"#"}{request.key,jdbcType=VARCHAR},
`VALUE` = ${r"#"}{request.value,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="get" resultMap="profiles">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE `IS_DELETED` = 0
AND `ID` = ${r"#"}{request.id}
</select>
</mapper>

@ -0,0 +1,143 @@
<?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.TaskSqlMapper">
<sql id="table">`SYS_TASK_SQL`</sql>
<sql id="entityColumnList">
`ID`,`TASK_NAME`,`TASK_NOTE`,`TASK_TYPE`,`TYPE_VALUE`,`TASK_SQL`,`VALID`,`ROW_VERSION`,`IS_DELETED`,`CREATE_BY`,`CREATE_TIME`,`LAST_UPDATE_BY`,`LAST_UPDATE_TIME`
</sql>
<resultMap id="taskSql" type="${basePackage}.module.system.ent.TaskSql">
<result column="ID" jdbcType="BIGINT" property="id"/>
<result column="TASK_NAME" jdbcType="VARCHAR" property="taskName"/>
<result column="TASK_NOTE" jdbcType="VARCHAR" property="taskNote"/>
<result column="TASK_TYPE" jdbcType="VARCHAR" property="taskType"/>
<result column="TYPE_VALUE" jdbcType="VARCHAR" property="typeValue"/>
<result column="TASK_SQL" jdbcType="VARCHAR" property="taskSql"/>
<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="taskSql">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE
`IS_DELETED` = 0
<if test="request.taskName != null and request.taskName != ''">
AND `TASK_NAME` = ${r"#"}{request.taskName}
</if>
<if test="request.taskNote != null and request.taskNote != ''">
AND `TASK_NOTE` = ${r"#"}{request.taskNote}
</if>
<if test="request.taskType != null and request.taskType != ''">
AND `TASK_TYPE` = ${r"#"}{request.taskType}
</if>
<if test="request.valid != null">
AND `VALID` = ${r"#"}{request.valid}
</if>
</select>
<select id="search" resultMap="taskSql">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE
`IS_DELETED` = 0
</select>
<insert id="insert">
INSERT INTO
<include refid="table"/>
(
<include refid="entityColumnList"/>
)
VALUES
(
${r"#"}{request.id},
${r"#"}{request.taskName,jdbcType=VARCHAR},
${r"#"}{request.taskNote,jdbcType=VARCHAR},
${r"#"}{request.taskType,jdbcType=VARCHAR},
${r"#"}{request.typeValue,jdbcType=VARCHAR},
${r"#"}{request.taskSql,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.taskName,jdbcType=VARCHAR},
${r"#"}{item.taskNote,jdbcType=VARCHAR},
${r"#"}{item.taskType,jdbcType=VARCHAR},
${r"#"}{item.typeValue,jdbcType=VARCHAR},
${r"#"}{item.taskSql,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
`TASK_NAME` = ${r"#"}{request.taskName,jdbcType=VARCHAR},
`TASK_NOTE` = ${r"#"}{request.taskNote,jdbcType=VARCHAR},
`TASK_TYPE` = ${r"#"}{request.taskType,jdbcType=VARCHAR},
`TYPE_VALUE` = ${r"#"}{request.typeValue,jdbcType=VARCHAR},
`TASK_SQL` = ${r"#"}{request.taskSql,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="get" resultMap="taskSql">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE `IS_DELETED` = 0
AND `ID` = ${r"#"}{request.id}
</select>
</mapper>

@ -7,18 +7,18 @@
<sql id="table">"SYS_LOG_ERR"</sql>
<sql id="entityColumnList">
"ID","LOG_ERR_TYPE","TITLE","CONTENT","LOG_ERR_RESULT","ATTRIBUTE1","ATTRIBUTE2","ATTRIBUTE3","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
"ID","LOG_ERR_TYPE","LOG_TITLE","LOG_NOTE","LOG_ERR_RESULT","LOG_ATTR1","LOG_ATTR2","LOG_ATTR3","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
</sql>
<resultMap id="logErr" type="${basePackage}.module.system.ent.LogErr">
<result column="ID" jdbcType="BIGINT" property="id"/>
<result column="LOG_ERR_TYPE" jdbcType="VARCHAR" property="logErrType"/>
<result column="TITLE" jdbcType="VARCHAR" property="title"/>
<result column="CONTENT" jdbcType="VARCHAR" property="content"/>
<result column="LOG_TITLE" jdbcType="VARCHAR" property="logTitle"/>
<result column="LOG_NOTE" jdbcType="VARCHAR" property="logNote"/>
<result column="LOG_ERR_RESULT" jdbcType="VARCHAR" property="logErrResult"/>
<result column="ATTRIBUTE1" jdbcType="VARCHAR" property="attribute1"/>
<result column="ATTRIBUTE2" jdbcType="VARCHAR" property="attribute2"/>
<result column="ATTRIBUTE3" jdbcType="VARCHAR" property="attribute3"/>
<result column="LOG_ATTR1" jdbcType="VARCHAR" property="logAttr1"/>
<result column="LOG_ATTR2" jdbcType="VARCHAR" property="logAttr2"/>
<result column="LOG_ATTR3" jdbcType="VARCHAR" property="logAttr3"/>
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
@ -37,21 +37,12 @@
<if test="request.logErrType != null and request.logErrType != ''">
AND LOG_ERR_TYPE = ${r"#"}{request.logErrType}
</if>
<if test="request.title != null and request.title != ''">
AND TITLE = ${r"#"}{request.title}
<if test="request.logTitle != null and request.logTitle != ''">
AND LOG_TITLE = ${r"#"}{request.logTitle}
</if>
<if test="request.logErrResult != null and request.logErrResult != ''">
AND LOG_ERR_RESULT = ${r"#"}{request.logErrResult}
</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>
<if test="request.attribute3 != null and request.attribute3 != ''">
AND ATTRIBUTE3 = ${r"#"}{request.attribute3}
</if>
</select>
<select id="search" resultMap="logErr">
@ -61,9 +52,6 @@
<include refid="table"/>
WHERE
"IS_DELETED" = 0
<if test="request.keyword != null and request.keyword != ''">
1 = 2
</if>
</select>
<insert id="insert">
@ -76,12 +64,12 @@
(
${r"#"}{request.id},
${r"#"}{request.logErrType,jdbcType=VARCHAR},
${r"#"}{request.title,jdbcType=VARCHAR},
${r"#"}{request.content,jdbcType=VARCHAR},
${r"#"}{request.logTitle,jdbcType=VARCHAR},
${r"#"}{request.logNote,jdbcType=VARCHAR},
${r"#"}{request.logErrResult,jdbcType=VARCHAR},
${r"#"}{request.attribute1,jdbcType=VARCHAR},
${r"#"}{request.attribute2,jdbcType=VARCHAR},
${r"#"}{request.attribute3,jdbcType=VARCHAR},
${r"#"}{request.logAttr1,jdbcType=VARCHAR},
${r"#"}{request.logAttr2,jdbcType=VARCHAR},
${r"#"}{request.logAttr3,jdbcType=VARCHAR},
0,
0,
${r"#"}{token.userId,jdbcType=NUMERIC},
@ -98,16 +86,16 @@
<include refid="entityColumnList"/>
)
VALUES
<foreach collection="list" item= "item" index ="index" separator=",">
<foreach collection="list" item="item" index="index" separator=",">
(
${r"#"}{item.id},
${r"#"}{item.logErrType,jdbcType=VARCHAR},
${r"#"}{item.title,jdbcType=VARCHAR},
${r"#"}{item.content,jdbcType=VARCHAR},
${r"#"}{item.logTitle,jdbcType=VARCHAR},
${r"#"}{item.logNote,jdbcType=VARCHAR},
${r"#"}{item.logErrResult,jdbcType=VARCHAR},
${r"#"}{item.attribute1,jdbcType=VARCHAR},
${r"#"}{item.attribute2,jdbcType=VARCHAR},
${r"#"}{item.attribute3,jdbcType=VARCHAR},
${r"#"}{item.logAttr1,jdbcType=VARCHAR},
${r"#"}{item.logAttr2,jdbcType=VARCHAR},
${r"#"}{item.logAttr3,jdbcType=VARCHAR},
0,
0,
${r"#"}{token.userId,jdbcType=NUMERIC},
@ -131,17 +119,16 @@
<include refid="table"/>
SET
LOG_ERR_TYPE = ${r"#"}{request.logErrType,jdbcType=VARCHAR},
TITLE = ${r"#"}{request.title,jdbcType=VARCHAR},
CONTENT = ${r"#"}{request.content,jdbcType=VARCHAR},
LOG_TITLE = ${r"#"}{request.logTitle,jdbcType=VARCHAR},
LOG_NOTE = ${r"#"}{request.logNote,jdbcType=VARCHAR},
LOG_ERR_RESULT = ${r"#"}{request.logErrResult,jdbcType=VARCHAR},
ATTRIBUTE1 = ${r"#"}{request.attribute1,jdbcType=VARCHAR},
ATTRIBUTE2 = ${r"#"}{request.attribute2,jdbcType=VARCHAR},
ATTRIBUTE3 = ${r"#"}{request.attribute3,jdbcType=VARCHAR},
LOG_ATTR1 = ${r"#"}{request.logAttr1,jdbcType=VARCHAR},
LOG_ATTR2 = ${r"#"}{request.logAttr2,jdbcType=VARCHAR},
LOG_ATTR3 = ${r"#"}{request.logAttr3,jdbcType=VARCHAR},
"ROW_VERSION" = "ROW_VERSION" + 1,
"LAST_UPDATE_BY" = ${r"#"}{token.userId},
"LAST_UPDATE_TIME" = datetime('now','localtime')
WHERE
"IS_DELETED" = 0
WHERE "IS_DELETED" = 0
AND "ID" = ${r"#"}{request.id}
AND "ROW_VERSION" = ${r"#"}{request.rowVersion}
</update>
@ -151,8 +138,7 @@
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE
IS_DELETED = 0
WHERE IS_DELETED = 0
AND ID = ${r"#"}{request.id}
</select>
</mapper>

@ -1,63 +1,62 @@
package ${basePackage}.module.system.req;
import org.hibernate.validator.constraints.Length;
import ${basePackage}.frame.base.BaseRequest;
import ${basePackage}.frame.validation.Dict;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
import ${basePackage}.frame.validation.Dict;
/**
* LogErrCreateRequest -
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
* @since 2020-06-07
*/
public class LogErrCreateRequest extends BaseRequest {
/**
*
* .
*/
@Dict(name = "LOG_ERR_TYPE")
private String logErrType;
/**
*
* .
*/
@NotBlank(message = "[title]错误标题不能为空")
@Length(min = 0, max = 50, message = "[title]错误标题长度不合法(0-50)")
private String title;
@NotBlank(message = "[logTitle]日志标题不能为空")
@Length(min = 0, max = 50, message = "[logTitle]日志标题长度不合法(0-50)")
private String logTitle;
/**
*
* .
*/
private String content;
private String logNote;
/**
*
* .
*/
@NotNull(message = "[logErrResult]处理结果不能为NULL")
@Dict(name = "LOG_ERR_RESULT")
private String logErrResult;
/**
* 1
* 1.
*/
@Length(min = 0, max = 50, message = "[attribute1]属性1长度不合法(0-50)")
private String attribute1;
@Length(min = 0, max = 50, message = "[logAttr1]属性1长度不合法(0-50)")
private String logAttr1;
/**
* 2
* 2.
*/
@Length(min = 0, max = 50, message = "[attribute2]属性2长度不合法(0-50)")
private String attribute2;
@Length(min = 0, max = 50, message = "[logAttr2]属性2长度不合法(0-50)")
private String logAttr2;
/**
* 3
* 3.
*/
@Length(min = 0, max = 50, message = "[attribute3]属性3长度不合法(0-50)")
private String attribute3;
@Length(min = 0, max = 50, message = "[logAttr3]属性3长度不合法(0-50)")
private String logAttr3;
public String getLogErrType() {
return this.logErrType;
@ -67,20 +66,20 @@ public class LogErrCreateRequest extends BaseRequest {
this.logErrType = logErrType;
}
public String getTitle() {
return this.title;
public String getLogTitle() {
return this.logTitle;
}
public void setTitle(String title) {
this.title = title;
public void setLogTitle(String logTitle) {
this.logTitle = logTitle;
}
public String getContent() {
return this.content;
public String getLogNote() {
return this.logNote;
}
public void setContent(String content) {
this.content = content;
public void setLogNote(String logNote) {
this.logNote = logNote;
}
public String getLogErrResult() {
@ -91,27 +90,27 @@ public class LogErrCreateRequest extends BaseRequest {
this.logErrResult = logErrResult;
}
public String getAttribute1() {
return this.attribute1;
public String getLogAttr1() {
return this.logAttr1;
}
public void setAttribute1(String attribute1) {
this.attribute1 = attribute1;
public void setLogAttr1(String logAttr1) {
this.logAttr1 = logAttr1;
}
public String getAttribute2() {
return this.attribute2;
public String getLogAttr2() {
return this.logAttr2;
}
public void setAttribute2(String attribute2) {
this.attribute2 = attribute2;
public void setLogAttr2(String logAttr2) {
this.logAttr2 = logAttr2;
}
public String getAttribute3() {
return this.attribute3;
public String getLogAttr3() {
return this.logAttr3;
}
public void setAttribute3(String attribute3) {
this.attribute3 = attribute3;
public void setLogAttr3(String logAttr3) {
this.logAttr3 = logAttr3;
}
}

@ -4,46 +4,31 @@ import ${basePackage}.frame.base.BaseFindRequest;
import ${basePackage}.frame.validation.Dict;
/**
* LogErrRequest -
* LogErrRequest -
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
* @since 2020-06-07
*/
public class LogErrFindRequest extends BaseFindRequest {
/**
*
* .
*/
@Dict(name = "LOG_ERR_TYPE")
private String logErrType;
/**
*
* .
*/
private String title;
private String logTitle;
/**
*
* .
*/
@Dict(name = "LOG_ERR_RESULT")
private String logErrResult;
/**
* 1
*/
private String attribute1;
/**
* 2
*/
private String attribute2;
/**
* 3
*/
private String attribute3;
public String getLogErrType() {
return this.logErrType;
}
@ -52,12 +37,12 @@ public class LogErrFindRequest extends BaseFindRequest {
this.logErrType = logErrType;
}
public String getTitle() {
return this.title;
public String getLogTitle() {
return this.logTitle;
}
public void setTitle(String title) {
this.title = title;
public void setLogTitle(String logTitle) {
this.logTitle = logTitle;
}
public String getLogErrResult() {
@ -67,28 +52,4 @@ public class LogErrFindRequest extends BaseFindRequest {
public void setLogErrResult(String logErrResult) {
this.logErrResult = logErrResult;
}
public String getAttribute1() {
return this.attribute1;
}
public void setAttribute1(String attribute1) {
this.attribute1 = attribute1;
}
public String getAttribute2() {
return this.attribute2;
}
public void setAttribute2(String attribute2) {
this.attribute2 = attribute2;
}
public String getAttribute3() {
return this.attribute3;
}
public void setAttribute3(String attribute3) {
this.attribute3 = attribute3;
}
}

@ -1,69 +1,69 @@
package ${basePackage}.module.system.req;
import org.hibernate.validator.constraints.Length;
import ${basePackage}.frame.base.BaseUpdateRequest;
import ${basePackage}.frame.validation.Dict;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;
import ${basePackage}.frame.validation.Dict;
/**
* LogErrUpdateRequest -
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
* @since 2020-06-07
*/
public class LogErrUpdateRequest extends BaseUpdateRequest {
/**
*
* .
*/
@NotNull(message = "[id]主键不能为NULL")
private Long id;
/**
*
* .
*/
@Dict(name = "LOG_ERR_TYPE")
private String logErrType;
/**
*
* .
*/
@NotBlank(message = "[title]错误标题不能为空")
@Length(min = 0, max = 50, message = "[title]错误标题长度不合法(0-50)")
private String title;
@NotBlank(message = "[logTitle]日志标题不能为空")
@Length(min = 0, max = 50, message = "[logTitle]日志标题长度不合法(0-50)")
private String logTitle;
/**
*
* .
*/
private String content;
private String logNote;
/**
*
* .
*/
@NotNull(message = "[logErrResult]处理结果不能为NULL")
@Dict(name = "LOG_ERR_RESULT")
private String logErrResult;
/**
* 1
* 1.
*/
@Length(min = 0, max = 50, message = "[attribute1]属性1长度不合法(0-50)")
private String attribute1;
@Length(min = 0, max = 50, message = "[logAttr1]属性1长度不合法(0-50)")
private String logAttr1;
/**
* 2
* 2.
*/
@Length(min = 0, max = 50, message = "[attribute2]属性2长度不合法(0-50)")
private String attribute2;
@Length(min = 0, max = 50, message = "[logAttr2]属性2长度不合法(0-50)")
private String logAttr2;
/**
* 3
* 3.
*/
@Length(min = 0, max = 50, message = "[attribute3]属性3长度不合法(0-50)")
private String attribute3;
@Length(min = 0, max = 50, message = "[logAttr3]属性3长度不合法(0-50)")
private String logAttr3;
public Long getId() {
return this.id;
@ -81,20 +81,20 @@ public class LogErrUpdateRequest extends BaseUpdateRequest {
this.logErrType = logErrType;
}
public String getTitle() {
return this.title;
public String getLogTitle() {
return this.logTitle;
}
public void setTitle(String title) {
this.title = title;
public void setLogTitle(String logTitle) {
this.logTitle = logTitle;
}
public String getContent() {
return this.content;
public String getLogNote() {
return this.logNote;
}
public void setContent(String content) {
this.content = content;
public void setLogNote(String logNote) {
this.logNote = logNote;
}
public String getLogErrResult() {
@ -105,27 +105,27 @@ public class LogErrUpdateRequest extends BaseUpdateRequest {
this.logErrResult = logErrResult;
}
public String getAttribute1() {
return this.attribute1;
public String getLogAttr1() {
return this.logAttr1;
}
public void setAttribute1(String attribute1) {
this.attribute1 = attribute1;
public void setLogAttr1(String logAttr1) {
this.logAttr1 = logAttr1;
}
public String getAttribute2() {
return this.attribute2;
public String getLogAttr2() {
return this.logAttr2;
}
public void setAttribute2(String attribute2) {
this.attribute2 = attribute2;
public void setLogAttr2(String logAttr2) {
this.logAttr2 = logAttr2;
}
public String getAttribute3() {
return this.attribute3;
public String getLogAttr3() {
return this.logAttr3;
}
public void setAttribute3(String attribute3) {
this.attribute3 = attribute3;
public void setLogAttr3(String logAttr3) {
this.logAttr3 = logAttr3;
}
}

@ -233,23 +233,23 @@ PRIMARY KEY (`ID`)
-- Table structure for LOG_ERR - 错误日志
-- Target : MySQL
-- Author : wangbing
-- Date: : 2020-05-15
-- Date: : 2020-06-07
-- ----------------------------
CREATE TABLE `SYS_LOG_ERR` (
`ID` BIGINT(20) NOT NULL COMMENT '主键',
`LOG_ERR_TYPE` VARCHAR(20) COMMENT '错误类型',
`TITLE` VARCHAR(50) NOT NULL COMMENT '错误标题',
`CONTENT` TEXT COMMENT '错误内容',
`LOG_ERR_RESULT` VARCHAR(20) NOT NULL COMMENT '处理结果',
`ATTRIBUTE1` VARCHAR(50) COMMENT '属性1',
`ATTRIBUTE2` VARCHAR(50) COMMENT '属性2',
`ATTRIBUTE3` VARCHAR(50) COMMENT '属性3',
`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 '最后更新时间',
`ID` BIGINT(20) NOT NULL COMMENT '主键',
`LOG_ERR_TYPE` VARCHAR(20) COMMENT '错误类型',
`LOG_TITLE` VARCHAR(50) NOT NULL COMMENT '日志标题',
`LOG_NOTE` TEXT COMMENT '日志内容',
`LOG_ERR_RESULT` VARCHAR(20) NOT NULL COMMENT '处理结果',
`LOG_ATTR1` VARCHAR(50) COMMENT '属性1',
`LOG_ATTR2` VARCHAR(50) COMMENT '属性2',
`LOG_ATTR3` VARCHAR(50) COMMENT '属性3',
`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='错误日志';

@ -2,17 +2,17 @@
-- Table structure for LOG_ERR - 错误日志
-- Target : MySQL
-- Author : wangbing
-- Date: : 2020-01-29
-- Date: : 2020-06-07
-- ----------------------------
CREATE TABLE `SYS_LOG_ERR` (
`ID` BIGINT(20) NOT NULL COMMENT '主键',
`LOG_ERR_TYPE` VARCHAR(20) COMMENT '错误类型',
`TITLE` VARCHAR(50) NOT NULL COMMENT '错误标题',
`CONTENT` TEXT COMMENT '错误内容',
`LOG_TITLE` VARCHAR(50) NOT NULL COMMENT '日志标题',
`LOG_NOTE` TEXT COMMENT '日志内容',
`LOG_ERR_RESULT` VARCHAR(20) NOT NULL COMMENT '处理结果',
`ATTRIBUTE1` VARCHAR(50) COMMENT '属性1',
`ATTRIBUTE2` VARCHAR(50) COMMENT '属性2',
`ATTRIBUTE3` VARCHAR(50) COMMENT '属性3',
`LOG_ATTR1` VARCHAR(50) COMMENT '属性1',
`LOG_ATTR2` VARCHAR(50) COMMENT '属性2',
`LOG_ATTR3` VARCHAR(50) COMMENT '属性3',
`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 '创建用户',

@ -212,17 +212,17 @@ CREATE TABLE IF NOT EXISTS SYS_ROLE_RES (
-- Table structure for LOG_ERR - 错误日志
-- Target : SQLite
-- Author : wangbing
-- Date: : 2020-03-09
-- Date: : 2020-06-07
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_LOG_ERR (
"ID" BIGINT PRIMARY KEY NOT NULL,
"LOG_ERR_TYPE" VARCHAR(20),
"TITLE" VARCHAR(50) NOT NULL,
"CONTENT" TEXT,
"LOG_TITLE" VARCHAR(50) NOT NULL,
"LOG_NOTE" TEXT,
"LOG_ERR_RESULT" VARCHAR(20) NOT NULL,
"ATTRIBUTE1" VARCHAR(50),
"ATTRIBUTE2" VARCHAR(50),
"ATTRIBUTE3" VARCHAR(50),
"LOG_ATTR1" VARCHAR(50),
"LOG_ATTR2" VARCHAR(50),
"LOG_ATTR3" VARCHAR(50),
"ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL,

@ -2,17 +2,17 @@
-- Table structure for LOG_ERR - 错误日志
-- Target : SQLite
-- Author : wangbing
-- Date: : 2020-03-09
-- Date: : 2020-06-07
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_LOG_ERR (
"ID" BIGINT PRIMARY KEY NOT NULL,
"LOG_ERR_TYPE" VARCHAR(20),
"TITLE" VARCHAR(50) NOT NULL,
"CONTENT" TEXT,
"LOG_TITLE" VARCHAR(50) NOT NULL,
"LOG_NOTE" TEXT,
"LOG_ERR_RESULT" VARCHAR(20) NOT NULL,
"ATTRIBUTE1" VARCHAR(50),
"ATTRIBUTE2" VARCHAR(50),
"ATTRIBUTE3" VARCHAR(50),
"LOG_ATTR1" VARCHAR(50),
"LOG_ATTR2" VARCHAR(50),
"LOG_ATTR3" VARCHAR(50),
"ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL,

@ -50,5 +50,6 @@ CREATE TABLE IF NOT EXISTS ${module.modulePrefix?default("")}${table.tableName}
${dBmapper.getFieldSql(field)}<#if field_has_next>,</#if>
</#list>
);
</#list>
</#if>

@ -1,576 +1,256 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<projectName>wadmin</projectName>
<projectBasePackage>xyz.wbsite</projectBasePackage>
<projectAuthor>wangbing</projectAuthor>
<needMoreDB>false</needMoreDB>
<needEMail>false</needEMail>
<needSys>false</needSys>
<needCloud>false</needCloud>
<needAsync>false</needAsync>
<database>MySQL</database>
<modules>
<module>
<moduleComment>系统</moduleComment>
<modulePrefix>SYS_</modulePrefix>
<moduleName>system</moduleName>
<hasSysFields/>
<tables>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true"
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="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典描述" fieldLength="50"
fieldName="DICT_COMMENT" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典版本" fieldLength="50"
fieldName="VERSION" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="false" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0"
fieldName="VALID" fieldType="Boolean" isMust="false" 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" html="true" search="false" sys="true"
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="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典键" fieldLength="20" fieldName="KEY"
fieldType="String_var" isMust="false" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典值" fieldLength="50"
fieldName="VALUE" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="排序" fieldLength="0" fieldName="SORT"
fieldType="Integer" isMust="false" isPrimaryKey="false" isQuery="false"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0"
fieldName="VALID" fieldType="Boolean" isMust="false" 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" html="true" search="false" sys="true"
tableComment="资源" tableName="RES" 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="RES_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源名称" fieldLength="50"
fieldName="RES_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源类型" fieldLength="20"
fieldName="RES_TYPE" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源内容" fieldLength="255"
fieldName="RES_VALUE" fieldType="String_var255" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="上级代码" fieldLength="50"
fieldName="SUP_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="上级名称" fieldLength="50"
fieldName="SUP_NAME" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否免费" fieldLength="0" fieldName="FREE"
fieldType="Boolean" isMust="false" 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="19"
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="19"
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" html="true" search="false" sys="true"
tableComment="用户" tableName="USER" 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="100"
fieldName="USER_NAME" fieldType="String_var100" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户代码" fieldLength="50"
fieldName="USER_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户别名" fieldLength="50"
fieldName="USER_ALIAS" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户密码" fieldLength="50"
fieldName="USER_PWD" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户状态" fieldLength="20"
fieldName="USER_STATUS" fieldType="Dict" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门主键" fieldLength="0"
fieldName="DEPT_ID" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门代码" fieldLength="50"
fieldName="DEPT_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门名称" fieldLength="100"
fieldName="DEPT_NAME" fieldType="String_var100" isMust="false" 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="19"
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" html="true" search="false" sys="true"
tableComment="部门" tableName="DEPT" 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="DEPT_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门名称" fieldLength="100"
fieldName="DEPT_NAME" fieldType="String_var100" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门别名" fieldLength="50"
fieldName="DEPT_ALIAS" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="上级代码" fieldLength="50"
fieldName="SUP_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="上级名称" fieldLength="100"
fieldName="SUP_NAME" fieldType="String_var100" isMust="false" 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" html="true" search="false" sys="true"
tableComment="角色" tableName="ROLE" 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="CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色名称" fieldLength="50"
fieldName="NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色描述" fieldLength="50"
fieldName="COMMENT" fieldType="String_var50" isMust="false" 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" html="true" search="false" sys="true"
tableComment="通行证" tableName="TOKENS" 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="TOKEN" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户主键" fieldLength="0"
fieldName="USER_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户名称" fieldLength="50"
fieldName="USER_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="登录时间" fieldLength="0"
fieldName="LOGIN_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="有效时间" fieldLength="0"
fieldName="VALID_TIME" fieldType="Date" 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="false" defaultValue="NULL" fieldComment="部门主键" fieldLength="0"
fieldName="DEPT_ID" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门代码" fieldLength="50"
fieldName="DEPT_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门名称" fieldLength="100"
fieldName="DEPT_NAME" fieldType="String_var100" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="终端类型" fieldLength="20"
fieldName="TERMINAL_TYPE" fieldType="Dict" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="终端地址" fieldLength="50"
fieldName="TERMINAL_IP" fieldType="String_var50" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="终端信息" fieldLength="500"
fieldName="TERMINAL_INFO" fieldType="String_var500" isMust="false" 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" html="true" search="false" sys="true"
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="20"
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>
<table create="true" delete="true" find="true" get="true" html="false" search="false" sys="true"
tableComment="用户角色授权" tableName="USER_ROLE" 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="USER_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户代码" fieldLength="50"
fieldName="USER_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色主键" fieldLength="0"
fieldName="ROLE_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色代码" fieldLength="50"
fieldName="ROLE_CODE" fieldType="String_var50" 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" html="false" search="false" sys="true"
tableComment="角色资源关系" tableName="ROLE_RES" 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="ROLE_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色代码" fieldLength="50"
fieldName="ROLE_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源主键" fieldLength="0"
fieldName="RES_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源代码" fieldLength="50"
fieldName="RES_CODE" fieldType="String_var50" 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" html="true" search="false" sys="true"
tableComment="错误日志" tableName="LOG_ERR" 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="20"
fieldName="LOG_ERR_TYPE" fieldType="Dict" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="错误标题" fieldLength="50"
fieldName="TITLE" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="错误内容" fieldLength="0"
fieldName="CONTENT" fieldType="String_super" isMust="false" isPrimaryKey="false"
isQuery="false" isSearch="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="处理结果" fieldLength="20"
fieldName="LOG_ERR_RESULT" fieldType="Dict" isMust="true" 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="属性3" fieldLength="50"
fieldName="ATTRIBUTE3" fieldType="String_var50" isMust="false" 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" html="true" search="false" sys="true"
tableComment="SQL任务" tableName="TASK_SQL" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID"
fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false"
isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="任务名称" fieldLength="50"
fieldName="TASK_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="详细注释" fieldLength="255"
fieldName="TASK_NOTE" fieldType="String_var255" isMust="false" isPrimaryKey="false"
isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="任务类型" fieldLength="20"
fieldName="TASK_TYPE" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false" isUnique="false">
<dictItem key="Cron" value="Cron表达式"/>
<dictItem key="DelayRepeat" value="间隔重复(秒)"/>
<dictItem key="FixRepeat" value="绝对重复(秒)"/>
</field>
<field IsSystem="false" defaultValue="NULL" fieldComment="任务类型值" fieldLength="50"
fieldName="TYPE_VALUE" fieldType="String_var50" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="任务SQL" fieldLength="2500"
fieldName="TASK_SQL" fieldType="String_var2500" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0"
fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0"
fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0"
fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY"
fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"
isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0"
fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0"
fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0"
fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true"
tableComment="系统配置" tableName="PROFILES" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID"
fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false"
isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="环境" fieldLength="20"
fieldName="ACTIVE" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false" isUnique="false">
<dictItem key="dev" value="开发环境"/>
<dictItem key="prod" value="生产环境"/>
</field>
<field IsSystem="false" defaultValue="NULL" fieldComment="键" fieldLength="50" fieldName="KEY"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true"
isSearch="false" isUnique="true"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="值" fieldLength="50" fieldName="VALUE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false"
isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0"
fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0"
fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY"
fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"
isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0"
fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0"
fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0"
fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false"
isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
</tables>
</module>
</modules>
<projectName>wadmin</projectName>
<projectBasePackage>xyz.wbsite</projectBasePackage>
<projectAuthor>wangbing</projectAuthor>
<needMoreDB>false</needMoreDB>
<needEMail>false</needEMail>
<needSys>true</needSys>
<needCloud>false</needCloud>
<needAsync>false</needAsync>
<database>SQLite</database>
<modules>
<module>
<moduleComment>系统</moduleComment>
<modulePrefix>SYS_</modulePrefix>
<moduleName>system</moduleName>
<hasSysFields/>
<tables>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" 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" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典描述" fieldLength="50" fieldName="DICT_COMMENT" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典版本" fieldLength="50" fieldName="VERSION" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" 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" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典键" fieldLength="20" fieldName="KEY" fieldType="String_var" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="字典值" fieldLength="50" fieldName="VALUE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="排序" fieldLength="0" fieldName="SORT" fieldType="Integer" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="资源" tableName="RES" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源名称" fieldLength="50" fieldName="RES_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源类型" fieldLength="20" fieldName="RES_TYPE" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源内容" fieldLength="255" fieldName="RES_VALUE" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="上级代码" fieldLength="50" fieldName="SUP_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="上级名称" fieldLength="50" fieldName="SUP_NAME" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否免费" fieldLength="0" fieldName="FREE" fieldType="Boolean" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="19" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="用户" tableName="USER" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户账户" fieldLength="100" fieldName="USER_NAME" fieldType="String_var100" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户代码" fieldLength="50" fieldName="USER_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户别名" fieldLength="50" fieldName="USER_ALIAS" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户密码" fieldLength="50" fieldName="USER_PWD" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户状态" fieldLength="20" fieldName="USER_STATUS" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门主键" fieldLength="0" fieldName="DEPT_ID" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME" fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="部门" tableName="DEPT" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME" fieldType="String_var100" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门别名" fieldLength="50" fieldName="DEPT_ALIAS" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="上级代码" fieldLength="50" fieldName="SUP_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="上级名称" fieldLength="100" fieldName="SUP_NAME" fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="角色" tableName="ROLE" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色名称" fieldLength="50" fieldName="NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色描述" fieldLength="50" fieldName="COMMENT" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="通行证" tableName="TOKENS" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="登录令牌" fieldLength="50" fieldName="TOKEN" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户主键" fieldLength="0" fieldName="USER_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户名称" fieldLength="50" fieldName="USER_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="登录时间" fieldLength="0" fieldName="LOGIN_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="有效时间" fieldLength="0" fieldName="VALID_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门主键" fieldLength="0" fieldName="DEPT_ID" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME" fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="终端类型" fieldLength="20" fieldName="TERMINAL_TYPE" fieldType="Dict" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="终端地址" fieldLength="50" fieldName="TERMINAL_IP" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="终端信息" fieldLength="500" fieldName="TERMINAL_INFO" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" 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" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="文件名称" fieldLength="255" fieldName="NAME" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="文件类型" fieldLength="20" fieldName="FILE_TYPE" fieldType="Dict" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="扩展属性1" fieldLength="50" fieldName="ATTRIBUTE1" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="扩展属性2" fieldLength="50" fieldName="ATTRIBUTE2" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="存放地址" fieldLength="500" fieldName="LOCATION" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="访问地址" fieldLength="500" fieldName="URL" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="下载地址" fieldLength="500" fieldName="URL_DOWNLOAD" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="false" search="false" sys="true" tableComment="用户角色授权" tableName="USER_ROLE" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户主键" fieldLength="0" fieldName="USER_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="用户代码" fieldLength="50" fieldName="USER_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色主键" fieldLength="0" fieldName="ROLE_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="ROLE_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="false" search="false" sys="true" tableComment="角色资源关系" tableName="ROLE_RES" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色主键" fieldLength="0" fieldName="ROLE_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="ROLE_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源主键" fieldLength="0" fieldName="RES_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="错误日志" tableName="LOG_ERR" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="错误类型" fieldLength="20" fieldName="LOG_ERR_TYPE" fieldType="Dict" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false">
<dictItem key="SYS_ERR" value="系统错误"/>
<dictItem key="BIZ_ERR" value="业务错误"/>
</field>
<field IsSystem="false" defaultValue="NULL" fieldComment="日志标题" fieldLength="50" fieldName="LOG_TITLE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="日志内容" fieldLength="0" fieldName="LOG_NOTE" fieldType="String_super" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="处理结果" fieldLength="20" fieldName="LOG_ERR_RESULT" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false">
<dictItem key="0" value="待处理"/>
<dictItem key="1" value="已处理"/>
<dictItem key="3" value="搁置"/>
</field>
<field IsSystem="false" defaultValue="NULL" fieldComment="属性1" fieldLength="50" fieldName="LOG_ATTR1" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="属性2" fieldLength="50" fieldName="LOG_ATTR2" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="属性3" fieldLength="50" fieldName="LOG_ATTR3" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="19" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="SQL任务" tableName="TASK_SQL" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="任务名称" fieldLength="50" fieldName="TASK_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="详细注释" fieldLength="255" fieldName="TASK_NOTE" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="任务类型" fieldLength="20" fieldName="TASK_TYPE" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false">
<dictItem key="Cron" value="Cron表达式"/>
<dictItem key="DelayRepeat" value="间隔重复(秒)"/>
<dictItem key="FixRepeat" value="绝对重复(秒)"/>
</field>
<field IsSystem="false" defaultValue="NULL" fieldComment="任务类型值" fieldLength="50" fieldName="TYPE_VALUE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="任务SQL" fieldLength="2500" fieldName="TASK_SQL" fieldType="String_var2500" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="系统配置" tableName="PROFILES" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="环境" fieldLength="20" fieldName="ACTIVE" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false">
<dictItem key="dev" value="开发环境"/>
<dictItem key="prod" value="生产环境"/>
</field>
<field IsSystem="false" defaultValue="NULL" fieldComment="键" fieldLength="50" fieldName="KEY" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="true"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="值" fieldLength="50" fieldName="VALUE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
</tables>
</module>
</modules>
</project>

@ -219,7 +219,7 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
<el-form class="form" :model="form" :inline="true" :rules="formRules" ref="form" label-position="right" label-width="90px">
@ -323,8 +323,8 @@
sortType:'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
<#list fields as item>
<#if !item.isSystem>
@ -350,8 +350,8 @@
},
methods: {
onCreate: function () {
this.form.title = "${table.tableComment?default("")}新增";
this.form.dialog = true;
this.form.formTitle = "${table.tableComment?default("")}新增";
this.form.formShow = true;
this.form.id = "";
<#list fields as item>
<#if !item.isSystem>
@ -360,8 +360,8 @@
</#list>
},
onEdit: function (item) {
this.form.title = "${table.tableComment?default("")}编辑";
this.form.dialog = true;
this.form.formTitle = "${table.tableComment?default("")}编辑";
this.form.formShow = true;
this.form.id = item.id;
<#list fields as item>
<#if !item.isSystem>

@ -191,9 +191,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class=form" :model="form" :inline="true" :rules="formRules" ref="form"
label-position="right" label-width="90px">
<el-form-item label="部门代码" prop="deptCode">
@ -213,7 +213,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -249,8 +249,8 @@
sortType: 'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
deptCode: "",
deptName: "",
@ -281,8 +281,8 @@
},
methods: {
onCreate: function () {
this.form.title = "部门新增";
this.form.dialog = true;
this.form.formTitle = "部门新增";
this.form.formShow = true;
this.form.id = "";
this.form.deptCode = "";
this.form.deptName = "";
@ -290,8 +290,8 @@
this.form.valid = true;
},
onEdit: function (item) {
this.form.title = "部门编辑";
this.form.dialog = true;
this.form.formTitle = "部门编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.deptCode = item.deptCode;
this.form.deptName = item.deptName;
@ -318,8 +318,8 @@
});
},
onTreeCreate: function (pItem) {
this.form.title = "部门新增";
this.form.dialog = true;
this.form.formTitle = "部门新增";
this.form.formShow = true;
this.form.id = "";
this.form.deptCode = pItem.value;
this.form.deptName = "";
@ -327,8 +327,8 @@
this.form.valid = true;
},
onTreeEdit: function (item) {
this.form.title = "部门编辑";
this.form.dialog = true;
this.form.formTitle = "部门编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.deptCode = item.deptCode;
this.form.deptName = item.deptName;
@ -363,7 +363,7 @@
this.onFind();
this.onLoadTree();
this.$refs['form'].resetFields();
this.form.dialog = false;
this.form.formShow = false;
}
}.bind(this))
} else {
@ -374,7 +374,7 @@
this.onFind();
this.onLoadTree();
this.$refs['form'].resetFields();
this.form.dialog = false;
this.form.formShow = false;
}
}.bind(this))
}

@ -126,9 +126,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class=form" :model="form" :inline="true" :rules="formRules" ref="form"
label-position="right" label-width="90px">
<el-form-item label="字典名称" prop="dictName">
@ -155,7 +155,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -210,8 +210,8 @@
},
methods: {
onCreate: function () {
this.form.title = '新增字典';
this.form.dialog = true;
this.form.formTitle = '新增字典';
this.form.formShow = true;
this.form.id = '';
this.form.dictName = '';
this.form.dictComment = '';
@ -219,8 +219,8 @@
this.form.valid = true;
},
onEdit: function (item) {
this.form.title = '字典编辑';
this.form.dialog = true;
this.form.formTitle = '字典编辑';
this.form.formShow = true;
this.form.id = item.id;
this.form.dictName = item.dictName;
this.form.dictComment = item.dictComment;

@ -128,9 +128,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class=form" :model="form" :inline="true" :rules="formRules" ref="form"
label-position="right" label-width="90px">
<el-form-item label="字典键" prop="key">
@ -151,7 +151,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取消</el-button>
<el-button size="mini" @click="form.formShow = false">取消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -204,8 +204,8 @@
},
methods: {
onCreate: function () {
this.form.title = '新增字典项';
this.form.dialog = true;
this.form.formTitle = '新增字典项';
this.form.formShow = true;
this.form.id = '';
this.form.dictName = location.getParam("dictName");
this.form.key = '';
@ -214,8 +214,8 @@
this.form.valid = true;
},
onEdit: function (item) {
this.form.title = '字典项编辑';
this.form.dialog = true;
this.form.formTitle = '字典项编辑';
this.form.formShow = true;
this.form.id = item.id;
this.form.dictName = item.dictName;
this.form.key = item.key;

@ -118,9 +118,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class=form" :model="form" :inline="true" :rules="formRules" ref="form"
label-position="right" label-width="90px">
<el-form-item label="文件名称" prop="name">
@ -147,7 +147,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -171,8 +171,8 @@
sortType: 'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
name: "",
fileType: "",
@ -208,8 +208,8 @@
},
methods: {
onCreate: function () {
this.form.title = "文件新增";
this.form.dialog = true;
this.form.formTitle = "文件新增";
this.form.formShow = true;
this.form.id = "";
this.form.name = "";
this.form.fileType = "";
@ -220,8 +220,8 @@
this.form.urlDownload = "";
},
onEdit: function (item) {
this.form.title = "文件编辑";
this.form.dialog = true;
this.form.formTitle = "文件编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.name = item.name;
this.form.fileType = item.fileType;

@ -5,22 +5,13 @@
<el-input-dict v-model="vm.logErrType" clearable size="mini" placeholder="请输入错误类型"
dict-name="LOG_ERR_TYPE"></el-input-dict>
</el-form-item>
<el-form-item label="错误标题" prop="title">
<el-input v-model="vm.title" clearable size="mini" placeholder="请输入错误标题"></el-input>
<el-form-item label="错误标题" prop="logTitle">
<el-input v-model="vm.logTitle" clearable size="mini" placeholder="请输入错误标题"></el-input>
</el-form-item>
<el-form-item label="处理结果" prop="logErrResult">
<el-input-dict v-model="vm.logErrResult" clearable size="mini" placeholder="请输入处理结果"
dict-name="LOG_ERR_RESULT"></el-input-dict>
</el-form-item>
<el-form-item label="属性1" prop="attribute1">
<el-input v-model="vm.attribute1" clearable size="mini" placeholder="请输入属性1"></el-input>
</el-form-item>
<el-form-item label="属性2" prop="attribute2">
<el-input v-model="vm.attribute2" clearable size="mini" placeholder="请输入属性2"></el-input>
</el-form-item>
<el-form-item label="属性3" prop="attribute3">
<el-input v-model="vm.attribute3" clearable size="mini" placeholder="请输入属性3"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" size="mini" icon="el-icon-search" @click="onSearch">搜索</el-button>
<el-button type="warning" size="mini" icon="el-icon-refresh-left" @click="onReset('vm')">重置</el-button>
@ -77,12 +68,12 @@
</el-table-column>
<el-table-column
align="center"
prop="title"
prop="logTitle"
label="错误标题">
</el-table-column>
<el-table-column
align="center"
prop="content"
prop="logNote"
label="错误内容">
</el-table-column>
<el-table-column
@ -90,21 +81,6 @@
prop="logErrResult"
label="处理结果">
</el-table-column>
<el-table-column
align="center"
prop="attribute1"
label="属性1">
</el-table-column>
<el-table-column
align="center"
prop="attribute2"
label="属性2">
</el-table-column>
<el-table-column
align="center"
prop="attribute3"
label="属性3">
</el-table-column>
<el-table-column
align="center"
prop="createTime"
@ -139,37 +115,37 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class="form" :model="form" :inline="true" :rules="formRules" ref="form" label-position="right"
label-width="90px">
<el-form-item label="错误类型" prop="logErrType">
<el-input-dict v-model="form.logErrType" clearable size="mini" placeholder="请输入错误类型"
dict-name="LOG_ERR_TYPE"></el-input-dict>
</el-form-item>
<el-form-item label="错误标题" prop="title">
<el-input v-model="form.title" clearable size="mini" placeholder="请输入错误标题"></el-input>
<el-form-item label="错误标题" prop="logTitle">
<el-input v-model="form.logTitle" clearable size="mini" placeholder="请输入错误标题"></el-input>
</el-form-item>
<el-form-item label="错误内容" prop="content">
<el-input v-model="form.content" clearable size="mini" placeholder="请输入错误内容"></el-input>
<el-form-item label="错误内容" prop="logNote">
<el-input v-model="form.logNote" clearable size="mini" placeholder="请输入错误内容"></el-input>
</el-form-item>
<el-form-item label="处理结果" prop="logErrResult">
<el-input-dict v-model="form.logErrResult" clearable size="mini" placeholder="请输入处理结果"
dict-name="LOG_ERR_RESULT"></el-input-dict>
</el-form-item>
<el-form-item label="属性1" prop="attribute1">
<el-input v-model="form.attribute1" clearable size="mini" placeholder="请输入属性1"></el-input>
<el-form-item label="属性1" prop="logAttr1">
<el-input v-model="form.logAttr1" clearable size="mini" placeholder="请输入属性1"></el-input>
</el-form-item>
<el-form-item label="属性2" prop="attribute2">
<el-input v-model="form.attribute2" clearable size="mini" placeholder="请输入属性2"></el-input>
<el-form-item label="属性2" prop="logAttr2">
<el-input v-model="form.logAttr2" clearable size="mini" placeholder="请输入属性2"></el-input>
</el-form-item>
<el-form-item label="属性3" prop="attribute3">
<el-input v-model="form.attribute3" clearable size="mini" placeholder="请输入属性3"></el-input>
<el-form-item label="属性3" prop="logAttr3">
<el-input v-model="form.logAttr3" clearable size="mini" placeholder="请输入属性3"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -183,11 +159,11 @@
target: 'logErr',
vm: {//条件及分页参数
logErrType: "",
title: "",
logErrResult: "未处理",
attribute1: "",
attribute2: "",
attribute3: "",
logTitle: "",
logErrResult: "0",
logAttr1: "",
logAttr2: "",
logAttr3: "",
pageNumber: 1,
pageSize: 10,
totalCount: 0,
@ -195,63 +171,63 @@
sortType: 'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
logErrType: "",
title: "",
content: "",
logTitle: "",
logNote: "",
logErrResult: "",
attribute1: "",
attribute2: "",
attribute3: "",
logAttr1: "",
logAttr2: "",
logAttr3: "",
rowVersion: ""
},
formRules: {
logErrType: [],
title: [
logTitle: [
{required: true, message: '错误标题不能为空', trigger: 'blur'},
{min: 1, max: 50, message: '错误标题长度在 1 到 50 个字符', trigger: 'blur'}
],
content: [],
logNote: [],
logErrResult: [
{required: true, message: '处理结果不能为空', trigger: 'blur'},
],
attribute1: [
logAttr1: [
{min: 1, max: 50, message: '属性1长度在 1 到 50 个字符', trigger: 'blur'}
],
attribute2: [
logAttr2: [
{min: 1, max: 50, message: '属性2长度在 1 到 50 个字符', trigger: 'blur'}
],
attribute3: [
logAttr3: [
{min: 1, max: 50, message: '属性3长度在 1 到 50 个字符', trigger: 'blur'}
],
}
},
methods: {
onCreate: function () {
this.form.title = "错误日志新增";
this.form.dialog = true;
this.form.formTitle = "错误日志新增";
this.form.formShow = true;
this.form.id = "";
this.form.logErrType = "";
this.form.title = "";
this.form.content = "";
this.form.logTitle = "";
this.form.logNote = "";
this.form.logErrResult = "";
this.form.attribute1 = "";
this.form.attribute2 = "";
this.form.attribute3 = "";
this.form.logAttr1 = "";
this.form.logAttr2 = "";
this.form.logAttr3 = "";
},
onEdit: function (item) {
this.form.title = "错误日志编辑";
this.form.dialog = true;
this.form.formTitle = "错误日志编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.logErrType = item.logErrType;
this.form.title = item.title;
this.form.content = item.content;
this.form.logTitle = item.logTitle;
this.form.logNote = item.logNote;
this.form.logErrResult = item.logErrResult;
this.form.attribute1 = item.attribute1;
this.form.attribute2 = item.attribute2;
this.form.attribute3 = item.attribute3;
this.form.logAttr1 = item.logAttr1;
this.form.logAttr2 = item.logAttr2;
this.form.logAttr3 = item.logAttr3;
this.form.rowVersion = item.rowVersion;
},
onDelete: function (item) {

@ -115,9 +115,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class="form" :model="form" :inline="true" :rules="formRules" ref="form" label-position="right" label-width="90px">
<el-form-item label="环境" prop="active">
<el-input-dict v-model="form.active" clearable size="mini" placeholder="请输入环境" dict-name="ACTIVE" ></el-input-dict>
@ -130,7 +130,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -152,8 +152,8 @@
sortType:'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
active: "",
key: "",
@ -176,16 +176,16 @@
},
methods: {
onCreate: function () {
this.form.title = "系统配置新增";
this.form.dialog = true;
this.form.formTitle = "系统配置新增";
this.form.formShow = true;
this.form.id = "";
this.form.active = "";
this.form.key = "";
this.form.value = "";
},
onEdit: function (item) {
this.form.title = "系统配置编辑";
this.form.dialog = true;
this.form.formTitle = "系统配置编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.active = item.active;
this.form.key = item.key;

@ -202,9 +202,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class=form" :model="form" :inline="true" :rules="formRules" ref="form"
label-position="right" label-width="90px">
<el-form-item label="资源代码" prop="resCode">
@ -235,7 +235,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -271,8 +271,8 @@
sortType: 'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
resCode: "",
resName: "",
@ -309,8 +309,8 @@
},
methods: {
onCreate: function () {
this.form.title = "资源新增";
this.form.dialog = true;
this.form.formTitle = "资源新增";
this.form.formShow = true;
this.form.id = "";
this.form.resCode = "";
this.form.resName = "";
@ -320,8 +320,8 @@
this.form.valid = true;
},
onEdit: function (item) {
this.form.title = "资源编辑";
this.form.dialog = true;
this.form.formTitle = "资源编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.resCode = item.resCode;
this.form.resName = item.resName;
@ -350,8 +350,8 @@
});
},
onTreeCreate: function (pItem) {
this.form.title = "资源新增";
this.form.dialog = true;
this.form.formTitle = "资源新增";
this.form.formShow = true;
this.form.id = "";
this.form.resCode = pItem.resCode;
this.form.resName = "";
@ -361,8 +361,8 @@
this.form.valid = true;
},
onTreeEdit: function (pItem) {
this.form.title = "资源编辑";
this.form.dialog = true;
this.form.formTitle = "资源编辑";
this.form.formShow = true;
this.form.id = pItem.id;
this.form.resCode = pItem.resCode;
this.form.resName = pItem.resName;
@ -399,7 +399,7 @@
this.onFind();
this.onLoadTree();
this.$refs['form'].resetFields();
this.form.dialog = false;
this.form.formShow = false;
}
}.bind(this))
} else {
@ -410,7 +410,7 @@
this.onFind();
this.onLoadTree();
this.$refs['form'].resetFields();
this.form.dialog = false;
this.form.formShow = false;
}
}.bind(this))
}

@ -114,9 +114,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class=form" :model="form" :inline="true" :rules="formRules" ref="form"
label-position="right" label-width="90px">
<el-form-item label="角色代码" prop="code">
@ -131,7 +131,7 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -174,8 +174,8 @@
sortType: 'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
code: "",
name: "",
@ -205,16 +205,16 @@
},
methods: {
onCreate: function () {
this.form.title = "角色新增";
this.form.dialog = true;
this.form.formTitle = "角色新增";
this.form.formShow = true;
this.form.id = "";
this.form.code = "";
this.form.name = "";
this.form.comment = "";
},
onEdit: function (item) {
this.form.title = "角色编辑";
this.form.dialog = true;
this.form.formTitle = "角色编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.code = item.code;
this.form.name = item.name;

@ -83,8 +83,8 @@
sortType: 'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
valid: "",
rowVersion: ""
@ -96,8 +96,8 @@
},
methods: {
onCreate: function () {
this.form.title = "资源新增";
this.form.dialog = true;
this.form.formTitle = "资源新增";
this.form.formShow = true;
this.form.id = "";
this.form.resCode = "";
this.form.resName = "";
@ -106,8 +106,8 @@
this.form.valid = true;
},
onEdit: function (item) {
this.form.title = "资源编辑";
this.form.dialog = true;
this.form.formTitle = "资源编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.resCode = item.resCode;
this.form.resName = item.resName;

@ -145,9 +145,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class="form" :model="form" :inline="true" :rules="formRules" ref="form" label-position="right" label-width="90px">
<el-form-item label="任务名称" prop="taskName">
<el-input v-model="form.taskName" clearable size="mini" placeholder="请输入任务名称"></el-input>
@ -177,7 +177,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -201,8 +201,8 @@
sortType:'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
taskName: "",
taskNote: "",
@ -238,8 +238,8 @@
},
methods: {
onCreate: function () {
this.form.title = "SQL任务新增";
this.form.dialog = true;
this.form.formTitle = "SQL任务新增";
this.form.formShow = true;
this.form.id = "";
this.form.taskName = "";
this.form.taskNote = "";
@ -249,8 +249,8 @@
this.form.valid = "";
},
onEdit: function (item) {
this.form.title = "SQL任务编辑";
this.form.dialog = true;
this.form.formTitle = "SQL任务编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.taskName = item.taskName;
this.form.taskNote = item.taskNote;

@ -193,8 +193,8 @@
sortType: 'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
userId: "",
userName: "",

@ -139,9 +139,9 @@
<el-dialog
:custom-class="'dialog'"
:title="form.title"
:title="form.formTitle"
:close-on-click-modal="false"
:visible.sync="form.dialog">
:visible.sync="form.formShow">
<el-form class=form" :model="form" :inline="true" :rules="formRules" ref="form"
label-position="right" label-width="90px">
<el-form-item label="用户账户" prop="userName">
@ -170,7 +170,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="mini" @click="form.dialog = false">取 消</el-button>
<el-button size="mini" @click="form.formShow = false">取 消</el-button>
<el-button size="mini" type="primary" @click="onSave">保存</el-button>
</span>
</el-dialog>
@ -195,8 +195,8 @@
sortType: 'DESC'
},
form: {//待提交表单
title: "",
dialog: false,
formTitle: "",
formShow: false,
id: '',
userName: "",
userCode: "",
@ -235,8 +235,8 @@
},
methods: {
onCreate: function () {
this.form.title = "用户新增";
this.form.dialog = true;
this.form.formTitle = "用户新增";
this.form.formShow = true;
this.form.id = "";
this.form.userName = "";
this.form.userCode = "";
@ -248,8 +248,8 @@
this.form.deptName = "";
},
onEdit: function (item) {
this.form.title = "用户编辑";
this.form.dialog = true;
this.form.formTitle = "用户编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.userName = item.userName;
this.form.userCode = item.userCode;

@ -70,15 +70,19 @@ public class DataInit {
{"PHONE", "手机端"},
});
}
{// 错误日志类型
createDict("LOG_ERR_TYPE", "日志错误类型", new String[][]{
{"SYS_ERR", "系统错误"},
{"BIZ_ERR", "业务错误"},
});
}
{// 错误日志结果
createDict("LOG_ERR_RESULT", "错误日志结果", new String[][]{
{"未处理", "未处理"},
{"已处理", "已处理"},
{"搁置", "搁置"},
{"0", "待处理"},
{"1", "已处理"},
{"2", "搁置"},
});
}
{// 资源类型
createDict("RES_TYPE", "资源类型", new String[][]{
{"菜单", "菜单"},
@ -93,12 +97,6 @@ public class DataInit {
{"锁定/注销", "锁定/注销"},
});
}
{// 日志错误类型
createDict("LOG_ERR_TYPE", "日志错误类型", new String[][]{
{"系统错误", "系统错误"},
{"业务错误", "业务错误"},
});
}
{// 文件类型
createDict("FILE_TYPE", "文件类型", new String[][]{
{"IMG", "图片"},
@ -120,7 +118,7 @@ public class DataInit {
<#list project.modules as module>
<#list module.tables as table>
<#list table.fields as field>
<#if field.fieldType == 'Dict'>
<#if field.fieldType == 'Dict' && module.moduleName != 'system'>
{// ${field.fieldComment?default('')}
createDict("${field.fieldName?default('')}", "${field.fieldComment?default('')}", new String[][]{
<#list field.dictItems as dictItem>

@ -26,7 +26,7 @@ import static junit.framework.TestCase.assertTrue;
*
* @author wangbing
* @version 0.0.1
* @since 2020-01-29
* @since 2020-06-07
*/
@RunWith(SpringRunner.class)
@SpringBootTest
@ -43,12 +43,12 @@ public class LogErrTest {
public void testCreate() {
LogErrCreateRequest request = new LogErrCreateRequest();
request.setLogErrType("code");
request.setTitle("错误标题");
request.setContent("content");
request.setLogTitle("日志标题");
request.setLogNote("content");
request.setLogErrResult("code");
request.setAttribute1("属性1");
request.setAttribute2("属性2");
request.setAttribute3("属性3");
request.setLogAttr1("属性1");
request.setLogAttr2("属性2");
request.setLogAttr3("属性3");
LogErrCreateResponse response = logErrManager.create(request,token);
@ -61,12 +61,12 @@ public class LogErrTest {
//创建数据
LogErrCreateRequest createRequest = new LogErrCreateRequest();
createRequest.setLogErrType("code");
createRequest.setTitle("错误标题");
createRequest.setContent("content");
createRequest.setLogTitle("日志标题");
createRequest.setLogNote("content");
createRequest.setLogErrResult("code");
createRequest.setAttribute1("属性1");
createRequest.setAttribute2("属性2");
createRequest.setAttribute3("属性3");
createRequest.setLogAttr1("属性1");
createRequest.setLogAttr2("属性2");
createRequest.setLogAttr3("属性3");
LogErrCreateResponse createResponse = logErrManager.create(createRequest,token);
@ -85,12 +85,12 @@ public class LogErrTest {
//创建数据
LogErrCreateRequest createRequest = new LogErrCreateRequest();
createRequest.setLogErrType("code");
createRequest.setTitle("错误标题");
createRequest.setContent("content");
createRequest.setLogTitle("日志标题");
createRequest.setLogNote("content");
createRequest.setLogErrResult("code");
createRequest.setAttribute1("属性1");
createRequest.setAttribute2("属性2");
createRequest.setAttribute3("属性3");
createRequest.setLogAttr1("属性1");
createRequest.setLogAttr2("属性2");
createRequest.setLogAttr3("属性3");
LogErrCreateResponse createResponse = logErrManager.create(createRequest, token);
@ -100,12 +100,12 @@ public class LogErrTest {
LogErrUpdateRequest request = new LogErrUpdateRequest();
request.setId(createResponse.getId());
request.setLogErrType("code");
request.setTitle("错误标题");
request.setContent("content");
request.setLogTitle("日志标题");
request.setLogNote("content");
request.setLogErrResult("code");
request.setAttribute1("属性1");
request.setAttribute2("属性2");
request.setAttribute3("属性3");
request.setLogAttr1("属性1");
request.setLogAttr2("属性2");
request.setLogAttr3("属性3");
LogErrUpdateResponse response = logErrManager.update(request,token);
@ -116,11 +116,8 @@ public class LogErrTest {
public void testFind() {
LogErrFindRequest request = new LogErrFindRequest();
request.setLogErrType("code");
request.setTitle("错误标题");
request.setLogTitle("日志标题");
request.setLogErrResult("code");
request.setAttribute1("属性1");
request.setAttribute2("属性2");
request.setAttribute3("属性3");
LogErrFindResponse response = logErrManager.find(request,token);
@ -132,12 +129,12 @@ public class LogErrTest {
//创建数据
LogErrCreateRequest createRequest = new LogErrCreateRequest();
createRequest.setLogErrType("code");
createRequest.setTitle("错误标题");
createRequest.setContent("content");
createRequest.setLogTitle("日志标题");
createRequest.setLogNote("content");
createRequest.setLogErrResult("code");
createRequest.setAttribute1("属性1");
createRequest.setAttribute2("属性2");
createRequest.setAttribute3("属性3");
createRequest.setLogAttr1("属性1");
createRequest.setLogAttr2("属性2");
createRequest.setLogAttr3("属性3");
LogErrCreateResponse createResponse = logErrManager.create(createRequest, token);

Loading…
Cancel
Save

Powered by TurnKey Linux.