master
王兵 4 years ago
parent 616ca6bcb2
commit d92e5e97f6

@ -428,12 +428,6 @@ public class JavaFxApplication extends Application {
currentTable.setAjax(newValue); currentTable.setAjax(newValue);
} }
}); });
detailTableController.getHtml().selectedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
currentTable.setHtml(newValue);
}
});
detailTableController.getApi().selectedProperty().addListener(new ChangeListener<Boolean>() { detailTableController.getApi().selectedProperty().addListener(new ChangeListener<Boolean>() {
@Override @Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
@ -446,13 +440,45 @@ public class JavaFxApplication extends Application {
currentTable.setMsvr(newValue); currentTable.setMsvr(newValue);
} }
}); });
detailTableController.getPage().selectedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
currentTable.setPage(newValue);
if (newValue){
detailTableController.getPageAdd().setSelected(true);
detailTableController.getPageImp().setSelected(true);
detailTableController.getPageExp().setSelected(true);
}else {
detailTableController.getPageAdd().setSelected(false);
detailTableController.getPageImp().setSelected(false);
detailTableController.getPageExp().setSelected(false);
}
}
});
detailTableController.getPageAdd().selectedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
currentTable.setPageAdd(newValue);
}
});
detailTableController.getPageExp().selectedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
currentTable.setPageExp(newValue);
}
});
detailTableController.getPageImp().selectedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
currentTable.setPageImp(newValue);
}
});
detailTableController.getCreate().selectedProperty().addListener(new ChangeListener<Boolean>() { detailTableController.getCreate().selectedProperty().addListener(new ChangeListener<Boolean>() {
@Override @Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
currentTable.setCreate(newValue); currentTable.setCreate(newValue);
if (!currentTable.needMgr()) { if (!currentTable.needMgr()) {
detailTableController.getAjax().setSelected(false); detailTableController.getAjax().setSelected(false);
detailTableController.getHtml().setSelected(false);
} }
} }
}); });
@ -462,7 +488,6 @@ public class JavaFxApplication extends Application {
currentTable.setDelete(newValue); currentTable.setDelete(newValue);
if (!currentTable.needMgr()) { if (!currentTable.needMgr()) {
detailTableController.getAjax().setSelected(false); detailTableController.getAjax().setSelected(false);
detailTableController.getHtml().setSelected(false);
} }
} }
}); });
@ -472,7 +497,6 @@ public class JavaFxApplication extends Application {
currentTable.setUpdate(newValue); currentTable.setUpdate(newValue);
if (!currentTable.needMgr()) { if (!currentTable.needMgr()) {
detailTableController.getAjax().setSelected(false); detailTableController.getAjax().setSelected(false);
detailTableController.getHtml().setSelected(false);
} }
} }
}); });
@ -482,7 +506,6 @@ public class JavaFxApplication extends Application {
currentTable.setFind(newValue); currentTable.setFind(newValue);
if (!currentTable.needMgr()) { if (!currentTable.needMgr()) {
detailTableController.getAjax().setSelected(false); detailTableController.getAjax().setSelected(false);
detailTableController.getHtml().setSelected(false);
} }
} }
}); });
@ -492,7 +515,6 @@ public class JavaFxApplication extends Application {
currentTable.setGet(newValue); currentTable.setGet(newValue);
if (!currentTable.needMgr()) { if (!currentTable.needMgr()) {
detailTableController.getAjax().setSelected(false); detailTableController.getAjax().setSelected(false);
detailTableController.getHtml().setSelected(false);
} }
} }
}); });
@ -502,7 +524,6 @@ public class JavaFxApplication extends Application {
currentTable.setSearch(newValue); currentTable.setSearch(newValue);
if (!currentTable.needMgr()) { if (!currentTable.needMgr()) {
detailTableController.getAjax().setSelected(false); detailTableController.getAjax().setSelected(false);
detailTableController.getHtml().setSelected(false);
} }
} }
}); });
@ -972,8 +993,11 @@ public class JavaFxApplication extends Application {
detailTableController.getGet().setSelected(currentTable.getGet()); detailTableController.getGet().setSelected(currentTable.getGet());
detailTableController.getSearch().setSelected(currentTable.getSearch()); detailTableController.getSearch().setSelected(currentTable.getSearch());
detailTableController.getSys().setSelected(currentTable.getSys()); detailTableController.getSys().setSelected(currentTable.getSys());
detailTableController.getAjax().setSelected(currentTable.getAjax()); detailTableController.getAjax().setSelected(currentTable.isAjax());
detailTableController.getHtml().setSelected(currentTable.getHtml()); detailTableController.getPage().setSelected(currentTable.isPage());
detailTableController.getPageAdd().setSelected(currentTable.isPageAdd());
detailTableController.getPageImp().setSelected(currentTable.isPageImp());
detailTableController.getPageExp().setSelected(currentTable.isPageExp());
detailTableController.getApi().setSelected(currentTable.getApi()); detailTableController.getApi().setSelected(currentTable.getApi());
detailTableController.getMsvr().setSelected(currentTable.getMsvr()); detailTableController.getMsvr().setSelected(currentTable.getMsvr());

@ -34,7 +34,13 @@ public class DetailTableController {
@FXML @FXML
private CheckBox ajax; private CheckBox ajax;
@FXML @FXML
private CheckBox html; private CheckBox page;
@FXML
private CheckBox pageAdd;
@FXML
private CheckBox pageImp;
@FXML
private CheckBox pageExp;
@FXML @FXML
private CheckBox api; private CheckBox api;
@FXML @FXML
@ -120,12 +126,12 @@ public class DetailTableController {
this.tablecomment = tablecomment; this.tablecomment = tablecomment;
} }
public CheckBox getHtml() { public CheckBox getPage() {
return html; return page;
} }
public void setHtml(CheckBox html) { public void setPage(CheckBox page) {
this.html = html; this.page = page;
} }
public CheckBox getAjax() { public CheckBox getAjax() {
@ -136,6 +142,30 @@ public class DetailTableController {
this.ajax = ajax; this.ajax = ajax;
} }
public CheckBox getPageAdd() {
return pageAdd;
}
public void setPageAdd(CheckBox pageAdd) {
this.pageAdd = pageAdd;
}
public CheckBox getPageImp() {
return pageImp;
}
public void setPageImp(CheckBox pageImp) {
this.pageImp = pageImp;
}
public CheckBox getPageExp() {
return pageExp;
}
public void setPageExp(CheckBox pageExp) {
this.pageExp = pageExp;
}
public CheckBox getApi() { public CheckBox getApi() {
return api; return api;
} }

@ -226,8 +226,11 @@ public class ProjectManager {
table.setFind(true); table.setFind(true);
table.setGet(false); table.setGet(false);
table.setSearch(false); table.setSearch(false);
table.setPage(true);
table.setAjax(true); table.setAjax(true);
table.setHtml(true); table.setPageAdd(true);
table.setPageImp(true);
table.setPageExp(true);
checkSysFields(table);// 检查或移除系统字段 checkSysFields(table);// 检查或移除系统字段
md.putTable(table); md.putTable(table);
return table; return table;

@ -150,7 +150,7 @@ public class SpringBootCallable implements Callable {
File m = Tool.createPath(ajax, module.getName()); File m = Tool.createPath(ajax, module.getName());
ctxss.put("moduleName", module.getName()); ctxss.put("moduleName", module.getName());
for (Table table : module.getTables()) { for (Table table : module.getTables()) {
if (table.getAjax()) { if (table.isAjax()) {
ctxss.put("table", table); ctxss.put("table", table);
freeMarkerManager.outputTemp(Tool.createFile(m, table.getCName() + "Ajax.java"), "SpringBoot/java/action/ajax/Ajax.java", ctxss); freeMarkerManager.outputTemp(Tool.createFile(m, table.getCName() + "Ajax.java"), "SpringBoot/java/action/ajax/Ajax.java", ctxss);
} }
@ -607,6 +607,10 @@ public class SpringBootCallable implements Callable {
//region SQLite数据库模板生成 //region SQLite数据库模板生成
if (DataBase.SQLite.name().equals(project.getDatabase().name())) { if (DataBase.SQLite.name().equals(project.getDatabase().name())) {
File old = new File(root, project.getName() + ".db3");
if (old.exists()){
old.delete();
}
File dbFile = Tool.createFile(root, project.getName() + ".db3"); File dbFile = Tool.createFile(root, project.getName() + ".db3");
Connection connection = null; Connection connection = null;
Statement statement = null; Statement statement = null;
@ -687,7 +691,7 @@ public class SpringBootCallable implements Callable {
if (module.getNeedGenerate()) { if (module.getNeedGenerate()) {
File modulePath = Tool.createPath(screen, module.getName()); File modulePath = Tool.createPath(screen, module.getName());
for (Table table : module.getTables()) { for (Table table : module.getTables()) {
if (table.getHtml()) { if (table.isPage()) {
ctx.put("table", table); ctx.put("table", table);
ctx.put("module", module); ctx.put("module", module);
ctx.put("fields", table.getFields()); ctx.put("fields", table.getFields());

@ -52,7 +52,7 @@ public class Module {
public boolean hasHtml() { public boolean hasHtml() {
for (Table table : tables) { for (Table table : tables) {
if (table.getHtml()) return true; if (table.isPage()) return true;
} }
return false; return false;
} }

@ -142,7 +142,7 @@ public class Project {
public boolean isNeedAjax() { public boolean isNeedAjax() {
for (Module module : modules) { for (Module module : modules) {
for (Table table : module.getTables()) { for (Table table : module.getTables()) {
if (table.getAjax()) { if (table.isAjax()) {
return true; return true;
} }
} }
@ -153,7 +153,7 @@ public class Project {
public boolean isNeedHtml() { public boolean isNeedHtml() {
for (Module module : modules) { for (Module module : modules) {
for (Table table : module.getTables()) { for (Table table : module.getTables()) {
if (table.getHtml()) { if (table.isPage()) {
return true; return true;
} }
} }

@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections; import javafx.collections.FXCollections;
import javafx.collections.ObservableList; import javafx.collections.ObservableList;
import javafx.scene.control.TreeItem;
import xyz.wbsite.dbtool.javafx.annotation.Property; import xyz.wbsite.dbtool.javafx.annotation.Property;
import xyz.wbsite.dbtool.javafx.manger.ManagerFactory; import xyz.wbsite.dbtool.javafx.manger.ManagerFactory;
import xyz.wbsite.dbtool.javafx.manger.ProjectManager; import xyz.wbsite.dbtool.javafx.manger.ProjectManager;
@ -48,14 +47,21 @@ public class Table {
@Property("sys") @Property("sys")
private boolean sys = true; private boolean sys = true;
@Property("ajax") @Property("ajax")
private boolean ajax = false; private boolean ajax = true;
@Property("html")
private boolean html = false;
@Property("api") @Property("api")
private boolean api = false; private boolean api = false;
@Property("msvr") @Property("msvr")
private boolean msvr = false; private boolean msvr = false;
@Property("html")
private boolean page = true;
@Property("pageAdd")
private boolean pageAdd = true;
@Property("pageImp")
private boolean pageImp = true;
@Property("pageExp")
private boolean pageExp = true;
@Property("methods") @Property("methods")
private List<TableMethod> methods = new ArrayList<>(); private List<TableMethod> methods = new ArrayList<>();
@ -96,7 +102,16 @@ public class Table {
} }
public boolean needMgr() { public boolean needMgr() {
return create || delete || update || find || get || search; boolean need = create || delete || update || find || get || search;
if (need) {
return need;
}
for (TableMethod method : methods) {
if (method.isSelected()) {
return true;
}
}
return false;
} }
public String getCName() { public String getCName() {
@ -191,12 +206,44 @@ public class Table {
this.search = search; this.search = search;
} }
public boolean getHtml() { public boolean isPage() {
return html; return page;
}
public void setPage(boolean page) {
this.page = page;
}
public boolean isAjax() {
return ajax;
}
public void setAjax(boolean ajax) {
this.ajax = ajax;
}
public boolean isPageAdd() {
return pageAdd;
} }
public void setHtml(boolean html) { public void setPageAdd(boolean pageAdd) {
this.html = html; this.pageAdd = pageAdd;
}
public boolean isPageImp() {
return pageImp;
}
public void setPageImp(boolean pageImp) {
this.pageImp = pageImp;
}
public boolean isPageExp() {
return pageExp;
}
public void setPageExp(boolean pageExp) {
this.pageExp = pageExp;
} }
public boolean getSys() { public boolean getSys() {
@ -209,14 +256,6 @@ public class Table {
if (projectManager != null) projectManager.checkSysFields(this); if (projectManager != null) projectManager.checkSysFields(this);
} }
public boolean getAjax() {
return ajax;
}
public void setAjax(boolean ajax) {
this.ajax = ajax;
}
public boolean getApi() { public boolean getApi() {
return api; return api;
} }

@ -12,7 +12,10 @@
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="10.0"/> <ColumnConstraints hgrow="SOMETIMES" prefWidth="10.0"/>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="60.0"/> <ColumnConstraints hgrow="SOMETIMES" prefWidth="60.0"/>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="400.0"/> <ColumnConstraints hgrow="SOMETIMES" prefWidth="160.0"/>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="10.0"/>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="60.0"/>
<ColumnConstraints hgrow="SOMETIMES" prefWidth="160.0"/>
</columnConstraints> </columnConstraints>
<rowConstraints> <rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
@ -22,35 +25,53 @@
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
</rowConstraints> </rowConstraints>
<children> <children>
<Label alignment="CENTER" text="*" textAlignment="CENTER" textFill="RED" GridPane.columnIndex="0" <!-- ROW -->
GridPane.halignment="CENTER" GridPane.rowIndex="0" GridPane.valignment="CENTER"/> <Label GridPane.rowIndex="0" GridPane.columnIndex="0" text="*" alignment="CENTER" textAlignment="CENTER"
<Label text="对象名称" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="0" textFill="RED" GridPane.halignment="CENTER" GridPane.valignment="CENTER"/>
<Label GridPane.rowIndex="0" GridPane.columnIndex="1" text="对象名称" GridPane.halignment="CENTER"
GridPane.valignment="CENTER"/> GridPane.valignment="CENTER"/>
<TextField fx:id="tablename" GridPane.columnIndex="2" GridPane.rowIndex="0"/> <TextField GridPane.rowIndex="0" GridPane.columnIndex="2" fx:id="tablename"/>
<Label alignment="CENTER" text="*" textAlignment="CENTER" textFill="RED" GridPane.columnIndex="0" <Label GridPane.rowIndex="0" GridPane.columnIndex="3" text="*" alignment="CENTER" textAlignment="CENTER"
GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="CENTER"/> textFill="RED" GridPane.halignment="CENTER" GridPane.valignment="CENTER"/>
<Label text="对象注释" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="1" <Label GridPane.rowIndex="0" GridPane.columnIndex="4" text="对象注释" GridPane.halignment="CENTER"
GridPane.valignment="CENTER"/> GridPane.valignment="CENTER"/>
<TextField fx:id="tablecomment" GridPane.columnIndex="2" GridPane.rowIndex="1"/> <TextField GridPane.rowIndex="0" GridPane.columnIndex="5" fx:id="tablecomment"/>
<!-- ROW -->
<Label text="基础配置" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="2" <!-- ROW -->
<Label text="基础配置" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="1"
GridPane.valignment="CENTER"/> GridPane.valignment="CENTER"/>
<HBox alignment="CENTER_LEFT" GridPane.columnIndex="2" GridPane.columnSpan="4" GridPane.halignment="CENTER" GridPane.rowIndex="1"
<HBox alignment="CENTER_LEFT" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="2"
GridPane.valignment="CENTER"> GridPane.valignment="CENTER">
<children> <children>
<CheckBox fx:id="sys" selected="true" text="系统字段"/> <CheckBox fx:id="sys" selected="true" text="系统字段"/>
<CheckBox fx:id="ajax" selected="false" text="AJAX接口"/> <CheckBox fx:id="ajax" selected="true" text="AJAX"/>
<CheckBox fx:id="html" selected="false" text="HTML页面"/>
<CheckBox fx:id="api" selected="false" text="API接口"/> <CheckBox fx:id="api" selected="false" text="API接口"/>
<CheckBox fx:id="msvr" selected="false" text="Cloud接口"/> <CheckBox fx:id="msvr" selected="false" text="Cloud接口"/>
</children> </children>
</HBox> </HBox>
<!-- ROW -->
<!-- ROW -->
<Label text="页面配置" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="2"
GridPane.valignment="CENTER"/>
<HBox alignment="CENTER_LEFT" GridPane.columnIndex="2" GridPane.columnSpan="4" GridPane.halignment="CENTER" GridPane.rowIndex="2"
GridPane.valignment="CENTER">
<children>
<CheckBox fx:id="page" selected="true" text="页面"/>
<CheckBox fx:id="pageAdd" selected="true" text="新增"/>
<CheckBox fx:id="pageImp" selected="true" text="导入"/>
<CheckBox fx:id="pageExp" selected="true" text="导出"/>
</children>
</HBox>
<!-- ROW -->
<!-- ROW -->
<Label text="基本业务" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="3" <Label text="基本业务" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="3"
GridPane.valignment="CENTER"/> GridPane.valignment="CENTER"/>
<FlowPane alignment="CENTER_LEFT" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="3" <FlowPane alignment="CENTER_LEFT" GridPane.columnIndex="2" GridPane.columnSpan="4" GridPane.halignment="CENTER" GridPane.rowIndex="3"
GridPane.valignment="CENTER"> GridPane.valignment="CENTER">
<children> <children>
<CheckBox fx:id="create" mnemonicParsing="false" text="create"/> <CheckBox fx:id="create" mnemonicParsing="false" text="create"/>
@ -61,10 +82,12 @@
<CheckBox fx:id="search" mnemonicParsing="false" text="search"/> <CheckBox fx:id="search" mnemonicParsing="false" text="search"/>
</children> </children>
</FlowPane> </FlowPane>
<!-- ROW -->
<!-- ROW -->
<Label text="扩展业务" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="4" <Label text="扩展业务" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="4"
GridPane.valignment="CENTER"/> GridPane.valignment="CENTER"/>
<FlowPane fx:id="methods" alignment="CENTER_LEFT" GridPane.columnIndex="2" GridPane.halignment="CENTER" <FlowPane fx:id="methods" alignment="CENTER_LEFT" GridPane.columnSpan="4" GridPane.columnIndex="2" GridPane.halignment="CENTER"
GridPane.rowIndex="4" GridPane.valignment="CENTER"> GridPane.rowIndex="4" GridPane.valignment="CENTER">
<children> <children>
<Button fx:id="add" mnemonicParsing="false" text="+"> <Button fx:id="add" mnemonicParsing="false" text="+">
@ -74,5 +97,6 @@
</Button> </Button>
</children> </children>
</FlowPane> </FlowPane>
<!-- ROW -->
</children> </children>
</GridPane> </GridPane>

@ -0,0 +1,28 @@
package xyz.wbsite.action.ajax.wsys;
import org.springframework.beans.factory.annotation.Autowired;
import xyz.wbsite.frame.auth.LocalData;
import xyz.wbsite.module.wsys.req.LogtaskCreateRequest;
import xyz.wbsite.module.wsys.req.LogtaskDeleteRequest;
import xyz.wbsite.module.wsys.req.LogtaskFindRequest;
import xyz.wbsite.module.wsys.rsp.LogtaskCreateResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskDeleteResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskFindResponse;
public class LogtaskAjax {
@Autowired
private xyz.wbsite.module.wsys.mgr.LogtaskManager logtaskManager;
public LogtaskCreateResponse create(LogtaskCreateRequest request) {
return logtaskManager.create(request, LocalData.getToken());
}
public LogtaskDeleteResponse delete(LogtaskDeleteRequest request) {
return logtaskManager.delete(request, LocalData.getToken());
}
public LogtaskFindResponse find(LogtaskFindRequest request) {
return logtaskManager.find(request, LocalData.getToken());
}
}

@ -0,0 +1,118 @@
package xyz.wbsite.module.wsys.ent;
import java.util.Date;
import xyz.wbsite.frame.excel.annotation.ExcelNote;
import xyz.wbsite.frame.excel.annotation.ExcelSelect;
import com.alibaba.excel.annotation.ExcelProperty;
import xyz.wbsite.frame.excel.annotation.ExcelSheet;
import xyz.wbsite.frame.base.BaseEntity;
/**
* LOGTASK -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
@ExcelSheet("任务日志")
public class Logtask extends BaseEntity {
/**
* TASK_ID - ID
*/
@ExcelProperty("任务ID")
@ExcelNote("")
private String taskId;
/**
* TASK_NAME -
*/
@ExcelProperty("任务名称")
@ExcelNote("")
private String taskName;
/**
* START_TIME -
*/
@ExcelProperty("开始时间")
@ExcelNote("")
private Date startTime;
/**
* END_TIME -
*/
@ExcelProperty("结束时间")
@ExcelNote("")
private Date endTime;
/**
* EXEC_TIME -
*/
@ExcelProperty("执行耗时")
@ExcelNote("")
private Integer execTime;
/**
* EXEC_STATE -
*/
@ExcelProperty("执行状态")
@ExcelNote("")
private String execState;
/**
* EXEC_RESULT -
*/
@ExcelProperty("执行结果")
@ExcelNote("")
private String execResult;
public String getTaskId() {
return this.taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public String getTaskName() {
return this.taskName;
}
public void setTaskName(String taskName) {
this.taskName = taskName;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return this.endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Integer getExecTime() {
return this.execTime;
}
public void setExecTime(Integer execTime) {
this.execTime = execTime;
}
public String getExecState() {
return this.execState;
}
public void setExecState(String execState) {
this.execState = execState;
}
public String getExecResult() {
return this.execResult;
}
public void setExecResult(String execResult) {
this.execResult = execResult;
}
}

@ -0,0 +1,48 @@
package xyz.wbsite.module.wsys.mgr;
import xyz.wbsite.module.wsys.req.LogtaskCreateRequest;
import xyz.wbsite.module.wsys.req.LogtaskDeleteRequest;
import xyz.wbsite.module.wsys.req.LogtaskFindRequest;
import xyz.wbsite.module.wsys.req.LogtaskUpdateRequest;
import xyz.wbsite.module.wsys.rsp.LogtaskCreateResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskDeleteResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskFindResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskUpdateResponse;
import xyz.wbsite.frame.auth.Token;
/**
*
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
public interface LogtaskManager {
/**
*
*
* @param request
* @param token
* @return
*/
LogtaskCreateResponse create(LogtaskCreateRequest request, Token token);
/**
*
*
* @param request
* @param token
* @return
*/
LogtaskDeleteResponse delete(LogtaskDeleteRequest request, Token token);
/**
*
*
* @param request
* @param token
* @return
*/
LogtaskFindResponse find(LogtaskFindRequest request, Token token);
}

@ -0,0 +1,123 @@
package xyz.wbsite.module.wsys.mgr;
import xyz.wbsite.frame.utils.IDgenerator;
import xyz.wbsite.frame.utils.Message;
import xyz.wbsite.frame.base.ErrorType;
import xyz.wbsite.frame.auth.Token;
import xyz.wbsite.frame.utils.MapperUtil;
import xyz.wbsite.frame.utils.ValidationUtil;
import xyz.wbsite.module.wsys.ent.Logtask;
import xyz.wbsite.module.wsys.mpr.LogtaskMapper;
import xyz.wbsite.module.wsys.req.LogtaskCreateRequest;
import xyz.wbsite.module.wsys.req.LogtaskDeleteRequest;
import xyz.wbsite.module.wsys.req.LogtaskFindRequest;
import xyz.wbsite.module.wsys.req.LogtaskUpdateRequest;
import xyz.wbsite.module.wsys.rsp.LogtaskCreateResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskDeleteResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskFindResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskUpdateResponse;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.github.pagehelper.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* LOGTASK -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
@Transactional
@Service
public class LogtaskManagerImpl implements LogtaskManager {
@Autowired
private LogtaskMapper logtaskMapper;
/**
*
*
* @param request
* @param token
* @return
*/
public LogtaskCreateResponse create(LogtaskCreateRequest request, Token token) {
LogtaskCreateResponse response = new LogtaskCreateResponse();
ValidationUtil.validate(request, response);
if (response.hasError()) {
return response;
}
long id = IDgenerator.nextId();
Logtask entity = MapperUtil.map(request, Logtask.class);
entity.setId(id);
long result = logtaskMapper.insert(entity, token);
if (1L != result) {
response.addError(ErrorType.BUSINESS_ERROR, Message.CREATE_FAILURE);
return response;
}
response.setId(id);
return response;
}
/**
*
*
* @param request
* @param token
* @return
*/
public LogtaskDeleteResponse delete(LogtaskDeleteRequest request, Token token) {
LogtaskDeleteResponse response = new LogtaskDeleteResponse();
ValidationUtil.validate(request, response);
if (response.hasError()) {
return response;
}
long result = logtaskMapper.delete(request.getId(), token);
if (1L != result) {
response.addError(ErrorType.BUSINESS_ERROR, Message.DELETE_FAILURE);
return response;
}
response.setResult(result);
return response;
}
/**
*
*
* @param request
* @param token
* @return
*/
@Transactional(readOnly = true)
public LogtaskFindResponse find(LogtaskFindRequest request, Token token) {
LogtaskFindResponse response = new LogtaskFindResponse();
ValidationUtil.validate(request, response);
if (response.hasError()) {
return response;
}
if (request.getPageSize() != 0) {
PageHelper.startPage(request.getPageNumber(), request.getPageSize());
}
if (StringUtil.isNotEmpty(request.getSortKey())) {
PageHelper.orderBy(request.getSortKey() + " " + request.getSortType());
}
PageInfo<Logtask> pageInfo = new PageInfo<>(logtaskMapper.find(request, token));
response.setResult(pageInfo.getList());
response.setTotalCount(pageInfo.getTotal());
return response;
}
}

@ -0,0 +1,100 @@
package xyz.wbsite.module.wsys.mpr;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xyz.wbsite.frame.auth.Token;
import xyz.wbsite.module.wsys.ent.Logtask;
import xyz.wbsite.module.wsys.req.LogtaskFindRequest;
import java.util.List;
/**
* LOGTASK -
*
* @author wangbing
* @since 2020-09-04
*/
@Mapper
public interface LogtaskMapper {
/**
*
*
* @param request
* @param token
* @return
*/
long insert(@Param("request") Logtask request, @Param("token") Token token);
/**
*
*
* @param list
* @param token
* @return
*/
long insertBatch(@Param("list") List<Logtask> list, @Param("token") Token token);
/**
*
*
* @param id
* @param token
* @return
*/
long delete(@Param("id") Long id, @Param("token") Token token);
/**
*
*
* @param list
* @param token
* @return
*/
long deleteBatch(@Param("list") List<Long> list, @Param("token") Token token);
/**
*
*
* @param request
* @param token
* @return
*/
long update(@Param("request") Logtask request, @Param("token") Token token);
/**
*
*
* @param request
* @param token
* @return
*/
List<Logtask> select(@Param("request") Logtask request, @Param("token") Token token);
/**
*
*
* @param request
* @param token
* @return
*/
List<Logtask> find(@Param("request") LogtaskFindRequest request, @Param("token") Token token);
/**
*
*
* @param id
* @param token
* @return
*/
Logtask getById(@Param("id") Long id, @Param("token") Token token);
/**
*
*
* @param ids
* @param token
* @return
*/
List<Logtask> getByIds(@Param("ids") Long[] ids, @Param("token") Token token);
}

@ -0,0 +1,204 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="xyz.wbsite.module.wsys.mpr.LogtaskMapper">
<sql id="table">`SYS_LOGTASK`</sql>
<sql id="entityColumnList">
`ID`,`TASK_ID`,`TASK_NAME`,`START_TIME`,`END_TIME`,`EXEC_TIME`,`EXEC_STATE`,`EXEC_RESULT`,`ROW_VERSION`,`IS_DELETED`,`CREATE_BY`,`CREATE_TIME`,`LAST_UPDATE_BY`,`LAST_UPDATE_TIME`
</sql>
<resultMap id="logtask" type="xyz.wbsite.module.wsys.ent.Logtask">
<result column="ID" jdbcType="BIGINT" property="id"/>
<result column="TASK_ID" jdbcType="VARCHAR" property="taskId"/>
<result column="TASK_NAME" jdbcType="VARCHAR" property="taskName"/>
<result column="START_TIME" jdbcType="TIMESTAMP" property="startTime"/>
<result column="END_TIME" jdbcType="TIMESTAMP" property="endTime"/>
<result column="EXEC_TIME" jdbcType="INTEGER" property="execTime"/>
<result column="EXEC_STATE" jdbcType="VARCHAR" property="execState"/>
<result column="EXEC_RESULT" jdbcType="VARCHAR" property="execResult"/>
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
</resultMap>
<insert id="insert">
INSERT INTO
<include refid="table"/>
(
<include refid="entityColumnList"/>
)
VALUES
(
${r'#'}{request.id},
${r'#'}{request.taskId,jdbcType=VARCHAR},
${r'#'}{request.taskName,jdbcType=VARCHAR},
${r'#'}{request.startTime,jdbcType=TIMESTAMP},
${r'#'}{request.endTime,jdbcType=TIMESTAMP},
${r'#'}{request.execTime,jdbcType=INTEGER},
${r'#'}{request.execState,jdbcType=VARCHAR},
${r'#'}{request.execResult,jdbcType=VARCHAR},
0,
0,
${r'#'}{token.userId,jdbcType=NUMERIC},
sysdate(),
NULL,
NULL
)
</insert>
<insert id="insertBatch">
INSERT INTO
<include refid="table"/>
(
<include refid="entityColumnList"/>
)
VALUES
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
${r'#'}{item.id},
${r'#'}{item.taskId,jdbcType=VARCHAR},
${r'#'}{item.taskName,jdbcType=VARCHAR},
${r'#'}{item.startTime,jdbcType=TIMESTAMP},
${r'#'}{item.endTime,jdbcType=TIMESTAMP},
${r'#'}{item.execTime,jdbcType=INTEGER},
${r'#'}{item.execState,jdbcType=VARCHAR},
${r'#'}{item.execResult,jdbcType=VARCHAR},
0,
0,
${r'#'}{token.userId,jdbcType=NUMERIC},
sysdate(),
NULL,
NULL
</foreach>
</insert>
<update id="delete">
UPDATE
<include refid="table"/>
SET `IS_DELETED` = 1
WHERE `IS_DELETED` = 0
AND `ID` = ${r'#'}{id}
</update>
<update id="deleteBatch">
UPDATE
<include refid="table"/>
SET `IS_DELETED` = 1
WHERE `IS_DELETED` = 0
AND `ID` IN
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
${r'#'}{item}
</foreach>
</update>
<update id="update">
UPDATE
<include refid="table"/>
SET
`TASK_ID` = ${r'#'}{request.taskId,jdbcType=VARCHAR},
`TASK_NAME` = ${r'#'}{request.taskName,jdbcType=VARCHAR},
`START_TIME` = ${r'#'}{request.startTime,jdbcType=TIMESTAMP},
`END_TIME` = ${r'#'}{request.endTime,jdbcType=TIMESTAMP},
`EXEC_TIME` = ${r'#'}{request.execTime,jdbcType=INTEGER},
`EXEC_STATE` = ${r'#'}{request.execState,jdbcType=VARCHAR},
`EXEC_RESULT` = ${r'#'}{request.execResult,jdbcType=VARCHAR},
`ROW_VERSION` = `ROW_VERSION` + 1,
`LAST_UPDATE_BY` = ${r'#'}{token.userId},
`LAST_UPDATE_TIME` = sysdate()
WHERE `IS_DELETED` = 0
AND `ID` = ${r'#'}{request.id}
AND `ROW_VERSION` = ${r'#'}{request.rowVersion}
</update>
<select id="select" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE `IS_DELETED` = 0
<if test="request.taskId != null and request.taskId != ''">
AND `TASK_ID` = ${r'#'}{request.taskId}
</if>
<if test="request.taskName != null and request.taskName != ''">
AND `TASK_NAME` = ${r'#'}{request.taskName}
</if>
<if test="request.startTime != null">
AND DATE_FORMAT(`START_TIME`,"%Y-%m-%d %T") = DATE_FORMAT(${r'#'}{request.startTime},"%Y-%m-%d %T")
</if>
<if test="request.endTime != null">
AND DATE_FORMAT(`END_TIME`,"%Y-%m-%d %T") = DATE_FORMAT(${r'#'}{request.endTime},"%Y-%m-%d %T")
</if>
<if test="request.execTime != null">
AND `EXEC_TIME` = ${r'#'}{request.execTime}
</if>
<if test="request.execState != null and request.execState != ''">
AND `EXEC_STATE` = ${r'#'}{request.execState}
</if>
</select>
<select id="find" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE `IS_DELETED` = 0
<if test="request.taskId != null and request.taskId != ''">
AND `TASK_ID` = ${r'#'}{request.taskId}
</if>
<if test="request.taskName != null and request.taskName != ''">
AND `TASK_NAME` = ${r'#'}{request.taskName}
</if>
<if test="request.startTime != null">
AND DATE_FORMAT(`START_TIME`,"%Y-%m-%d %T") = DATE_FORMAT(${r'#'}{request.startTime},"%Y-%m-%d %T")
</if>
<if test="request.endTime != null">
AND DATE_FORMAT(`END_TIME`,"%Y-%m-%d %T") = DATE_FORMAT(${r'#'}{request.endTime},"%Y-%m-%d %T")
</if>
<if test="request.execTime != null">
AND `EXEC_TIME` = ${r'#'}{request.execTime}
</if>
<if test="request.execState != null and request.execState != ''">
AND `EXEC_STATE` = ${r'#'}{request.execState}
</if>
<if test="request.startDate != null">
AND `CREATE_TIME` &gt;= ${r'#'}{request.startDate}
</if>
<if test="request.endDate != null">
AND `CREATE_TIME` &lt;= ${r'#'}{request.endDate}
</if>
</select>
<select id="search" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE `IS_DELETED` = 0
</select>
<select id="getById" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE `IS_DELETED` = 0
AND `ID` = ${r'#'}{request.id}
</select>
<select id="getByIds" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE `IS_DELETED` = 0
AND `ID` IN
<foreach collection="ids" item="item" index="index" separator="," open="(" close=")">
${r'#'}{item}
</foreach>
</select>
</mapper>

@ -0,0 +1,206 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="xyz.wbsite.module.wsys.mpr.LogtaskMapper">
<sql id="table">"SYS_LOGTASK"</sql>
<sql id="entityColumnList">
"ID","TASK_ID","TASK_NAME","START_TIME","END_TIME","EXEC_TIME","EXEC_STATE","EXEC_RESULT","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
</sql>
<resultMap id="logtask" type="xyz.wbsite.module.wsys.ent.Logtask">
<result column="ID" jdbcType="BIGINT" property="id"/>
<result column="TASK_ID" jdbcType="VARCHAR" property="taskId"/>
<result column="TASK_NAME" jdbcType="VARCHAR" property="taskName"/>
<result column="START_TIME" jdbcType="TIMESTAMP" property="startTime"/>
<result column="END_TIME" jdbcType="TIMESTAMP" property="endTime"/>
<result column="EXEC_TIME" jdbcType="INTEGER" property="execTime"/>
<result column="EXEC_STATE" jdbcType="VARCHAR" property="execState"/>
<result column="EXEC_RESULT" jdbcType="VARCHAR" property="execResult"/>
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
</resultMap>
<insert id="insert">
INSERT INTO
<include refid="table"/>
(
<include refid="entityColumnList"/>
)
VALUES
(
${r'#'}{request.id},
${r'#'}{request.taskId,jdbcType=VARCHAR},
${r'#'}{request.taskName,jdbcType=VARCHAR},
${r'#'}{request.startTime,jdbcType=TIMESTAMP},
${r'#'}{request.endTime,jdbcType=TIMESTAMP},
${r'#'}{request.execTime,jdbcType=INTEGER},
${r'#'}{request.execState,jdbcType=VARCHAR},
${r'#'}{request.execResult,jdbcType=VARCHAR},
0,
0,
${r'#'}{token.userId,jdbcType=NUMERIC},
sysdate,
NULL,
NULL
)
</insert>
<insert id="insertBatch">
INSERT INTO
<include refid="table"/>
(
<include refid="entityColumnList"/>
)
VALUES
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
(
${r'#'}{item.id},
${r'#'}{item.taskId,jdbcType=VARCHAR},
${r'#'}{item.taskName,jdbcType=VARCHAR},
${r'#'}{item.startTime,jdbcType=TIMESTAMP},
${r'#'}{item.endTime,jdbcType=TIMESTAMP},
${r'#'}{item.execTime,jdbcType=INTEGER},
${r'#'}{item.execState,jdbcType=VARCHAR},
${r'#'}{item.execResult,jdbcType=VARCHAR},
0,
0,
${r'#'}{token.userId,jdbcType=NUMERIC},
sysdate,
NULL,
NULL
)
</foreach >
</insert>
<update id="delete">
UPDATE
<include refid="table"/>
SET "IS_DELETED" = 1
WHERE "IS_DELETED" = 0
AND "ID" = ${r'#'}{id}
</update>
<update id="deleteBatch">
UPDATE
<include refid="table"/>
SET "IS_DELETED" = 1
WHERE "IS_DELETED" = 0
AND "ID" IN
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
${r'#'}{item}
</foreach>
</update>
<update id="update">
UPDATE
<include refid="table"/>
SET
"TASK_ID" = ${r'#'}{request.taskId,jdbcType=VARCHAR},
"TASK_NAME" = ${r'#'}{request.taskName,jdbcType=VARCHAR},
"START_TIME" = ${r'#'}{request.startTime,jdbcType=TIMESTAMP},
"END_TIME" = ${r'#'}{request.endTime,jdbcType=TIMESTAMP},
"EXEC_TIME" = ${r'#'}{request.execTime,jdbcType=INTEGER},
"EXEC_STATE" = ${r'#'}{request.execState,jdbcType=VARCHAR},
"EXEC_RESULT" = ${r'#'}{request.execResult,jdbcType=VARCHAR},
"ROW_VERSION" = "ROW_VERSION" + 1,
"LAST_UPDATE_BY" = ${r'#'}{token.userId},
"LAST_UPDATE_TIME" = sysdate
WHERE "IS_DELETED" = 0
AND "ID" = ${r'#'}{request.id}
AND "ROW_VERSION" = ${r'#'}{request.rowVersion}
</update>
<select id="select" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
<if test="request.taskId != null and request.taskId != ''">
AND "TASK_ID" = ${r'#'}{request.taskId}
</if>
<if test="request.taskName != null and request.taskName != ''">
AND "TASK_NAME" = ${r'#'}{request.taskName}
</if>
<if test="request.startTime != null and request.startTime != ''">
AND to_char("START_TIME",'yyyy-MM-dd HH24:mi:ss') = to_char(${r'#'}{request.startTime},'yyyy-MM-dd HH24:mi:ss')
</if>
<if test="request.endTime != null and request.endTime != ''">
AND to_char("END_TIME",'yyyy-MM-dd HH24:mi:ss') = to_char(${r'#'}{request.endTime},'yyyy-MM-dd HH24:mi:ss')
</if>
<if test="request.execTime != null">
AND "EXEC_TIME" = ${r'#'}{request.execTime}
</if>
<if test="request.execState != null and request.execState != ''">
AND "EXEC_STATE" = ${r'#'}{request.execState}
</if>
</select>
<select id="find" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
<if test="request.taskId != null and request.taskId != ''">
AND "TASK_ID" = ${r'#'}{request.taskId}
</if>
<if test="request.taskName != null and request.taskName != ''">
AND "TASK_NAME" = ${r'#'}{request.taskName}
</if>
<if test="request.startTime != null and request.startTime != ''">
AND to_char("START_TIME",'yyyy-MM-dd HH24:mi:ss') = to_char(${r'#'}{request.startTime},'yyyy-MM-dd HH24:mi:ss')
</if>
<if test="request.endTime != null and request.endTime != ''">
AND to_char("END_TIME",'yyyy-MM-dd HH24:mi:ss') = to_char(${r'#'}{request.endTime},'yyyy-MM-dd HH24:mi:ss')
</if>
<if test="request.execTime != null">
AND "EXEC_TIME" = ${r'#'}{request.execTime}
</if>
<if test="request.execState != null and request.execState != ''">
AND "EXEC_STATE" = ${r'#'}{request.execState}
</if>
<if test="request.startDate != null">
AND "CREATE_TIME" &gt;= ${r'#'}{request.startDate}
</if>
<if test="request.endDate != null">
AND "CREATE_TIME" &lt;= ${r'#'}{request.endDate}
</if>
</select>
<select id="search" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
</select>
<select id="getById" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
AND "ID" = ${r'#'}{id}
</select>
<select id="getByIds" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
AND "ID" IN
<foreach collection="ids" item="item" index="index" separator="," open="(" close=")">
${r'#'}{item}
</foreach>
</select>
</mapper>

@ -0,0 +1,198 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="xyz.wbsite.module.wsys.mpr.LogtaskMapper">
<sql id="table">"SYS_LOGTASK"</sql>
<sql id="entityColumnList">
"ID","TASK_ID","TASK_NAME","START_TIME","END_TIME","EXEC_TIME","EXEC_STATE","EXEC_RESULT","ROW_VERSION","IS_DELETED","CREATE_BY","CREATE_TIME","LAST_UPDATE_BY","LAST_UPDATE_TIME"
</sql>
<resultMap id="logtask" type="xyz.wbsite.module.wsys.ent.Logtask">
<result column="ID" jdbcType="BIGINT" property="id"/>
<result column="TASK_ID" jdbcType="VARCHAR" property="taskId"/>
<result column="TASK_NAME" jdbcType="VARCHAR" property="taskName"/>
<result column="START_TIME" jdbcType="TIMESTAMP" property="startTime"/>
<result column="END_TIME" jdbcType="TIMESTAMP" property="endTime"/>
<result column="EXEC_TIME" jdbcType="INTEGER" property="execTime"/>
<result column="EXEC_STATE" jdbcType="VARCHAR" property="execState"/>
<result column="EXEC_RESULT" jdbcType="VARCHAR" property="execResult"/>
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
<result column="CREATE_BY" jdbcType="BIGINT" property="createBy"/>
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime"/>
<result column="LAST_UPDATE_BY" jdbcType="BIGINT" property="lastUpdateBy"/>
<result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
</resultMap>
<insert id="insert">
INSERT INTO
<include refid="table"/>
(
<include refid="entityColumnList"/>
)
VALUES
(
${r'#'}{request.id},
${r'#'}{request.taskId,jdbcType=VARCHAR},
${r'#'}{request.taskName,jdbcType=VARCHAR},
${r'#'}{request.startTime,jdbcType=TIMESTAMP},
${r'#'}{request.endTime,jdbcType=TIMESTAMP},
${r'#'}{request.execTime,jdbcType=INTEGER},
${r'#'}{request.execState,jdbcType=VARCHAR},
${r'#'}{request.execResult,jdbcType=VARCHAR},
0,
0,
${r'#'}{token.userId,jdbcType=NUMERIC},
datetime('now','localtime'),
NULL,
NULL
)
</insert>
<insert id="insertBatch">
INSERT INTO
<include refid="table"/>
(
<include refid="entityColumnList"/>
)
VALUES
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
${r'#'}{item.id},
${r'#'}{item.taskId,jdbcType=VARCHAR},
${r'#'}{item.taskName,jdbcType=VARCHAR},
${r'#'}{item.startTime,jdbcType=TIMESTAMP},
${r'#'}{item.endTime,jdbcType=TIMESTAMP},
${r'#'}{item.execTime,jdbcType=INTEGER},
${r'#'}{item.execState,jdbcType=VARCHAR},
${r'#'}{item.execResult,jdbcType=VARCHAR},
0,
0,
${r'#'}{token.userId,jdbcType=NUMERIC},
datetime('now','localtime'),
NULL,
NULL
</foreach >
</insert>
<update id="delete">
UPDATE
<include refid="table"/>
SET "IS_DELETED" = 1
WHERE "IS_DELETED" = 0
AND "ID" = ${r'#'}{id}
</update>
<update id="deleteBatch">
UPDATE
<include refid="table"/>
SET "IS_DELETED" = 1
WHERE "IS_DELETED" = 0
AND "ID" IN
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
${r'#'}{item}
</foreach>
</update>
<update id="update">
UPDATE
<include refid="table"/>
SET
TASK_ID = ${r'#'}{request.taskId,jdbcType=VARCHAR},
TASK_NAME = ${r'#'}{request.taskName,jdbcType=VARCHAR},
START_TIME = ${r'#'}{request.startTime,jdbcType=TIMESTAMP},
END_TIME = ${r'#'}{request.endTime,jdbcType=TIMESTAMP},
EXEC_TIME = ${r'#'}{request.execTime,jdbcType=INTEGER},
EXEC_STATE = ${r'#'}{request.execState,jdbcType=VARCHAR},
EXEC_RESULT = ${r'#'}{request.execResult,jdbcType=VARCHAR},
"ROW_VERSION" = "ROW_VERSION" + 1,
"LAST_UPDATE_BY" = ${r'#'}{token.userId},
"LAST_UPDATE_TIME" = datetime('now','localtime')
WHERE "IS_DELETED" = 0
AND "ID" = ${r'#'}{request.id}
AND "ROW_VERSION" = ${r'#'}{request.rowVersion}
</update>
<select id="select" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
<if test="request.taskId != null and request.taskId != ''">
AND "TASK_ID" = ${r'#'}{request.taskId}
</if>
<if test="request.taskName != null and request.taskName != ''">
AND "TASK_NAME" = ${r'#'}{request.taskName}
</if>
<if test="request.startTime != null">
AND "START_TIME" = ${r'#'}{request.startTime}
</if>
<if test="request.endTime != null">
AND "END_TIME" = ${r'#'}{request.endTime}
</if>
<if test="request.execState != null and request.execState != ''">
AND "EXEC_STATE" = ${r'#'}{request.execState}
</if>
</select>
<select id="find" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
<if test="request.taskId != null and request.taskId != ''">
AND "TASK_ID" = ${r'#'}{request.taskId}
</if>
<if test="request.taskName != null and request.taskName != ''">
AND "TASK_NAME" = ${r'#'}{request.taskName}
</if>
<if test="request.startTime != null">
AND "START_TIME" = ${r'#'}{request.startTime}
</if>
<if test="request.endTime != null">
AND "END_TIME" = ${r'#'}{request.endTime}
</if>
<if test="request.execState != null and request.execState != ''">
AND "EXEC_STATE" = ${r'#'}{request.execState}
</if>
<if test="request.startDate != null">
AND strftime('%s',"CREATE_TIME", 'utc')*1000 &gt;= ${r'#'}{request.startDate}
</if>
<if test="request.endDate != null">
AND strftime('%s',"CREATE_TIME", 'utc')*1000 &lt;= ${r'#'}{request.endDate}
</if>
</select>
<select id="search" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
</select>
<select id="getById" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
AND "ID" = ${r'#'}{id}
</select>
<select id="getByIds" resultMap="logtask">
SELECT
<include refid="entityColumnList"/>
FROM
<include refid="table"/>
WHERE "IS_DELETED" = 0
AND "ID" IN
<foreach collection="ids" item="item" index="index" separator="," open="(" close=")">
${r'#'}{item}
</foreach>
</select>
</mapper>

@ -0,0 +1,119 @@
package xyz.wbsite.module.wsys.req;
import xyz.wbsite.frame.base.BaseRequest;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import xyz.wbsite.frame.validation.Select;
/**
* LogtaskCreateRequest -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
public class LogtaskCreateRequest extends BaseRequest {
/**
* ID.
*/
@NotBlank(message = "[taskId]任务ID不能为空")
@Length(min = 0, max = 50, message = "[taskId]任务ID长度不合法(0-50)")
private String taskId;
/**
* .
*/
@NotBlank(message = "[taskName]任务名称不能为空")
@Length(min = 0, max = 50, message = "[taskName]任务名称长度不合法(0-50)")
private String taskName;
/**
* .
*/
@NotNull(message = "[startTime]开始时间不能为NULL")
private Date startTime;
/**
* .
*/
@NotNull(message = "[endTime]结束时间不能为NULL")
private Date endTime;
/**
* .
*/
@NotNull(message = "[execTime]执行耗时不能为NULL")
private Integer execTime;
/**
* .
*/
@NotNull(message = "[execState]执行状态不能为NULL")
@Select({"1", "0"})
private String execState;
/**
* .
*/
@Length(min = 0, max = 500, message = "[execResult]执行结果长度不合法(0-500)")
private String execResult;
public String getTaskId() {
return this.taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public String getTaskName() {
return this.taskName;
}
public void setTaskName(String taskName) {
this.taskName = taskName;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return this.endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Integer getExecTime() {
return this.execTime;
}
public void setExecTime(Integer execTime) {
this.execTime = execTime;
}
public String getExecState() {
return this.execState;
}
public void setExecState(String execState) {
this.execState = execState;
}
public String getExecResult() {
return this.execResult;
}
public void setExecResult(String execResult) {
this.execResult = execResult;
}
}

@ -0,0 +1,28 @@
package xyz.wbsite.module.wsys.req;
import xyz.wbsite.frame.base.BaseRequest;
import javax.validation.constraints.NotNull;
/**
* LogtaskDeleteRequest -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
public class LogtaskDeleteRequest extends BaseRequest {
/**
* .
*/
@NotNull(message = "[id]主键不能为空")
private Long id;
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
}

@ -0,0 +1,120 @@
package xyz.wbsite.module.wsys.req;
import xyz.wbsite.frame.base.BaseFindRequest;
import java.util.Date;
import xyz.wbsite.frame.validation.Select;
/**
* LogtaskFindRequest -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
public class LogtaskFindRequest extends BaseFindRequest {
/**
* ID.
*/
private String taskId;
/**
* .
*/
private String taskName;
/**
* .
*/
private Date startTime;
/**
* .
*/
private Date endTime;
/**
* .
*/
private Integer execTime;
/**
* .
*/
@Select()
private String execState;
/**
* .
*/
private Date startDate;
/**
* .
*/
private Date endDate;
public String getTaskId() {
return this.taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public String getTaskName() {
return this.taskName;
}
public void setTaskName(String taskName) {
this.taskName = taskName;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return this.endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Integer getExecTime() {
return this.execTime;
}
public void setExecTime(Integer execTime) {
this.execTime = execTime;
}
public String getExecState() {
return this.execState;
}
public void setExecState(String execState) {
this.execState = execState;
}
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
}

@ -0,0 +1,26 @@
package xyz.wbsite.module.wsys.rsp;
import xyz.wbsite.frame.base.BaseResponse;
/**
* LogtaskCreateResponse -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
public class LogtaskCreateResponse extends BaseResponse {
/**
*
*/
private Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}

@ -0,0 +1,26 @@
package xyz.wbsite.module.wsys.rsp;
import xyz.wbsite.frame.base.BaseResponse;
/**
* LogtaskDeleteResponse -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
public class LogtaskDeleteResponse extends BaseResponse {
/**
*
*/
private Long result;
public Long getResult() {
return this.result;
}
public void setResult(Long result) {
this.result = result;
}
}

@ -0,0 +1,14 @@
package xyz.wbsite.module.wsys.rsp;
import xyz.wbsite.frame.base.BaseFindResponse;
import xyz.wbsite.module.wsys.ent.Logtask;
/**
* LogtaskFindResponse -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
public class LogtaskFindResponse extends BaseFindResponse<Logtask> {
}

@ -1,271 +1,289 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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"> <project author="wangbing" database="SQLite" domain="xyz.wbsite" frame="基础框架" name="wadmin" needAsync="false" needEMail="false" needMoreDB="false">
<modules> <modules>
<module name="wsys" needGenerate="false" note="系统服务" prefix="SYS_"> <module name="wsys" needGenerate="false" 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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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_NAME" fieldType="String_var50" isLike="false" 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="DICT_COMMENT" fieldType="String_var50" isLike="false" 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="50" fieldName="VERSION" fieldType="String_var50" isLike="false" 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="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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_NAME" fieldType="String_var50" isLike="false" 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="20" fieldName="KEY" fieldType="String_var" isLike="false" 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="50" fieldName="VALUE" fieldType="String_var50" isLike="false" 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="SORT" fieldType="Integer" isLike="false" 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="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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_CODE" fieldType="String_var50" isLike="false" 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="50" fieldName="RES_NAME" fieldType="String_var50" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="资源类型" fieldLength="20" fieldName="RES_TYPE" fieldType="Select" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"> <field defaultValue="NULL" fieldComment="资源类型" fieldLength="20" fieldName="RES_TYPE" fieldType="Select" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="网页" value="WEB"/> <selectItem label="网页" value="WEB"/>
<selectItem label="终端" value="API"/> <selectItem label="终端" value="API"/>
</field> </field>
<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="255" fieldName="RES_VALUE" fieldType="String_var255" isLike="false" 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_CODE" fieldType="String_var50" isLike="false" 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="50" fieldName="SUP_NAME" fieldType="String_var50" isLike="false" 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="FREE" fieldType="Boolean" isLike="false" 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="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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"> <field defaultValue="NULL" fieldComment="环境" fieldLength="20" fieldName="ACTIVE" fieldType="Select" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="开发环境" value="dev"/> <selectItem label="开发环境" value="dev"/>
<selectItem label="生产环境" value="prod"/> <selectItem label="生产环境" value="prod"/>
</field> </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="KEY" fieldType="String_var50" isLike="false" 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="NULL" fieldComment="配置值" fieldLength="50" fieldName="VALUE" fieldType="String_var50" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="50" fieldName="DEPT_CODE" fieldType="String_var50" isLike="false" 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="100" fieldName="DEPT_NAME" fieldType="String_var100" isLike="false" 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="DEPT_ALIAS" fieldType="String_var50" isLike="false" 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_CODE" fieldType="String_var50" isLike="false" 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="100" fieldName="SUP_NAME" fieldType="String_var100" isLike="false" 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="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="有效" value="true"/> <selectItem label="有效" value="true"/>
<selectItem label="无效" value="false"/> <selectItem label="无效" value="false"/>
</field> </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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="50" fieldName="TOKEN" fieldType="String_var50" isLike="false" 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="0" fieldName="USER_ID" fieldType="Long" isLike="false" 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="50" fieldName="USER_NAME" fieldType="String_var50" isLike="false" 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="false" isLike="true" isSearch="false" isSystem="false" isUnique="false"/> <field defaultValue="NULL" fieldComment="登录时间" fieldLength="0" fieldName="LOGIN_TIME" fieldType="Date" isLike="false" 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" isLike="false" 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" isLike="false" 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" isLike="false" isMust="false" 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" isLike="false" 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" isLike="false" 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" isLike="false" 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 label="网页" value="WEB"/> <selectItem label="网页" value="WEB"/>
<selectItem label="终端" value="API"/> <selectItem label="终端" value="API"/>
</field> </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="50" fieldName="TERMINAL_IP" fieldType="String_var50" isLike="false" 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="NULL" fieldComment="终端信息" fieldLength="500" fieldName="TERMINAL_INFO" fieldType="String_var500" isLike="false" 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="" fieldComment="行版本" fieldLength="19" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="1" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="19" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="255" fieldName="NAME" fieldType="String_var255" isLike="false" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="文件类型" fieldLength="20" fieldName="FILE_TYPE" fieldType="Select" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"> <field defaultValue="NULL" fieldComment="文件类型" fieldLength="20" fieldName="FILE_TYPE" fieldType="Select" isLike="false" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="图片" value="IMG"/> <selectItem label="图片" value="IMG"/>
<selectItem label="文档" value="DOC"/> <selectItem label="文档" value="DOC"/>
</field> </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="扩展属性1" fieldLength="50" fieldName="ATTRIBUTE1" fieldType="String_var50" isLike="false" 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="扩展属性2" fieldLength="50" fieldName="ATTRIBUTE2" fieldType="String_var50" isLike="false" 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="LOCATION" fieldType="String_var500" isLike="false" 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" fieldType="String_var500" isLike="false" 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="NULL" fieldComment="下载地址" fieldLength="500" fieldName="URL_DOWNLOAD" fieldType="String_var500" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="100" fieldName="USER_NAME" fieldType="String_var100" isLike="false" 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_CODE" fieldType="String_var50" isLike="false" 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_ALIAS" fieldType="String_var50" isLike="false" 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="50" fieldName="USER_PWD" fieldType="String_var50" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="用户状态" fieldLength="20" fieldName="USER_STATUS" fieldType="Select" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"> <field defaultValue="NULL" fieldComment="用户状态" fieldLength="20" fieldName="USER_STATUS" fieldType="Select" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="无效" value="0"/> <selectItem label="无效" value="0"/>
<selectItem label="有效" value="1"/> <selectItem label="有效" value="1"/>
<selectItem label="初始密码" value="2"/> <selectItem label="初始密码" value="2"/>
</field> </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="0" fieldName="DEPT_ID" fieldType="Long" isLike="false" 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="50" fieldName="DEPT_CODE" fieldType="String_var50" isLike="false" 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="100" fieldName="DEPT_NAME" fieldType="String_var100" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="true" 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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="0" fieldName="USER_ID" fieldType="Long" isLike="false" 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_CODE" fieldType="String_var50" isLike="false" 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="0" fieldName="ROLE_ID" fieldType="Long" isLike="false" 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="50" fieldName="ROLE_CODE" fieldType="String_var50" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="CODE" fieldType="String_var50" isLike="false" 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="NAME" fieldType="String_var50" isLike="false" 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="NULL" fieldComment="角色描述" fieldLength="50" fieldName="COMMENT" fieldType="String_var50" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="true" 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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="0" fieldName="ROLE_ID" fieldType="Long" isLike="false" 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="50" fieldName="ROLE_CODE" fieldType="String_var50" isLike="false" 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="0" fieldName="RES_ID" fieldType="Long" isLike="false" 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="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE" fieldType="String_var50" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="50" fieldName="TASK_NAME" fieldType="String_var50" isLike="false" 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="255" fieldName="TASK_NOTE" fieldType="String_var255" isLike="false" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="任务类型" fieldLength="20" fieldName="TASK_TYPE" fieldType="Select" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"> <field defaultValue="NULL" fieldComment="任务类型" fieldLength="20" fieldName="TASK_TYPE" fieldType="Select" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="Cron表达式" value="Cron"/> <selectItem label="Cron表达式" value="Cron"/>
<selectItem label="间隔重复(秒)" value="DelayRepeat"/> <selectItem label="间隔重复(秒)" value="DelayRepeat"/>
<selectItem label="绝对重复(秒)" value="FixRepeat"/> <selectItem label="绝对重复(秒)" value="FixRepeat"/>
</field> </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="任务类型值" fieldLength="50" fieldName="TYPE_VALUE" fieldType="String_var50" isLike="false" 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="任务SQL" fieldLength="2500" fieldName="TASK_SQL" fieldType="String_var2500" isLike="false" 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="NULL" fieldComment="是否有效" fieldLength="0" fieldName="VALID" fieldType="Boolean" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </table>
<table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" search="false" sys="true" tableComment="应用接入" tableName="VISITOR" update="true"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="true" 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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="50" fieldName="APP_NAME" fieldType="String_var50" isLike="false" 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="255" fieldName="APP_NOTE" fieldType="String_var255" isLike="false" 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="50" fieldName="APP_KEY" fieldType="String_var50" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="true"/>
<field defaultValue="NULL" fieldComment="安全码" fieldLength="32" fieldName="APP_SECRET" fieldType="String_var" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/> <field defaultValue="NULL" fieldComment="安全码" fieldLength="32" fieldName="APP_SECRET" fieldType="String_var" isLike="false" 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="VALID" fieldType="Boolean" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="true" 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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="0" fieldName="APP_ID" fieldType="Long" isLike="false" 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="50" fieldName="APP_KEY" fieldType="String_var50" isLike="false" 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="0" fieldName="RES_ID" fieldType="Long" isLike="false" 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="NULL" fieldComment="资源代码" fieldLength="50" fieldName="RES_CODE" fieldType="String_var50" isLike="false" 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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </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"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="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="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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"> <field defaultValue="NULL" fieldComment="日志类型" fieldLength="20" fieldName="LOG_TYPE" fieldType="Select" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="系统错误" value="系统错误"/> <selectItem label="系统错误" value="系统错误"/>
<selectItem label="任务错误" value="任务错误"/> <selectItem label="任务错误" value="任务错误"/>
<selectItem label="业务错误" value="业务错误"/> <selectItem label="业务错误" value="业务错误"/>
</field> </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="50" fieldName="LOG_TITLE" fieldType="String_var50" isLike="false" 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="500" fieldName="LOG_NOTE" fieldType="String_var500" isLike="false" 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"> <field defaultValue="NULL" fieldComment="日志状态" fieldLength="20" fieldName="LOG_STATE" fieldType="Select" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false">
<selectItem label="待处理" value="0"/> <selectItem label="待处理" value="0"/>
<selectItem label="处理中" value="1"/> <selectItem label="处理中" value="1"/>
<selectItem label="已处理" value="2"/> <selectItem label="已处理" value="2"/>
</field> </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="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" 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="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" 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="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" 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="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" 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_BY" fieldType="Long" isLike="false" 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"/> <field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </table>
<table ajax="false" api="false" create="true" delete="true" find="true" get="false" html="false" search="false" sys="true" tableComment="序列" tableName="SEQUENCE" update="true"> <table ajax="true" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="true" search="false" sys="true" tableComment="任务日志" tableName="LOGTASK" update="false">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/> <field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" 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="任务ID" fieldLength="50" fieldName="TASK_ID" fieldType="String_var50" isLike="false" 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="50" fieldName="TASK_NAME" fieldType="String_var50" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" 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="0" fieldName="START_TIME" fieldType="Date" isLike="false" isMust="true" 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="0" fieldName="END_TIME" fieldType="Date" isLike="false" isMust="true" 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="EXEC_TIME" fieldType="Integer" isLike="false" isMust="true" 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="NULL" fieldComment="执行状态" fieldLength="1" fieldName="EXEC_STATE" fieldType="Select" isLike="false" 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"/> <selectItem label="成功" value="1"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/> <selectItem label="失败" value="0"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/> </field>
<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="NULL" fieldComment="执行结果" fieldLength="500" fieldName="EXEC_RESULT" fieldType="String_var500" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" 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="ROW_VERSION" fieldType="Long" isLike="false" isMust="true" 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"/> <field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="19" fieldName="LAST_UPDATE_BY" fieldType="Long" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table>
<table ajax="false" api="false" create="true" delete="true" find="true" get="false" html="true" methods="[]" msvr="false" pageAdd="true" pageExp="true" pageImp="true" search="false" sys="true" tableComment="序列" tableName="SEQUENCE" update="true">
<field defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isLike="false" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="序列名称" fieldLength="50" fieldName="SEQ_NAME" fieldType="String_var50" isLike="false" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="序列备注" fieldLength="50" fieldName="SEQ_NOTE" fieldType="String_var50" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="年" fieldLength="4" fieldName="YEAR" fieldType="String_var" isLike="false" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="月" fieldLength="2" fieldName="MONTH" fieldType="String_var" isLike="false" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="日" fieldLength="2" fieldName="DATE" fieldType="String_var" isLike="false" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="NULL" fieldComment="下一个值" fieldLength="0" fieldName="NEXT_VALUE" fieldType="Integer" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="false" isUnique="false"/>
<field defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isLike="false" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
<field defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isLike="false" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isSystem="true" isUnique="false"/>
</table> </table>
</module> </module>
</modules> </modules>

@ -2,7 +2,7 @@
-- Table structure for DICT - 字典 -- Table structure for DICT - 字典
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_DICT ( CREATE TABLE IF NOT EXISTS SYS_DICT (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -17,11 +17,12 @@ CREATE TABLE IF NOT EXISTS SYS_DICT (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ---------------------------- -- ----------------------------
-- Table structure for DICT_ITEM - 字典项 -- Table structure for DICT_ITEM - 字典项
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_DICT_ITEM ( CREATE TABLE IF NOT EXISTS SYS_DICT_ITEM (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -37,11 +38,12 @@ CREATE TABLE IF NOT EXISTS SYS_DICT_ITEM (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ---------------------------- -- ----------------------------
-- Table structure for RES - 资源 -- Table structure for RES - 资源
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_RES ( CREATE TABLE IF NOT EXISTS SYS_RES (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -51,6 +53,7 @@ CREATE TABLE IF NOT EXISTS SYS_RES (
"RES_VALUE" VARCHAR(250), "RES_VALUE" VARCHAR(250),
"SUP_CODE" VARCHAR(50), "SUP_CODE" VARCHAR(50),
"SUP_NAME" VARCHAR(50), "SUP_NAME" VARCHAR(50),
"FREE" BOOLEAN,
"VALID" BOOLEAN NOT NULL, "VALID" BOOLEAN NOT NULL,
"ROW_VERSION" BIGINT NOT NULL, "ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL, "IS_DELETED" BOOLEAN NOT NULL,
@ -59,22 +62,18 @@ CREATE TABLE IF NOT EXISTS SYS_RES (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ---------------------------- -- ----------------------------
-- Table structure for USER - 用户 -- Table structure for PROFILES - 系统配置
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_USER ( CREATE TABLE IF NOT EXISTS SYS_PROFILES (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
"USER_NAME" VARCHAR(100) NOT NULL, "ACTIVE" VARCHAR(20) NOT NULL,
"USER_CODE" VARCHAR(50) NOT NULL, "KEY" VARCHAR(50) NOT NULL,
"USER_ALIAS" VARCHAR(50), "VALUE" VARCHAR(50) NOT NULL,
"USER_PWD" VARCHAR(50) NOT NULL,
"USER_STATUS" VARCHAR(20) NOT NULL,
"DEPT_ID" BIGINT,
"DEPT_CODE" VARCHAR(50),
"DEPT_NAME" VARCHAR(100),
"ROW_VERSION" BIGINT NOT NULL, "ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL, "IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL, "CREATE_BY" BIGINT NOT NULL,
@ -82,11 +81,12 @@ CREATE TABLE IF NOT EXISTS SYS_USER (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ---------------------------- -- ----------------------------
-- Table structure for DEPT - 部门 -- Table structure for DEPT - 部门
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_DEPT ( CREATE TABLE IF NOT EXISTS SYS_DEPT (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -103,29 +103,12 @@ CREATE TABLE IF NOT EXISTS SYS_DEPT (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ----------------------------
-- Table structure for ROLE - 角色
-- Target : SQLite
-- Author : wangbing
-- Date: : 2020-03-09
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_ROLE (
"ID" BIGINT PRIMARY KEY NOT NULL,
"CODE" VARCHAR(50) NOT NULL,
"NAME" VARCHAR(50) NOT NULL,
"COMMENT" VARCHAR(50),
"ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL,
"CREATE_TIME" DATETIME NOT NULL,
"LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME
);
-- ---------------------------- -- ----------------------------
-- Table structure for TOKENS - 通行证 -- Table structure for TOKENS - 通行证
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_TOKENS ( CREATE TABLE IF NOT EXISTS SYS_TOKENS (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -148,11 +131,12 @@ CREATE TABLE IF NOT EXISTS SYS_TOKENS (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ---------------------------- -- ----------------------------
-- Table structure for FILE - 文件 -- Table structure for FILE - 文件
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_FILE ( CREATE TABLE IF NOT EXISTS SYS_FILE (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -170,11 +154,36 @@ CREATE TABLE IF NOT EXISTS SYS_FILE (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ----------------------------
-- Table structure for USER - 用户
-- Target : SQLite
-- Author : wangbing
-- Date: : 2020-09-04
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_USER (
"ID" BIGINT PRIMARY KEY NOT NULL,
"USER_NAME" VARCHAR(100) NOT NULL,
"USER_CODE" VARCHAR(50) NOT NULL,
"USER_ALIAS" VARCHAR(50),
"USER_PWD" VARCHAR(50) NOT NULL,
"USER_STATUS" VARCHAR(20) NOT NULL,
"DEPT_ID" BIGINT,
"DEPT_CODE" VARCHAR(50),
"DEPT_NAME" VARCHAR(100),
"ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL,
"CREATE_TIME" DATETIME NOT NULL,
"LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME
);
-- ---------------------------- -- ----------------------------
-- Table structure for USER_ROLE - 用户角色授权 -- Table structure for USER_ROLE - 用户角色授权
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_USER_ROLE ( CREATE TABLE IF NOT EXISTS SYS_USER_ROLE (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -189,11 +198,31 @@ CREATE TABLE IF NOT EXISTS SYS_USER_ROLE (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ----------------------------
-- Table structure for ROLE - 角色
-- Target : SQLite
-- Author : wangbing
-- Date: : 2020-09-04
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_ROLE (
"ID" BIGINT PRIMARY KEY NOT NULL,
"CODE" VARCHAR(50) NOT NULL,
"NAME" VARCHAR(50) NOT NULL,
"COMMENT" VARCHAR(50),
"ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL,
"CREATE_TIME" DATETIME NOT NULL,
"LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME
);
-- ---------------------------- -- ----------------------------
-- Table structure for ROLE_RES - 角色资源关系 -- Table structure for ROLE_RES - 角色资源关系
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-03-09 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_ROLE_RES ( CREATE TABLE IF NOT EXISTS SYS_ROLE_RES (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -208,11 +237,12 @@ CREATE TABLE IF NOT EXISTS SYS_ROLE_RES (
"LAST_UPDATE_BY" BIGINT, "LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME "LAST_UPDATE_TIME" DATETIME
); );
-- ---------------------------- -- ----------------------------
-- Table structure for TASK_SQL - SQL任务 -- Table structure for TASK_SQL - SQL任务
-- Target : SQLite -- Target : SQLite
-- Author : author -- Author : wangbing
-- Date: : 2020-06-04 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_TASK_SQL ( CREATE TABLE IF NOT EXISTS SYS_TASK_SQL (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -231,19 +261,38 @@ CREATE TABLE IF NOT EXISTS SYS_TASK_SQL (
); );
-- ---------------------------- -- ----------------------------
-- Table structure for SEQUENCE - 序列 -- Table structure for VISITOR - 应用接入
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-07-08 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_SEQUENCE ( CREATE TABLE IF NOT EXISTS SYS_VISITOR (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
"SEQ_NAME" VARCHAR(50) NOT NULL, "APP_NAME" VARCHAR(50) NOT NULL,
"SEQ_NOTE" VARCHAR(50), "APP_NOTE" VARCHAR(250),
"YEAR" VARCHAR(4), "APP_KEY" VARCHAR(50) NOT NULL,
"MONTH" VARCHAR(2), "APP_SECRET" VARCHAR(32) NOT NULL,
"DATE" VARCHAR(2), "VALID" BOOLEAN NOT NULL,
"NEXT_VALUE" MEDIUMINT NOT NULL, "ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL,
"CREATE_TIME" DATETIME NOT NULL,
"LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME
);
-- ----------------------------
-- Table structure for VISITOR_RES - 应用资源关系
-- Target : SQLite
-- Author : wangbing
-- Date: : 2020-09-04
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_VISITOR_RES (
"ID" BIGINT PRIMARY KEY NOT NULL,
"APP_ID" BIGINT NOT NULL,
"APP_KEY" VARCHAR(50) NOT NULL,
"RES_ID" BIGINT NOT NULL,
"RES_CODE" VARCHAR(50) NOT NULL,
"ROW_VERSION" BIGINT NOT NULL, "ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL, "IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL, "CREATE_BY" BIGINT NOT NULL,
@ -256,7 +305,7 @@ CREATE TABLE IF NOT EXISTS SYS_SEQUENCE (
-- Table structure for LOGERR - 错误日志 -- Table structure for LOGERR - 错误日志
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-07-08 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_LOGERR ( CREATE TABLE IF NOT EXISTS SYS_LOGERR (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
@ -273,16 +322,42 @@ CREATE TABLE IF NOT EXISTS SYS_LOGERR (
); );
-- ---------------------------- -- ----------------------------
-- Table structure for PROFILES - 系统配置 -- Table structure for LOGTASK - 任务日志
-- Target : SQLite -- Target : SQLite
-- Author : wangbing -- Author : wangbing
-- Date: : 2020-07-08 -- Date: : 2020-09-04
-- ---------------------------- -- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_PROFILES ( CREATE TABLE IF NOT EXISTS SYS_LOGTASK (
"ID" BIGINT PRIMARY KEY NOT NULL, "ID" BIGINT PRIMARY KEY NOT NULL,
"ACTIVE" VARCHAR(20) NOT NULL, "TASK_ID" VARCHAR(50),
"KEY" VARCHAR(50) NOT NULL, "TASK_NAME" VARCHAR(50),
"VALUE" VARCHAR(50) NOT NULL, "START_TIME" DATETIME,
"END_TIME" DATETIME,
"EXEC_TIME" MEDIUMINT,
"EXEC_STATE" VARCHAR(1),
"EXEC_RESULT" VARCHAR(500),
"ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL,
"CREATE_TIME" DATETIME NOT NULL,
"LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME
);
-- ----------------------------
-- Table structure for SEQUENCE - 序列
-- Target : SQLite
-- Author : wangbing
-- Date: : 2020-09-04
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_SEQUENCE (
"ID" BIGINT PRIMARY KEY NOT NULL,
"SEQ_NAME" VARCHAR(50) NOT NULL,
"SEQ_NOTE" VARCHAR(50),
"YEAR" VARCHAR(4),
"MONTH" VARCHAR(2),
"DATE" VARCHAR(2),
"NEXT_VALUE" MEDIUMINT NOT NULL,
"ROW_VERSION" BIGINT NOT NULL, "ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL, "IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL, "CREATE_BY" BIGINT NOT NULL,

@ -0,0 +1,22 @@
-- ----------------------------
-- Table structure for LOGTASK - 任务日志
-- Target : SQLite
-- Author : wangbing
-- Date: : 2020-09-04
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_LOGTASK (
"ID" BIGINT PRIMARY KEY NOT NULL,
"TASK_ID" VARCHAR(50),
"TASK_NAME" VARCHAR(50),
"START_TIME" DATETIME,
"END_TIME" DATETIME,
"EXEC_TIME" MEDIUMINT,
"EXEC_STATE" VARCHAR(1),
"EXEC_RESULT" VARCHAR(500),
"ROW_VERSION" BIGINT NOT NULL,
"IS_DELETED" BOOLEAN NOT NULL,
"CREATE_BY" BIGINT NOT NULL,
"CREATE_TIME" DATETIME NOT NULL,
"LAST_UPDATE_BY" BIGINT,
"LAST_UPDATE_TIME" DATETIME
);

@ -56,6 +56,9 @@
${print('<#if token.hasRes("MNT_SCHEDULE")>')} ${print('<#if token.hasRes("MNT_SCHEDULE")>')}
<el-menu-item index="${uuid()}" @click="addTab({title: '调度监控', name: 'schedule', url: '${r'${context}'}/wsys/schedule.htm'})">调度监控</el-menu-item> <el-menu-item index="${uuid()}" @click="addTab({title: '调度监控', name: 'schedule', url: '${r'${context}'}/wsys/schedule.htm'})">调度监控</el-menu-item>
${print('</#if>')} ${print('</#if>')}
${print('<#if token.hasRes("MNT_LOGTASK")>')}
<el-menu-item index="${uuid()}" @click="addTab({title: '调度日志', name: 'logtask', url: '${r'${context}'}/wsys/logtask.htm'})">调度日志</el-menu-item>
${print('</#if>')}
${print('<#if token.hasRes("MNT_LOGERR")>')} ${print('<#if token.hasRes("MNT_LOGERR")>')}
<el-menu-item index="${uuid()}" @click="addTab({title: '错误日志', name: 'logerr', url: '${r'${context}'}/wsys/logerr.htm'})">错误日志</el-menu-item> <el-menu-item index="${uuid()}" @click="addTab({title: '错误日志', name: 'logerr', url: '${r'${context}'}/wsys/logerr.htm'})">错误日志</el-menu-item>
${print('</#if>')} ${print('</#if>')}

@ -0,0 +1,231 @@
<div id="app" v-cloak>
<el-card class="box-card">
<el-form class="search" :inline="true" :model="vm" ref="vm" label-position="right" label-width="90px">
<el-form-item label="任务名称" prop="taskName">
<el-input v-model="vm.taskName" clearable size="mini" placeholder="请输入任务名称"></el-input>
</el-form-item>
<el-form-item label="开始时间" prop="startTime">
<el-date-picker
size="mini"
v-model="vm.startTime"
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间" prop="endTime">
<el-date-picker
size="mini"
v-model="vm.endTime"
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
<el-form-item label="执行耗时" prop="execTime">
<el-input v-model="vm.execTime" type="number" clearable size="mini" placeholder="请输入执行耗时" min="-2147483648" max="2147483647" step="1"></el-input>
</el-form-item>
<el-form-item label="执行状态" prop="execState">
<el-select v-model="vm.execState" clearable size="mini" filterable placeholder="请输入执行状态">
<el-option key="1" label="成功" value="1"></el-option>
<el-option key="0" label="失败" value="0"></el-option>
</el-select>
</el-select>
</el-form-item>
<el-form-item label="开始日期" prop="startDate">
<el-date-picker v-model="vm.startDate" clearable size="mini" placeholder="请输入开始日期" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item>
<el-form-item label="结束日期" prop="endDate">
<el-date-picker v-model="vm.endDate" clearable size="mini" placeholder="请输入结束日期" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" size="mini" icon="el-icon-search" @click="onSearch">搜索</el-button>
<el-button type="warning" size="mini" icon="el-icon-refresh-left" @click="onReset('vm')">重置</el-button>
</el-form-item>
</el-form>
</el-card>
<el-card class="box-card">
<el-row>
<el-col :span="12">
<el-button type="warning" size="mini" icon="el-icon-download" @click="onExport">导出</el-button>
</el-col>
<el-col :span="12">
<el-button-group style="float: right;">
<el-tooltip effect="dark" content="Excel模板下载" placement="bottom">
<el-button size="mini" icon="el-icon-date" @click="onTemplate"></el-button>
</el-tooltip>
<el-tooltip effect="dark" content="Excel导入" placement="bottom">
<el-button size="mini" icon="el-icon-upload2" @click="onImport"></el-button>
</el-tooltip>
<el-tooltip effect="dark" content="批量删除" placement="bottom">
<el-button size="mini" icon="el-icon-delete" @click="onBitchDelete"></el-button>
</el-tooltip>
<el-tooltip effect="dark" content="刷新" placement="bottom">
<el-button size="mini" icon="el-icon-refresh" @click="onFind"></el-button>
</el-tooltip>
</el-button-group>
</el-col>
</el-row>
<el-table
class="data"
@selection-change="onSelectionChange"
empty-text="无数据"
:stripe="true"
:data="result"
size="mini">
<el-table-column
align="center"
width="45"
type="selection">
</el-table-column>
<el-table-column
align="center"
width="140"
prop="id"
label="主键">
</el-table-column>
<el-table-column
align="center"
min-width="180"
prop="taskId"
label="任务ID">
</el-table-column>
<el-table-column
align="center"
min-width="180"
prop="taskName"
label="任务名称">
</el-table-column>
<el-table-column
align="center"
min-width="140"
prop="startTime"
label="开始时间">
</el-table-column>
<el-table-column
align="center"
min-width="140"
prop="endTime"
label="结束时间">
</el-table-column>
<el-table-column
align="center"
min-width="80"
prop="execTime"
label="执行耗时">
</el-table-column>
<el-table-column
align="center"
min-width="100"
prop="execState"
label="执行状态">
<template slot-scope="scope">
</template>
</el-table-column>
<el-table-column
align="center"
min-width="180"
prop="execResult"
label="执行结果">
</el-table-column>
<el-table-column
align="center"
min-width="140"
prop="createTime"
label="创建时间">
</el-table-column>
<el-table-column
align="center"
width="120"
fixed="right"
label="操作">
<template slot-scope="scope">
<wb-dropdown :arg="scope.row">
<wb-dropdown-item value="编辑" icon="el-icon-edit" @click="onEdit"></wb-dropdown-item>
<wb-dropdown-item value="删除" icon="el-icon-delete" @click="onDelete"></wb-dropdown-item>
</wb-dropdown>
</template>
</el-table-column>
</el-table>
<el-pagination
background
v-if="vm.totalCount > vm.pageSize"
style="margin-top: 10px"
@current-change="onPageChange"
@size-change="onPageSizeChange"
:current-page="vm.pageNumber"
:page-size="vm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="vm.totalCount">
</el-pagination>
</el-card>
</div>
<script>
var app = new Vue({
mixins: [mixin],
el: "#app",
data: {
module: 'wsys',
target: 'logtask',
vm: {//条件及分页参数
taskName: null,
startTime: null,
endTime: null,
execTime: null,
execState: null,
startDate: null,
endDate: null,
pageNumber: 1,
pageSize: 10,
totalCount: 0,
sortKey:'CREATE_TIME',
sortType:'DESC'
}
},
methods: {
onEdit: function (item) {
this.form.formTitle = "任务日志编辑";
this.form.formShow = true;
this.form.id = item.id;
this.form.taskId = item.taskId;
this.form.taskName = item.taskName;
this.form.startTime = item.startTime;
this.form.endTime = item.endTime;
this.form.execTime = item.execTime;
this.form.execState = item.execState;
this.form.execResult = item.execResult;
this.form.rowVersion = item.rowVersion;
},
onDelete: function (item) {
this.$confirm('将删除该项, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function () {
new Ajax("wsys", "logtask").delete({id: item.id}, function (response) {
if (response.errors.length > 0) {
nav.e(response.errors[0].message);
} else {
nav.s("删除成功.");
this.onFind();
}
}.bind(this))
}.bind(this)).catch(function (action) {
});
}
},
mounted: function () {
this.onFind();
}
})
</script>

@ -160,11 +160,20 @@ public class DataInit {
forDev.add(createRes("02020101", "调度监控查询", "WEB", "/ajax/wsys/schedule/find")); forDev.add(createRes("02020101", "调度监控查询", "WEB", "/ajax/wsys/schedule/find"));
forDev.add(createRes("02020102", "调度监控启动", "WEB", "/ajax/wsys/schedule/start")); forDev.add(createRes("02020102", "调度监控启动", "WEB", "/ajax/wsys/schedule/start"));
forDev.add(createRes("02020103", "调度监控暂停", "WEB", "/ajax/wsys/schedule/stop")); forDev.add(createRes("02020103", "调度监控暂停", "WEB", "/ajax/wsys/schedule/stop"));
forDev.add(createRes("0203", "错误日志菜单", "WEB", "MNT_LOGERR")); forDev.add(createRes("0203", "任务日志管理菜单", "WEB", "MNT_LOGTASK"));
forDev.add(createRes("020301", "错误日志管理页", "WEB", "/wsys/logerr.htm")); forDev.add(createRes("020301", "任务日志管理页", "WEB", "/wsys/logtask.htm"));
forDev.add(createRes("02030101", "错误日志删除", "WEB", "/ajax/wsys/logerr/delete")); forDev.add(createRes("02030101", "任务日志模板", "WEB", "/ajax/wsys/logtask/template"));
forDev.add(createRes("02030102", "错误日志更新", "WEB", "/ajax/wsys/logerr/update")); forDev.add(createRes("02030102", "任务日志导入", "WEB", "/ajax/wsys/logtask/imports"));
forDev.add(createRes("02030103", "错误日志查询", "WEB", "/ajax/wsys/logerr/find")); forDev.add(createRes("02030103", "任务日志导出", "WEB", "/ajax/wsys/logtask/exports"));
forDev.add(createRes("02030104", "任务日志新增", "WEB", "/ajax/wsys/logtask/create"));
forDev.add(createRes("02030105", "任务日志删除", "WEB", "/ajax/wsys/logtask/delete"));
forDev.add(createRes("02030106", "任务日志更新", "WEB", "/ajax/wsys/logtask/update"));
forDev.add(createRes("02030107", "任务日志查询", "WEB", "/ajax/wsys/logtask/find"));
forDev.add(createRes("0204", "错误日志菜单", "WEB", "MNT_LOGERR"));
forDev.add(createRes("020401", "错误日志管理页", "WEB", "/wsys/logerr.htm"));
forDev.add(createRes("02040101", "错误日志删除", "WEB", "/ajax/wsys/logerr/delete"));
forDev.add(createRes("02040102", "错误日志更新", "WEB", "/ajax/wsys/logerr/update"));
forDev.add(createRes("02040103", "错误日志查询", "WEB", "/ajax/wsys/logerr/find"));
} }
List<Res> forMgr = new ArrayList<>(); List<Res> forMgr = new ArrayList<>();

@ -0,0 +1,95 @@
package xyz.wbsite.wsys;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import xyz.wbsite.frame.auth.Token;
import xyz.wbsite.module.wsys.mgr.LogtaskManager;
import xyz.wbsite.module.wsys.req.LogtaskCreateRequest;
import xyz.wbsite.module.wsys.req.LogtaskDeleteRequest;
import xyz.wbsite.module.wsys.req.LogtaskFindRequest;
import xyz.wbsite.module.wsys.rsp.LogtaskCreateResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskDeleteResponse;
import xyz.wbsite.module.wsys.rsp.LogtaskFindResponse;
import static junit.framework.TestCase.assertTrue;
/**
* LogtaskTest - -
*
* @author wangbing
* @version 0.0.1
* @since 2020-09-04
*/
@RunWith(SpringRunner.class)
@SpringBootTest
@Transactional
public class LogtaskTest {
@Autowired
private Token token;
@Autowired
private LogtaskManager logtaskManager;
@Test
public void testCreate() {
LogtaskCreateRequest request = new LogtaskCreateRequest();
request.setTaskId("任务ID");
request.setTaskName("任务名称");
request.setStartTime(new Date());
request.setEndTime(new Date());
request.setExecTime(1);
request.setExecState("value");
request.setExecResult("执行结果");
LogtaskCreateResponse response = logtaskManager.create(request,token);
assertTrue(!response.hasError());
}
@Test
public void testDelete() {
//创建数据
LogtaskCreateRequest createRequest = new LogtaskCreateRequest();
createRequest.setTaskId("任务ID");
createRequest.setTaskName("任务名称");
createRequest.setStartTime(new Date());
createRequest.setEndTime(new Date());
createRequest.setExecTime(1);
createRequest.setExecState("value");
createRequest.setExecResult("执行结果");
LogtaskCreateResponse createResponse = logtaskManager.create(createRequest,token);
assertTrue(!createResponse.hasError() && createResponse.getId() > 0);
//删除数据
LogtaskDeleteRequest request = new LogtaskDeleteRequest();
request.setId(createResponse.getId());
LogtaskDeleteResponse response = logtaskManager.delete(request,token);
assertTrue(!response.hasError() && response.getResult() == 1L);
}
@Test
public void testFind() {
LogtaskFindRequest request = new LogtaskFindRequest();
request.setTaskId("任务ID");
request.setTaskName("任务名称");
request.setStartTime(new Date());
request.setEndTime(new Date());
request.setExecTime(1);
request.setExecState("value");
LogtaskFindResponse response = logtaskManager.find(request,token);
assertTrue(!response.hasError());
}
}
Loading…
Cancel
Save

Powered by TurnKey Linux.