package com.vci.ubcs.starter.web.util;
|
|
import com.vci.ubcs.starter.web.enumpck.VciFieldTypeEnum;
|
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
public class VciQueryWrapperForDO {
|
|
public static boolean USER_TABLE_COMPATIBILITY = false;
|
public static String DATABASE_PLATFORM;
|
public static Map<String, String> USER_TABLE_COMPATIBILITY_BTM_MAP;
|
public static Map<String, String> USER_TABLE_COMPATIBILITY_FIELD_MAP;
|
public static final String USER_TABLE_COMPATIBILITY_FIELD_SEP = "${vcicomplibitysep}";
|
private Map<String, String> conditionMap;
|
private Map<String, String> customerSqlMap;
|
private String oidFieldName;
|
private static final String SPACE = " ";
|
public static final String QUERY_FIELD_SECRET = "${vciQuerySecret}";
|
public static final Boolean DEFAULT_QUERY_SECRET;
|
public static final Boolean DEFAULT_QUERY_DATARIGHT;
|
public static final String QUERY_FIELD_DATARIGHT = "${vciQueryDataRight}";
|
// private VciQueryWrapperOption queryWrapperOption;
|
private Class<?> doClass;
|
// private PageHelper pageHelper;
|
private Map<String, String> allFieldNameMap;
|
private List<String> xmlTypeFieldList;
|
private boolean distinct;
|
public static final Map<String, String> REVISION_MANAGE_FIELD_MAP;
|
public static final Map<String, String> BASIC_FIELD_MAP;
|
public static final Map<String, String> BASE_MODEL_COMPATIBILITY_MAP;
|
public static final String OID_FIELD = "oid";
|
public static final String ID_FIELD = "id";
|
public static final String LC_STATUS_FIELD = "lcstatus";
|
public static final String LC_STATUS_FIELD_TEXT = "lcStatus_text";
|
public static final Map<String, String> LIFECYCLE_MANAGE_FIELD_MAP;
|
public static final Map<String, String> SECRET_MANAGE_FIELD_MAP;
|
public static final Map<String, String> LINK_TYPE_FIELD_MAP;
|
private Map<String, VciFieldTypeEnum> allFieldTypeMap;
|
// private List<VciReferFieldInfo> referFieldInfoList;
|
private Map<String, String> useReferMap;
|
private Map<String, String> enumFieldMap;
|
private String linkTableSql;
|
private String selectFieldSql;
|
private String selectPrefixForPage;
|
private String whereSql;
|
private String orderSql;
|
private String whereSubfixForPage;
|
private Map<String, String> valuesMap;
|
private String tableNick;
|
private Map<String, String> extendFieldMap;
|
private static final String DATETIME_FORMAT = "yyyy-mm-dd hh24:mi:ss";
|
private static final String DATE_FORMAT = "yyyy-mm-dd";
|
|
|
static {
|
// DATABASE_PLATFORM = DataBaseEnum.ORACLE.getValue();
|
USER_TABLE_COMPATIBILITY_BTM_MAP = new HashMap();
|
USER_TABLE_COMPATIBILITY_FIELD_MAP = new HashMap();
|
DEFAULT_QUERY_SECRET = true;
|
DEFAULT_QUERY_DATARIGHT = false;
|
REVISION_MANAGE_FIELD_MAP = new HashMap() {
|
{
|
this.put("nameoid", "对象主键");
|
this.put("revisionoid", "版本主键");
|
this.put("lastr", "是否最新版本");
|
this.put("firstr", "是否最老版本");
|
this.put("lastv", "是否最新版次");
|
this.put("firstv", "是否最老版次");
|
this.put("revisionrule", "版本规则");
|
this.put("revisionseq", "版本排序号");
|
this.put("revisionvalue", "版本值");
|
this.put("versionrule", "版次规则");
|
this.put("versionseq", "版次排序号");
|
this.put("versionvalue", "版次值");
|
this.put("checkinby", "签入人");
|
this.put("checkintime", "签入时间");
|
this.put("checkoutby", "签出人");
|
this.put("checkouttime", "签出时间");
|
this.put("copyfromversion", "拷贝版本来源");
|
}
|
};
|
BASIC_FIELD_MAP = new HashMap() {
|
{
|
this.put("oid", "主键");
|
this.put("btmname", "业务类型的名称");
|
this.put("id", "编号");
|
this.put("name", "名称");
|
this.put("description", "描述");
|
this.put("creator", "创建人");
|
this.put("createtime", "创建时间");
|
this.put("lastmodifier", "最后时间人");
|
this.put("lastmodifytime", "最后修改时间");
|
this.put("ts", "时间戳");
|
this.put("owner", "拥有者");
|
}
|
};
|
BASE_MODEL_COMPATIBILITY_MAP = new HashMap() {
|
{
|
this.put("lastr", "lastr");
|
this.put("firstr", "firstr");
|
this.put("lastv", "lastv");
|
this.put("firstv", "firstv");
|
}
|
};
|
LIFECYCLE_MANAGE_FIELD_MAP = new HashMap() {
|
{
|
this.put("lcstatus", "生命周期值");
|
}
|
};
|
SECRET_MANAGE_FIELD_MAP = new HashMap() {
|
{
|
this.put("secretgrade", "密级值");
|
}
|
};
|
LINK_TYPE_FIELD_MAP = new HashMap() {
|
{
|
this.put("oid", "主键");
|
this.put("creator", "创建人");
|
this.put("createtime", "创建时间");
|
this.put("lastmodifier", "最后时间人");
|
this.put("lastmodifytime", "最后修改时间");
|
this.put("f_oid", "from端主键");
|
this.put("f_revisionoid", "from端版本主键");
|
this.put("f_nameoid", "from端对象主键");
|
this.put("f_btmname", "from端业务类型");
|
this.put("t_oid", "to端主键");
|
this.put("t_revisionoid", "to端版本主键");
|
this.put("t_nameoid", "to端对象主键");
|
this.put("t_btmname", "to端业务类型");
|
this.put("ts", "时间戳");
|
}
|
};
|
}
|
}
|