Ver Fonte

工作台表结构

huangxingxing há 3 meses atrás
pai
commit
f68dbea885

+ 11 - 0
dbscript/init/generate/01-appcodeInit.sql

@@ -16,6 +16,17 @@ INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_D
 -- 实名认证类型
 INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('certificationType1','service','certificationType', 'person', '0','个人',1);
 INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('certificationType2','service','certificationType', 'company', '1','企业',2);
+-- 组件父类
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType1','service','ComFType', 'fx', '0','飞行环境组件',1);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType2','service','ComFType', 'gl', '1','管路组件',2);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType3','service','ComFType', 'hz', '2','换热组件',3);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType4','service','ComFType', 'fm', '3','阀门组件',4);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType5','service','ComFType', 'qd', '4','驱动组件',5);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType6','service','ComFType', 'kz', '5','控制组件',6);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType7','service','ComFType', 'ry', '6','燃油组件',7);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType8','service','ComFType', 'xt', '7','系统组件',8);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType9','service','ComFType', 'gt', '8','其他组件',9);
+INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('ComFType10','service','ComFType', 'zdy', '9','用户自定义组件',10);
 -- 企业类型
 INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('companyType1','service','companyType', 'limitedLiabilityCompanies', '0','有限责任公司',1);
 INSERT INTO SYS_APPCODE(CODE_ID, SYSID, CODE_TYPE, CODE_NAME, CODE_VALUE, CODE_DESC, CODE_ORDER)VALUES ('companyType2','service','companyType', 'jointStockCompanies', '1','股份有限公司',2);

+ 74 - 0
definitionsrc/com/miniframe/generate/appcode/ComFType.java

@@ -0,0 +1,74 @@
+package com.miniframe.generate.appcode;
+
+/**
+ * 组件父类
+ */
+public enum ComFType {
+
+	fx("fx", "0", "飞行环境组件"),
+	gl("gl", "1", "管路组件"),
+	hz("hz", "2", "换热组件"),
+	fm("fm", "3", "阀门组件"),
+	qd("qd", "4", "驱动组件"),
+	kz("kz", "5", "控制组件"),
+	ry("ry", "6", "燃油组件"),
+	xt("xt", "7", "系统组件"),
+	gt("gt", "8", "其他组件"),
+	zdy("zdy", "9", "用户自定义组件");
+
+	// 成员变量
+	private String index; // value
+	private String name; // key
+	private String desc; // 描述
+	
+	/**
+	 * 构造方法
+	 * @param name
+	 * @param index
+	 * @param desc
+	 */
+	private ComFType(String name, String index, String desc) {
+		this.name = name;
+		this.index = index;
+		this.desc = desc;
+	}
+
+	/**
+	 * 通过index获取对象
+	 * 
+	 * @param index
+	 * @return
+	 */
+	public static ComFType getComFType(String index) {
+		for (ComFType c : ComFType.values()) {
+			if (c.getIndex().equals(index)) {
+				return c;
+			}
+		}
+		return null;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public String getIndex() {
+		return index;
+	}
+
+	public void setIndex(String index) {
+		this.index = index;
+	}
+
+	public String getDesc() {
+		return desc;
+	}
+
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+}

+ 0 - 23
modelsrc/com/miniframe/model/es/EsAtt.java

@@ -30,11 +30,6 @@ public class EsAtt extends MiniserviceBaseModel implements Serializable {
      */
     private String code;
 
-    /**
-     * 类型
-     */
-    private Short type;
-
     /**
      * 单位类型
      */
@@ -150,24 +145,6 @@ public class EsAtt extends MiniserviceBaseModel implements Serializable {
         this.code = code == null ? null : code.trim();
     }
 
-    /**
-     * 获取类型
-     *
-     * @return type - 类型
-     */
-    public Short getType() {
-        return type;
-    }
-
-    /**
-     * 设置类型
-     *
-     * @param type 类型
-     */
-    public void setType(Short type) {
-        this.type = type;
-    }
-
     /**
      * 获取单位类型
      *

+ 0 - 60
modelsrc/com/miniframe/model/es/EsAttSQLBuilder.java

@@ -385,66 +385,6 @@ public class EsAttSQLBuilder {
             return (Criteria) this;
         }
 
-        public Criteria andTypeIsNull() {
-            addCriterion("type is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeIsNotNull() {
-            addCriterion("type is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeEqualTo(Short value) {
-            addCriterion("type =", value, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeNotEqualTo(Short value) {
-            addCriterion("type <>", value, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeGreaterThan(Short value) {
-            addCriterion("type >", value, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeGreaterThanOrEqualTo(Short value) {
-            addCriterion("type >=", value, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeLessThan(Short value) {
-            addCriterion("type <", value, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeLessThanOrEqualTo(Short value) {
-            addCriterion("type <=", value, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeIn(List<Short> values) {
-            addCriterion("type in", values, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeNotIn(List<Short> values) {
-            addCriterion("type not in", values, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeBetween(Short value1, Short value2) {
-            addCriterion("type between", value1, value2, "type");
-            return (Criteria) this;
-        }
-
-        public Criteria andTypeNotBetween(Short value1, Short value2) {
-            addCriterion("type not between", value1, value2, "type");
-            return (Criteria) this;
-        }
-
         public Criteria andUnitTypeIsNull() {
             addCriterion("unit_type is null");
             return (Criteria) this;

+ 23 - 0
modelsrc/com/miniframe/model/es/EsCom.java

@@ -69,6 +69,11 @@ public class EsCom extends MiniserviceBaseModel implements Serializable {
      */
     private String type;
 
+    /**
+     * 组件编码 Pipe
+     */
+    private String code;
+
     private static final long serialVersionUID = 1L;
 
     /**
@@ -276,4 +281,22 @@ public class EsCom extends MiniserviceBaseModel implements Serializable {
     public void setType(String type) {
         this.type = type == null ? null : type.trim();
     }
+
+    /**
+     * 获取组件编码 Pipe
+     *
+     * @return code - 组件编码 Pipe
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * 设置组件编码 Pipe
+     *
+     * @param code 组件编码 Pipe
+     */
+    public void setCode(String code) {
+        this.code = code == null ? null : code.trim();
+    }
 }

+ 70 - 0
modelsrc/com/miniframe/model/es/EsComSQLBuilder.java

@@ -834,6 +834,76 @@ public class EsComSQLBuilder {
             addCriterion("type not between", value1, value2, "type");
             return (Criteria) this;
         }
+
+        public Criteria andCodeIsNull() {
+            addCriterion("code is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeIsNotNull() {
+            addCriterion("code is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeEqualTo(String value) {
+            addCriterion("code =", value, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeNotEqualTo(String value) {
+            addCriterion("code <>", value, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeGreaterThan(String value) {
+            addCriterion("code >", value, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeGreaterThanOrEqualTo(String value) {
+            addCriterion("code >=", value, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeLessThan(String value) {
+            addCriterion("code <", value, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeLessThanOrEqualTo(String value) {
+            addCriterion("code <=", value, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeLike(String value) {
+            addCriterion("code like", value, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeNotLike(String value) {
+            addCriterion("code not like", value, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeIn(List<String> values) {
+            addCriterion("code in", values, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeNotIn(List<String> values) {
+            addCriterion("code not in", values, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeBetween(String value1, String value2) {
+            addCriterion("code between", value1, value2, "code");
+            return (Criteria) this;
+        }
+
+        public Criteria andCodeNotBetween(String value1, String value2) {
+            addCriterion("code not between", value1, value2, "code");
+            return (Criteria) this;
+        }
     }
 
     public static class Criteria extends GeneratedCriteria {

+ 1 - 1
modelsrc/com/miniframe/model/es/dbconfig/MapperConfig-es.xml

@@ -5,7 +5,7 @@
     This file is generated by MyBatis Generator.
     This file is the shell of a Mapper Config file - in many cases you will need to add
       to this file before it is usable by MyBatis.
-    This file was generated on Fri May 23 09:47:12 CST 2025.
+    This file was generated on Fri May 23 10:06:10 CST 2025.
   -->
   <mappers>
     <mapper resource="com/miniframe/model/es/xml/EsProMapper.xml" />

+ 1 - 1
modelsrc/com/miniframe/model/system/dbconfig/MapperConfig-system.xml

@@ -5,7 +5,7 @@
     This file is generated by MyBatis Generator.
     This file is the shell of a Mapper Config file - in many cases you will need to add
       to this file before it is usable by MyBatis.
-    This file was generated on Fri May 23 09:47:13 CST 2025.
+    This file was generated on Fri May 23 10:06:10 CST 2025.
   -->
   <mappers>
     <mapper resource="com/miniframe/model/system/xml/SysAppcodeMapper.xml" />

+ 11 - 0
系统设计/数据定义/标准数据/ComFType(组件父类).csv

@@ -0,0 +1,11 @@
+序号,代码编号,代码值,代码名称
+"0","fx","0","飞行环境组件"
+"1","gl","1","管路组件"
+"2","hz","2","换热组件"
+"3","fm","3","阀门组件"
+"4","qd","4","驱动组件"
+"5","kz","5","控制组件"
+"6","ry","6","燃油组件"
+"7","xt","7","系统组件"
+"8","gt","8","其他组件"
+"9","zdy","9","用户自定义组件"

+ 11 - 0
系统设计/数据定义/标准数据/attLengthType(长度单位).csv

@@ -0,0 +1,11 @@
+序号,代码编号,代码值,代码名称
+"0","fx","0","飞行环境组件"
+"1","gl","1","管路组件"
+"2","hz","2","换热组件"
+"3","fm","3","阀门组件"
+"4","qd","4","驱动组件"
+"5","kz","5","控制组件"
+"6","ry","6","燃油组件"
+"7","xt","7","系统组件"
+"8","gt","8","其他组件"
+"9","zdy","9","用户自定义组件"

+ 11 - 0
系统设计/数据定义/标准数据/attQualityType(重量单位).csv

@@ -0,0 +1,11 @@
+序号,代码编号,代码值,代码名称
+"0","fx","0","飞行环境组件"
+"1","gl","1","管路组件"
+"2","hz","2","换热组件"
+"3","fm","3","阀门组件"
+"4","qd","4","驱动组件"
+"5","kz","5","控制组件"
+"6","ry","6","燃油组件"
+"7","xt","7","系统组件"
+"8","gt","8","其他组件"
+"9","zdy","9","用户自定义组件"