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

xignzi006 发布系统代码

上级 975ce6e0
......@@ -87,6 +87,14 @@ public class Ir_model_fields extends EntityMP implements Serializable {
@JSONField(name = "model_id")
@JsonProperty("model_id")
private Long modelId;
/**
* 属性类型
*/
@DEField(name = "field_type")
@TableField(value = "field_type")
@JSONField(name = "field_type")
@JsonProperty("field_type")
private String fieldType;
/**
*
......@@ -138,6 +146,14 @@ public class Ir_model_fields extends EntityMP implements Serializable {
this.modify("model_id",modelId);
}
/**
* 设置 [属性类型]
*/
public void setFieldType(String fieldType){
this.fieldType = fieldType ;
this.modify("field_type",fieldType);
}
@Override
public Serializable getDefaultKey(boolean gen) {
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Ir_model_fieldsResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.FIELD_DESCRIPTION, 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.FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -13,6 +13,7 @@
<id property="id" column="id" /><!--主键字段映射-->
<result property="fieldDescription" column="field_description" />
<result property="modelId" column="model_id" />
<result property="fieldType" column="field_type" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
......@@ -50,18 +51,18 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
]]>
</sql>
<!--数据查询[TrackingFields]-->
<sql id="TrackingFields" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
WHERE ( t1.TRACKING IS NOT NULL )
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
<![CDATA[ SELECT t1.FIELD_DESCRIPTION, t1.FIELD_TYPE, t1.ID, t1.MODEL, t1.MODEL_ID, t1.NAME, t1.TRACKING FROM IR_MODEL_FIELDS t1
]]>
</sql>
</mapper>
......
......@@ -71738,6 +71738,19 @@
"data_length":20,
"key_field":0,
"major_field":0
},
{
"fieldname":"FIELD_TYPE" ,
"codename":"Field_type",
"field_logic_name":"属性类型",
"entity_name":"Ir_model_fields",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"major_field":0
}
],
"subEntitys":[
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册