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

xignzi006 发布系统代码

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