Browse Source

表与字段对应关系修改接口报错

LAPTOP-BJJ3IV5R\SIWEI 8 tháng trước cách đây
mục cha
commit
03033f13ca

+ 8 - 3
onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TTableFiledRelationMapper.xml

@@ -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>