|
@@ -18,15 +18,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTTableFiledRelationVo">
|
|
|
+ select id,table_id, filed_id, is_requited, is_display,
|
|
|
+ sort,create_time, create_user_id from t_table_filed_relation
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <sql id="selectTTableFiledRelationListVo">
|
|
|
select d1.id, d1.table_id, d1.filed_id, d1.is_requited, d1.is_display, d1.sort,
|
|
|
d1.create_time, d1.create_user_id,d2.table_name,d3.filed_name
|
|
|
from t_table_filed_relation d1
|
|
|
- left join t_table d2 on d1.table_id = d2.id
|
|
|
- left join t_table_filed d3 on d1.filed_id = d3.id
|
|
|
+ left join t_table d2 on d1.table_id = d2.id
|
|
|
+ left join t_table_filed d3 on d1.filed_id = d3.id
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTTableFiledRelationList" parameterType="TTableFiledRelation" resultMap="TTableFiledRelationResult">
|
|
|
- <include refid="selectTTableFiledRelationVo"/>
|
|
|
+ <include refid="selectTTableFiledRelationListVo"/>
|
|
|
<where>
|
|
|
<if test="tableId != null and tableId != ''"> and table_id = #{tableId}</if>
|
|
|
<if test="filedId != null and filedId != ''"> and filed_id = #{filedId}</if>
|