提交 53d4cfa6 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 56860264
...@@ -80,7 +80,7 @@ public class Ir_model_fields extends EntityMP implements Serializable { ...@@ -80,7 +80,7 @@ public class Ir_model_fields extends EntityMP implements Serializable {
@JsonProperty("field_description") @JsonProperty("field_description")
private String fieldDescription; private String fieldDescription;
/** /**
* ID * 模型
*/ */
@DEField(name = "model_id") @DEField(name = "model_id")
@TableField(value = "model_id") @TableField(value = "model_id")
...@@ -90,11 +90,10 @@ public class Ir_model_fields extends EntityMP implements Serializable { ...@@ -90,11 +90,10 @@ public class Ir_model_fields extends EntityMP implements Serializable {
/** /**
* 属性类型 * 属性类型
*/ */
@DEField(name = "field_type") @TableField(value = "ttype")
@TableField(value = "field_type") @JSONField(name = "ttype")
@JSONField(name = "field_type") @JsonProperty("ttype")
@JsonProperty("field_type") private String ttype;
private String fieldType;
/** /**
* *
...@@ -139,7 +138,7 @@ public class Ir_model_fields extends EntityMP implements Serializable { ...@@ -139,7 +138,7 @@ public class Ir_model_fields extends EntityMP implements Serializable {
} }
/** /**
* 设置 [ID] * 设置 [模型]
*/ */
public void setModelId(Long modelId){ public void setModelId(Long modelId){
this.modelId = modelId ; this.modelId = modelId ;
...@@ -149,9 +148,9 @@ public class Ir_model_fields extends EntityMP implements Serializable { ...@@ -149,9 +148,9 @@ public class Ir_model_fields extends EntityMP implements Serializable {
/** /**
* 设置 [属性类型] * 设置 [属性类型]
*/ */
public void setFieldType(String fieldType){ public void setTtype(String ttype){
this.fieldType = fieldType ; this.ttype = ttype ;
this.modify("field_type",fieldType); this.modify("ttype",ttype);
} }
......
...@@ -41,7 +41,7 @@ public class Ir_model_fieldsSearchContext extends QueryWrapperContext<Ir_model_f ...@@ -41,7 +41,7 @@ public class Ir_model_fieldsSearchContext extends QueryWrapperContext<Ir_model_f
this.getSearchCond().eq("model", n_model_eq); this.getSearchCond().eq("model", n_model_eq);
} }
} }
private Long n_model_id_eq;//[ID] private Long n_model_id_eq;//[模型]
public void setN_model_id_eq(Long n_model_id_eq) { public void setN_model_id_eq(Long n_model_id_eq) {
this.n_model_id_eq = n_model_id_eq; this.n_model_id_eq = n_model_id_eq;
if(!ObjectUtils.isEmpty(this.n_model_id_eq)){ if(!ObjectUtils.isEmpty(this.n_model_id_eq)){
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Ir_model_fieldsResultMap" databaseId="postgresql"> <select id="selectById" resultMap="Ir_model_fieldsResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.FIELD_DESCRIPTION, t1.FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1 ) t1 where id=#{id}]]> <![CDATA[select t1.* from (SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING, t1.TTYPE FROM IR_MODEL_FIELDS t1 ) t1 where id=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
<id property="id" column="id" /><!--主键字段映射--> <id property="id" column="id" /><!--主键字段映射-->
<result property="fieldDescription" column="field_description" /> <result property="fieldDescription" column="field_description" />
<result property="modelId" column="model_id" /> <result property="modelId" column="model_id" />
<result property="fieldType" column="field_type" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
...@@ -51,18 +50,18 @@ ...@@ -51,18 +50,18 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql"> <sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1 <![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING, t1.TTYPE FROM IR_MODEL_FIELDS t1
]]> ]]>
</sql> </sql>
<!--数据查询[TrackingFields]--> <!--数据查询[TrackingFields]-->
<sql id="TrackingFields" databaseId="postgresql"> <sql id="TrackingFields" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1 <![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING, t1.TTYPE FROM IR_MODEL_FIELDS t1
WHERE ( t1.TRACKING IS NOT NULL ) WHERE ( t1.TRACKING IS NOT NULL )
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="postgresql"> <sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1 <![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING, t1.TTYPE FROM IR_MODEL_FIELDS t1
]]> ]]>
</sql> </sql>
</mapper> </mapper>
......
...@@ -71725,7 +71725,7 @@ ...@@ -71725,7 +71725,7 @@
{ {
"fieldname":"MODEL_ID" , "fieldname":"MODEL_ID" ,
"codename":"Model_id", "codename":"Model_id",
"field_logic_name":"ID", "field_logic_name":"模型",
"entity_name":"Ir_model_fields", "entity_name":"Ir_model_fields",
"ref_de":"IR_MODEL", "ref_de":"IR_MODEL",
"ref_field_name":"ID", "ref_field_name":"ID",
...@@ -71740,8 +71740,8 @@ ...@@ -71740,8 +71740,8 @@
"major_field":0 "major_field":0
}, },
{ {
"fieldname":"FIELD_TYPE" , "fieldname":"TTYPE" ,
"codename":"Field_type", "codename":"Ttype",
"field_logic_name":"属性类型", "field_logic_name":"属性类型",
"entity_name":"Ir_model_fields", "entity_name":"Ir_model_fields",
"field_type":"TEXT", "field_type":"TEXT",
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册