wadmin优化

Former-commit-id: fa976963ec947f81863e1dd33765e29261eba28e
master
wangbing 4 years ago
parent 41c104d84b
commit ef40bf6fc1

@ -237,7 +237,7 @@ public class JavaFxApplication extends Application {
break;
case "编辑字典": {
Field field = fields.get(index);
Dialog.showDictEdit(field);
Dialog.showSelectEdit(field);
}
break;
case "编辑选项": {
@ -975,7 +975,6 @@ public class JavaFxApplication extends Application {
field.setFieldLength(FieldType.parse(fieldType).getDefaultLength());
field.setFieldType(fieldType);
field.getSelectItems().clear();
field.getDictItems().clear();
mFields.refresh();
}
});

@ -1,174 +0,0 @@
package xyz.wbsite.dbtool.javafx.ctrl;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.control.cell.TextFieldTableCell;
import javafx.util.Callback;
import javafx.util.converter.DefaultStringConverter;
import xyz.wbsite.dbtool.javafx.po.DictItem;
import java.util.ArrayList;
import java.util.List;
public class OptionDictController {
@FXML
private Button start;
@FXML
private Button cancel;
@FXML
private TableView dictItems;
@FXML
private Button add;
@FXML
private Button sub;
private List<DictItem> data = new ArrayList<>();
public List<DictItem> getData() {
return data;
}
public void setData(List<DictItem> data) {
this.data = data;
}
public Button getStart() {
return start;
}
public void setStart(Button start) {
this.start = start;
}
public Button getCancel() {
return cancel;
}
public void setCancel(Button cancel) {
this.cancel = cancel;
}
public TableView getDictItems() {
return dictItems;
}
public void setDictItems(TableView dictItems) {
this.dictItems = dictItems;
}
public Button getAdd() {
return add;
}
public void setAdd(Button add) {
this.add = add;
}
public Button getSub() {
return sub;
}
public void setSub(Button sub) {
this.sub = sub;
}
public void initData() {
dictItems.setEditable(true);
dictItems.setSortPolicy(new Callback<TableView, Boolean>() {
@Override
public Boolean call(TableView param) {
//禁止点击列头排序
return false;
}
});
ObservableList<TableColumn> columns = dictItems.getColumns();
columns.get(0).setCellValueFactory(new PropertyValueFactory("key"));
columns.get(0).setCellFactory(new Callback<TableColumn, TableCell>() {
@Override
public TableCell call(TableColumn param) {
param.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent>() {
@Override
public void handle(TableColumn.CellEditEvent event) {
int row = event.getTablePosition().getRow();
DictItem field = data.get(row);
field.setKey((String) event.getNewValue());
}
});
return new TextFieldTableCell(new DefaultStringConverter()) {
@Override
public void updateItem(Object item, boolean empty) {
super.updateItem(item, empty);
int index = this.getTableRow().getIndex();
}
};
}
});
columns.get(1).setCellValueFactory(new PropertyValueFactory("value"));
columns.get(1).setCellFactory(new Callback<TableColumn, TableCell>() {
@Override
public TableCell call(TableColumn param) {
param.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent>() {
@Override
public void handle(TableColumn.CellEditEvent event) {
int row = event.getTablePosition().getRow();
DictItem field = data.get(row);
field.setValue((String) event.getNewValue());
}
});
return new TextFieldTableCell(new DefaultStringConverter()) {
@Override
public void updateItem(Object item, boolean empty) {
super.updateItem(item, empty);
int index = this.getTableRow().getIndex();
}
};
}
});
ObservableList<DictItem> ObservableList = FXCollections.observableArrayList();
ObservableList.addAll(data);
dictItems.setItems(ObservableList);
}
public void refresh(){
ObservableList<DictItem> ObservableList = FXCollections.observableArrayList();
ObservableList.addAll(data);
dictItems.setItems(ObservableList);
}
public DictItem getNewDictItem() {
String baseKey = "KEY";
String baseValue = "VALUE";
String key = baseKey;
String value = baseValue;
int k = 0;
do {
int i;
for (i = 0; i < data.size(); i++) {
if (key.equals(data.get(i).getKey())) {
break;
}
}
if (i < data.size()) {
k++;
key = baseKey + k;
value = baseValue + k;
} else {
DictItem dictItem = new DictItem();
dictItem.setKey(key);
dictItem.setValue(value);
return dictItem;
}
} while (true);
}
}

@ -8,7 +8,6 @@ import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import xyz.wbsite.dbtool.javafx.annotation.Property;
import xyz.wbsite.dbtool.javafx.po.DataBase;
import xyz.wbsite.dbtool.javafx.po.DictItem;
import xyz.wbsite.dbtool.javafx.po.Field;
import xyz.wbsite.dbtool.javafx.po.Frame;
import xyz.wbsite.dbtool.javafx.po.Module;
@ -86,20 +85,12 @@ public class XmlManager {
map(fieldElement, field);
table.putField(field);
NodeList dictItems = fieldElement.getElementsByTagName("dictItem");
for (int l = 0; l < dictItems.getLength(); l++) {
Element di = (Element) dictItems.item(l);
DictItem dictItem = new DictItem();
map(di, dictItem);
field.getDictItems().add(dictItem);
}
NodeList selectItems = fieldElement.getElementsByTagName("selectItem");
for (int l = 0; l < selectItems.getLength(); l++) {
Element di = (Element) selectItems.item(l);
SelectItem selectItem = new SelectItem();
map(di, selectItem);
field.getSelectItems().add(selectItem);
SelectItem item = new SelectItem();
map(di, item);
field.getSelectItems().add(item);
}
}
}
@ -160,21 +151,12 @@ public class XmlManager {
Element field = doc.createElement("field");
map(f, field);
if (f.getDictItems().size() > 0) {
for (DictItem dictItem : f.getDictItems()) {
// 写入DictItem信息
Element dict = doc.createElement("dictItem");
field.appendChild(dict);
map(dictItem, dict);
}
}
if (f.getSelectItems().size() > 0) {
for (SelectItem dictItem : f.getSelectItems()) {
for (SelectItem item : f.getSelectItems()) {
// 写入SelectItem信息
Element dict = doc.createElement("selectItem");
field.appendChild(dict);
map(dictItem, dict);
map(item, dict);
}
}
table.appendChild(field);

@ -1,27 +0,0 @@
package xyz.wbsite.dbtool.javafx.po;
import xyz.wbsite.dbtool.javafx.annotation.Property;
public class DictItem {
@Property("key")
private String key;
@Property("value")
private String value;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}

@ -201,16 +201,6 @@ public class Field extends Table {
this.isSystem.set(isSystem);
}
private List<DictItem> dictItems = new ArrayList<>();
public List<DictItem> getDictItems() {
return dictItems;
}
public void setDictItems(List<DictItem> dictItems) {
this.dictItems = dictItems;
}
private List<SelectItem> selectItems = new ArrayList<>();
public List<SelectItem> getSelectItems() {

@ -31,7 +31,6 @@ import xyz.wbsite.dbtool.Application;
import xyz.wbsite.dbtool.javafx.ctrl.ConnectInfoController;
import xyz.wbsite.dbtool.javafx.ctrl.OptionAndroidController;
import xyz.wbsite.dbtool.javafx.ctrl.OptionApiController;
import xyz.wbsite.dbtool.javafx.ctrl.OptionDictController;
import xyz.wbsite.dbtool.javafx.ctrl.OptionDocController;
import xyz.wbsite.dbtool.javafx.ctrl.OptionSelectController;
import xyz.wbsite.dbtool.javafx.ctrl.OptionVueController;
@ -39,7 +38,6 @@ import xyz.wbsite.dbtool.javafx.manger.ManagerFactory;
import xyz.wbsite.dbtool.javafx.manger.ProjectManager;
import xyz.wbsite.dbtool.javafx.po.AndroidOption;
import xyz.wbsite.dbtool.javafx.po.Api;
import xyz.wbsite.dbtool.javafx.po.DictItem;
import xyz.wbsite.dbtool.javafx.po.Doc;
import xyz.wbsite.dbtool.javafx.po.Field;
import xyz.wbsite.dbtool.javafx.po.Module;
@ -692,74 +690,6 @@ public class Dialog {
}
}
public static void showDictEdit(Field field) {
Stage stage = new Stage();
stage.initModality(Modality.APPLICATION_MODAL);
FXMLLoader dbdetailloader = new FXMLLoader(Application.class.getResource("../../../fxml/OptionDict.fxml"));
try {
dbdetailloader.load();
Parent root = dbdetailloader.getRoot();
Scene scene = new Scene(root);
stage.setScene(scene);
stage.setTitle("编辑字典项");
OptionDictController controller = dbdetailloader.getController();
controller.setData(field.getDictItems());
Button add = controller.getAdd();
add.setOnMouseClicked(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
DictItem newDictItem = controller.getNewDictItem();
controller.getData().add(newDictItem);
controller.refresh();
}
});
Button sub = controller.getSub();
sub.setOnMouseClicked(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
int selectedIndex = controller.getDictItems().getSelectionModel().getSelectedIndex();
if (selectedIndex > -1) {
controller.getData().remove(selectedIndex);
controller.getDictItems().getSelectionModel().clearSelection();
controller.refresh();
}
}
});
Button start = controller.getStart();
start.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
Dialog.stopPopup();
Platform.runLater(new Runnable() {
@Override
public void run() {
stage.close();
}
});
}
});
Button cancel = controller.getCancel();
cancel.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
stage.close();
}
});
controller.initData();
stage.show();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void showSelectEdit(Field field) {
Stage stage = new Stage();
stage.initModality(Modality.APPLICATION_MODAL);

@ -1,269 +1,669 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project author="wangbing" database="SQLite" domain="xyz.wbsite" frame="网页框架" name="wadmin" needAsync="false" needCloud="false" needEMail="false" needMoreDB="false">
<modules>
<module name="wsvr" needGenerate="false" note="基础服务" prefix="SYS_">
<table ajax="false" api="false" create="true" delete="true" find="true" get="false" html="false" search="false" sys="true" tableComment="序列" tableName="SEQUENCE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="序列名称" fieldLength="50" fieldName="SEQ_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="序列备注" fieldLength="50" fieldName="SEQ_NOTE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="年" fieldLength="4" fieldName="YEAR" fieldType="String_var" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="月" fieldLength="2" fieldName="MONTH" fieldType="String_var" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="日" fieldLength="2" fieldName="DATE" fieldType="String_var" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="下一个值" fieldLength="0" fieldName="NEXT_VALUE" fieldType="Integer" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="错误日志" tableName="LOGERR" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="日志类型" fieldLength="20" fieldName="LOG_TYPE" fieldType="Select" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="系统错误" value="系统错误"/>
<selectItem label="任务错误" value="任务错误"/>
<selectItem label="业务错误" value="业务错误"/>
</field>
<field defaultValue="NULL" fieldComment="任务标题" fieldLength="50" fieldName="LOG_TITLE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="日志描述" fieldLength="500" fieldName="LOG_NOTE" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="日志状态" fieldLength="20" fieldName="LOG_STATE" fieldType="Select" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="待处理" value="0"/>
<selectItem label="处理中" value="1"/>
<selectItem label="已处理" value="2"/>
</field>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="系统配置" tableName="PROFILES" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="环境" fieldLength="20" fieldName="ACTIVE" fieldType="Select" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="开发环境" value="dev"/>
<selectItem label="生产环境" value="prod"/>
</field>
<field defaultValue="NULL" fieldComment="配置键" fieldLength="50" fieldName="KEY" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="true"/>
<field defaultValue="NULL" fieldComment="配置值" fieldLength="50" fieldName="VALUE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
</module>
<module name="wsys" needGenerate="true" note="系统服务" prefix="SYS_">
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="字典" tableName="DICT" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典描述" fieldLength="50" fieldName="DICT_COMMENT" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典版本" fieldLength="50" fieldName="VERSION" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="字典项" tableName="DICT_ITEM" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典键" fieldLength="20" fieldName="KEY" fieldType="String_var" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典值" fieldLength="50" fieldName="VALUE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="排序" fieldLength="0" fieldName="SORT" fieldType="Integer" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="资源" tableName="RES" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源名称" fieldLength="50" fieldName="RES_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源类型" fieldLength="20" fieldName="RES_TYPE" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源内容" fieldLength="255" fieldName="RES_VALUE" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="上级代码" fieldLength="50" fieldName="SUP_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="上级名称" fieldLength="50" fieldName="SUP_NAME" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否免费" fieldLength="0" fieldName="FREE" fieldType="Boolean" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="19" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="用户" tableName="USER" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户账户" fieldLength="100" fieldName="USER_NAME" fieldType="String_var100" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户代码" fieldLength="50" fieldName="USER_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户别名" fieldLength="50" fieldName="USER_ALIAS" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户密码" fieldLength="50" fieldName="USER_PWD" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户状态" fieldLength="20" fieldName="USER_STATUS" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<dictItem key="01" value="正常"/>
<dictItem key="02" value="初始密码"/>
<dictItem key="03" value="锁定/注销"/>
</field>
<field defaultValue="NULL" fieldComment="部门主键" fieldLength="0" fieldName="DEPT_ID" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME" fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="部门" tableName="DEPT" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME" fieldType="String_var100" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门别名" fieldLength="50" fieldName="DEPT_ALIAS" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="上级代码" fieldLength="50" fieldName="SUP_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="上级名称" fieldLength="100" fieldName="SUP_NAME" fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="角色" tableName="ROLE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色名称" fieldLength="50" fieldName="NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色描述" fieldLength="50" fieldName="COMMENT" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="通行证" tableName="TOKENS" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="登录令牌" fieldLength="50" fieldName="TOKEN" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户主键" fieldLength="0" fieldName="USER_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户名称" fieldLength="50" fieldName="USER_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="登录时间" fieldLength="0" fieldName="LOGIN_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="有效时间" fieldLength="0" fieldName="VALID_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门主键" fieldLength="0" fieldName="DEPT_ID" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME" fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="终端类型" fieldLength="20" fieldName="TERMINAL" fieldType="Select" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<dictItem key="WEB" value="游览器"/>
<dictItem key="API" value="接口"/>
<dictItem key="PHONE" value="手机端"/>
<selectItem label="网页" value="WEB"/>
<selectItem label="终端" value="API"/>
</field>
<field defaultValue="NULL" fieldComment="终端地址" fieldLength="50" fieldName="TERMINAL_IP" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="终端信息" fieldLength="500" fieldName="TERMINAL_INFO" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="文件" tableName="FILE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="文件名称" fieldLength="255" fieldName="NAME" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="文件类型" fieldLength="20" fieldName="FILE_TYPE" fieldType="Dict" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<dictItem key="IMG" value="图片"/>
</field>
<field defaultValue="NULL" fieldComment="扩展属性1" fieldLength="50" fieldName="ATTRIBUTE1" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="扩展属性2" fieldLength="50" fieldName="ATTRIBUTE2" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="存放地址" fieldLength="500" fieldName="LOCATION" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="访问地址" fieldLength="500" fieldName="URL" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="下载地址" fieldLength="500" fieldName="URL_DOWNLOAD" fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="false" search="false" sys="true" tableComment="用户角色授权" tableName="USER_ROLE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户主键" fieldLength="0" fieldName="USER_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户代码" fieldLength="50" fieldName="USER_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色主键" fieldLength="0" fieldName="ROLE_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="ROLE_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="false" search="false" sys="true" tableComment="角色资源关系" tableName="ROLE_RES" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色主键" fieldLength="0" fieldName="ROLE_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="ROLE_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源主键" fieldLength="0" fieldName="RES_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="SQL任务" tableName="TASK_SQL" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="任务名称" fieldLength="50" fieldName="TASK_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="详细注释" fieldLength="255" fieldName="TASK_NOTE" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="任务类型" fieldLength="20" fieldName="TASK_TYPE" fieldType="Dict" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<dictItem key="Cron" value="Cron表达式"/>
<dictItem key="DelayRepeat" value="间隔重复(秒)"/>
<dictItem key="FixRepeat" value="绝对重复(秒)"/>
</field>
<field defaultValue="NULL" fieldComment="任务类型值" fieldLength="50" fieldName="TYPE_VALUE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="任务SQL" fieldLength="2500" fieldName="TASK_SQL" fieldType="String_var2500" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="false" search="false" sys="true" tableComment="应用接入" tableName="VISITOR" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用名称" fieldLength="50" fieldName="APP_NAME" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用简介" fieldLength="255" fieldName="APP_NOTE" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用码" fieldLength="50" fieldName="APP_KEY" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="true"/>
<field defaultValue="NULL" fieldComment="安全码" fieldLength="16" fieldName="APP_SECRET" fieldType="String_var" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="false" search="false" sys="true" tableComment="应用资源关系" tableName="VISITOR_RES" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用主键" fieldLength="0" fieldName="APP_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用码" fieldLength="50" fieldName="APP_KEY" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源主键" fieldLength="0" fieldName="RES_ID" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
</module>
</modules>
<project author="wangbing" database="SQLite" domain="xyz.wbsite" frame="网页框架" name="wadmin" needAsync="false"
needCloud="false" needEMail="false" needMoreDB="false">
<modules>
<module name="wsvr" needGenerate="false" note="基础服务" prefix="SYS_">
<table ajax="false" api="false" create="true" delete="true" find="true" get="false" html="false"
search="false" sys="true" tableComment="序列" tableName="SEQUENCE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="序列名称" fieldLength="50" fieldName="SEQ_NAME"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="序列备注" fieldLength="50" fieldName="SEQ_NOTE"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="年" fieldLength="4" fieldName="YEAR" fieldType="String_var"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="月" fieldLength="2" fieldName="MONTH" fieldType="String_var"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="日" fieldLength="2" fieldName="DATE" fieldType="String_var"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="下一个值" fieldLength="0" fieldName="NEXT_VALUE"
fieldType="Integer" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="错误日志" tableName="LOGERR" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="日志类型" fieldLength="20" fieldName="LOG_TYPE" fieldType="Select"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false">
<selectItem label="系统错误" value="系统错误"/>
<selectItem label="任务错误" value="任务错误"/>
<selectItem label="业务错误" value="业务错误"/>
</field>
<field defaultValue="NULL" fieldComment="任务标题" fieldLength="50" fieldName="LOG_TITLE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="日志描述" fieldLength="500" fieldName="LOG_NOTE"
fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="日志状态" fieldLength="20" fieldName="LOG_STATE" fieldType="Select"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false">
<selectItem label="待处理" value="0"/>
<selectItem label="处理中" value="1"/>
<selectItem label="已处理" value="2"/>
</field>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="系统配置" tableName="PROFILES" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="环境" fieldLength="20" fieldName="ACTIVE" fieldType="Select"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false">
<selectItem label="开发环境" value="dev"/>
<selectItem label="生产环境" value="prod"/>
</field>
<field defaultValue="NULL" fieldComment="配置键" fieldLength="50" fieldName="KEY" fieldType="String_var50"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="true"/>
<field defaultValue="NULL" fieldComment="配置值" fieldLength="50" fieldName="VALUE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
</module>
<module name="wsys" needGenerate="true" note="系统服务" prefix="SYS_">
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="字典" tableName="DICT" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典描述" fieldLength="50" fieldName="DICT_COMMENT"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典版本" fieldLength="50" fieldName="VERSION"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="字典项" tableName="DICT_ITEM" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典名称" fieldLength="50" fieldName="DICT_NAME"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典键" fieldLength="20" fieldName="KEY" fieldType="String_var"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="字典值" fieldLength="50" fieldName="VALUE"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="排序" fieldLength="0" fieldName="SORT" fieldType="Integer"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="资源" tableName="RES" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源名称" fieldLength="50" fieldName="RES_NAME"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源类型" fieldLength="20" fieldName="RES_TYPE" fieldType="Dict"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源内容" fieldLength="255" fieldName="RES_VALUE"
fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="上级代码" fieldLength="50" fieldName="SUP_CODE"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="上级名称" fieldLength="50" fieldName="SUP_NAME"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否免费" fieldLength="0" fieldName="FREE" fieldType="Boolean"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="19" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="19" fieldName="LAST_UPDATE_BY"
fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="用户" tableName="USER" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户账户" fieldLength="100" fieldName="USER_NAME"
fieldType="String_var100" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户代码" fieldLength="50" fieldName="USER_CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户别名" fieldLength="50" fieldName="USER_ALIAS"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户密码" fieldLength="50" fieldName="USER_PWD"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户状态" fieldLength="20" fieldName="USER_STATUS" fieldType="Dict"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false">
<selectItem value="01" label="正常"/>
<selectItem value="02" label="初始密码"/>
<selectItem value="03" label="锁定/注销"/>
</field>
<field defaultValue="NULL" fieldComment="部门主键" fieldLength="0" fieldName="DEPT_ID" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME"
fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="19" fieldName="LAST_UPDATE_BY"
fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="部门" tableName="DEPT" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME"
fieldType="String_var100" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门别名" fieldLength="50" fieldName="DEPT_ALIAS"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="上级代码" fieldLength="50" fieldName="SUP_CODE"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="上级名称" fieldLength="100" fieldName="SUP_NAME"
fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="角色" tableName="ROLE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色名称" fieldLength="50" fieldName="NAME"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色描述" fieldLength="50" fieldName="COMMENT"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="通行证" tableName="TOKENS" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="登录令牌" fieldLength="50" fieldName="TOKEN"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户主键" fieldLength="0" fieldName="USER_ID" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户名称" fieldLength="50" fieldName="USER_NAME"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="登录时间" fieldLength="0" fieldName="LOGIN_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="有效时间" fieldLength="0" fieldName="VALID_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门主键" fieldLength="0" fieldName="DEPT_ID" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门代码" fieldLength="50" fieldName="DEPT_CODE"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="部门名称" fieldLength="100" fieldName="DEPT_NAME"
fieldType="String_var100" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="终端类型" fieldLength="20" fieldName="TERMINAL" fieldType="Select"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false">
<selectItem value="WEB" label="网页"/>
<selectItem value="API" label="终端"/>
</field>
<field defaultValue="NULL" fieldComment="终端地址" fieldLength="50" fieldName="TERMINAL_IP"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="终端信息" fieldLength="500" fieldName="TERMINAL_INFO"
fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="文件" tableName="FILE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="文件名称" fieldLength="255" fieldName="NAME"
fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="文件类型" fieldLength="20" fieldName="FILE_TYPE" fieldType="Dict"
isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false">
<selectItem value="IMG" label="图片"/>
</field>
<field defaultValue="NULL" fieldComment="扩展属性1" fieldLength="50" fieldName="ATTRIBUTE1"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="扩展属性2" fieldLength="50" fieldName="ATTRIBUTE2"
fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="存放地址" fieldLength="500" fieldName="LOCATION"
fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="访问地址" fieldLength="500" fieldName="URL"
fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="下载地址" fieldLength="500" fieldName="URL_DOWNLOAD"
fieldType="String_var500" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="false"
search="false" sys="true" tableComment="用户角色授权" tableName="USER_ROLE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户主键" fieldLength="0" fieldName="USER_ID" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户代码" fieldLength="50" fieldName="USER_CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色主键" fieldLength="0" fieldName="ROLE_ID" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="ROLE_CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="false"
search="false" sys="true" tableComment="角色资源关系" tableName="ROLE_RES" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色主键" fieldLength="0" fieldName="ROLE_ID" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="角色代码" fieldLength="50" fieldName="ROLE_CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源主键" fieldLength="0" fieldName="RES_ID" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true"
search="false" sys="true" tableComment="SQL任务" tableName="TASK_SQL" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="任务名称" fieldLength="50" fieldName="TASK_NAME"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="详细注释" fieldLength="255" fieldName="TASK_NOTE"
fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="任务类型" fieldLength="20" fieldName="TASK_TYPE" fieldType="Dict"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false">
<selectItem value="Cron" label="Cron表达式"/>
<selectItem value="DelayRepeat" label="间隔重复(秒)"/>
<selectItem value="FixRepeat" label="绝对重复(秒)"/>
</field>
<field defaultValue="NULL" fieldComment="任务类型值" fieldLength="50" fieldName="TYPE_VALUE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="任务SQL" fieldLength="2500" fieldName="TASK_SQL"
fieldType="String_var2500" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="false"
search="false" sys="true" tableComment="应用接入" tableName="VISITOR" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用名称" fieldLength="50" fieldName="APP_NAME"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用简介" fieldLength="255" fieldName="APP_NOTE"
fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用码" fieldLength="50" fieldName="APP_KEY"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="true"/>
<field defaultValue="NULL" fieldComment="安全码" fieldLength="16" fieldName="APP_SECRET"
fieldType="String_var" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="false"
search="false" sys="true" tableComment="应用资源关系" tableName="VISITOR_RES" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true"
isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用主键" fieldLength="0" fieldName="APP_ID" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="应用码" fieldLength="50" fieldName="APP_KEY"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源主键" fieldLength="0" fieldName="RES_ID" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE"
fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false"
isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date"
isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long"
isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true"
isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME"
fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false"
isSystem="true" isUnique="false"/>
</table>
</module>
</modules>
</project>

@ -67,65 +67,14 @@ public class DataInit {
public void init() {
//region 字典初始化
{
{// 终端类型
createDict("TERMINAL_TYPE", "终端类型", new String[][]{
{"WEB", "游览器端"},
{"API", "接口端"},
{"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[][]{
{"WEB", "网页"},
{"API", "接口"},
});
}
{// 用户状态
createDict("USER_STATUS", "用户状态", new String[][]{
{"正常", "正常"},
{"初始密码", "初始密码"},
{"锁定/注销", "锁定/注销"},
});
}
{// 文件类型
createDict("FILE_TYPE", "文件类型", new String[][]{
{"IMG", "图片"},
});
}
{// 任务类型
createDict("TASK_TYPE", "任务类型", new String[][]{
{"Cron", "Cron表达式"},
{"DelayRepeat", "间隔重复(秒)"},
{"FixRepeat", "绝对重复(秒)"},
});
}
{// 环境
createDict("ACTIVE", "环境", new String[][]{
{"dev", "开发环境"},
{"prod", "生产环境"},
});
}
<#list project.modules as module>
<#list module.tables as table>
<#list table.fields as field>
<#if field.fieldType == 'Dict' && module.moduleName != 'wsys'>
{// ${field.fieldComment?default('')}
createDict("${field.fieldName?default('')}", "${field.fieldComment?default('')}", new String[][]{
<#list field.dictItems as dictItem>
{"${dictItem.key?default('')}", "${dictItem.value?default('')}"},
<#list field.selectItems as item>
{"${item.value?default('')}", "${item.label?default('')}"},
</#list>
});
}

Loading…
Cancel
Save

Powered by TurnKey Linux.