package com.vci.ubcs.omd.constant; import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; import java.util.HashMap; import java.util.Map; /** * Description: * * @author LiHang * @date 2023/4/27 */ public class BtmTypeFieldConstant { public static Map USER_TABLE_COMPATIBILITY_BTM_MAP; public static Map USER_TABLE_COMPATIBILITY_FIELD_MAP; public static final Boolean DEFAULT_QUERY_SECRET; public static final Boolean DEFAULT_QUERY_DATA_RIGHT; public static final Map REVISION_MANAGE_FIELD_MAP; public static final Map BASIC_FIELD_MAP; public static final Map BASE_MODEL_COMPATIBILITY_MAP; public static final Map LIFECYCLE_MANAGE_FIELD_MAP; public static final Map MASTERDATA_FIELD_MAP; public static final Map SECRET_MANAGE_FIELD_MAP; public static final Map LINK_TYPE_FIELD_MAP; static { USER_TABLE_COMPATIBILITY_BTM_MAP = new HashMap(); USER_TABLE_COMPATIBILITY_FIELD_MAP = new HashMap(); DEFAULT_QUERY_SECRET = true; DEFAULT_QUERY_DATA_RIGHT = 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", "拥有者"); this.put("tenant_id","租户"); // TODO:因为主数据查询代码中默认就把这些字段给带上了,所以也得加在默认属性里面 this.put("lastr", "是否最新版本"); this.put("firstr", "是否最老版本"); this.put("lastv", "是否最新版次"); this.put("firstv", "是否最老版次"); } }; BASE_MODEL_COMPATIBILITY_MAP = new HashMap() { { this.put("lastr", "是否最新版本"); this.put("firstr", "是否最老版本"); this.put("lastv", "是否最新版次"); this.put("firstv", "是否最老版次"); } }; MASTERDATA_FIELD_MAP = new HashMap() { { this.put("codeclsfid","分类的主键字段"); this.put("codeclsfpath", "分类全路径的字段"); this.put("codetemplateoid", "模板的主键字段"); } }; 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", "时间戳"); } }; } }