com.fastchar.systemtool.entity.FinalLogSeleniumEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-systemtool Show documentation
Show all versions of fastchar-systemtool Show documentation
FastChar-SystemTool is a FastChar-ExtJs plugin.
package com.fastchar.systemtool.entity;
import com.fastchar.core.FastChar;
import com.fastchar.extjs.FastExtHelper;
import com.fastchar.extjs.core.FastExtEntity;
import com.fastchar.database.FastPage;
import com.fastchar.database.info.FastSqlInfo;
import com.fastchar.utils.FastDateUtils;
import java.text.SimpleDateFormat;
import java.util.*;
import com.fastchar.utils.FastStringUtils;
import com.fastchar.utils.FastNumberUtils;
/**
* 系统HttpDriver日志数据库实体类
*
* @author Janesen
* @date 2021/10/19 16:39
*/
public class FinalLogSeleniumEntity extends FastExtEntity {
private static final long serialVersionUID = 1L;
public static FinalLogSeleniumEntity dao() {
return FastChar.getOverrides().singleInstance(FinalLogSeleniumEntity.class);
}
public static FinalLogSeleniumEntity newInstance() {
return FastChar.getOverrides().newInstance(FinalLogSeleniumEntity.class);
}
@Override
public String getTableName() {
return "final_log_selenium";
}
@Override
public String getTableDetails() {
return "系统WebDriver日志";
}
@Override
public String getEntityCode() {
return this.getClass().getSimpleName();
}
@Override
public FastPage showList(int page, int pageSize) {
String sqlStr = "select t.*" +
" from final_log_selenium as t" +
" ";
FastSqlInfo sqlInfo = toSelectSql(sqlStr);
return selectBySql(page, pageSize, sqlInfo.getSql(), sqlInfo.toParams());
}
@Override
public void setDefaultValue() {
set("logDateTime", FastDateUtils.getDateString());
}
@Override
public void convertValue() {
super.convertValue();
}
/**
* 获得数据详情
*/
public FinalLogSeleniumEntity getDetails(int logId) {
List linkColumns = new ArrayList<>();
linkColumns.add("t.*");
String sqlStr = "select " + FastStringUtils.join(linkColumns, ",") + " from final_log_selenium as t" +
" " +
" where t.logId = ? ";
FinalLogSeleniumEntity entity = selectFirstBySql(sqlStr, logId);
if (entity != null) {
//to-do something
}
return entity;
}
/**
* 获得本实体列表集合
*
* @return 分页数据
*/
public FastPage getList(int page, int pageSize, Map where, Map sort) {
List linkColumns = new ArrayList<>();
linkColumns.add("t.*");
StringBuilder sqlStr = new StringBuilder("select " + FastStringUtils.join(linkColumns, ",") + " from final_log_selenium as t" +
" " +
" where 1=1 ");
List