修改报错
parent
e51ea13114
commit
6669076034
|
@ -123,20 +123,20 @@
|
|||
select table_id from middle where dept_id=#{deptId}
|
||||
</select>
|
||||
|
||||
<select id="findAccreditBasic" resultType="com.muyu.domain.Accredit" resultMap="Accredit">
|
||||
-- 根据
|
||||
SELECT source.data_resource_name,source.database_name,source.data_sources_system_name,
|
||||
-- table1.table_name tableNameS,
|
||||
table2.id,
|
||||
table2.basic_id,
|
||||
table2.table_name tableNameB,
|
||||
table2.data_num,
|
||||
table2.table_remark
|
||||
FROM source
|
||||
left join table_info AS table1 ON table1.basic_id = source.id
|
||||
left join table_info AS table2 ON table2.parent_id=table1.id
|
||||
WHERE table1.id=#{tableId}
|
||||
</select>
|
||||
<!-- <select id="findAccreditBasic" resultType="com.muyu.domain.Accredit" resultMap="Accredit">-->
|
||||
<!-- -- 根据-->
|
||||
<!-- SELECT source.data_resource_name,source.database_name,source.data_sources_system_name,-->
|
||||
<!---- table1.table_name tableNameS,-->
|
||||
<!-- table2.id,-->
|
||||
<!-- table2.basic_id,-->
|
||||
<!-- table2.table_name tableNameB,-->
|
||||
<!-- table2.data_num,-->
|
||||
<!-- table2.table_remark-->
|
||||
<!-- FROM source-->
|
||||
<!-- left join table_info AS table1 ON table1.basic_id = source.id-->
|
||||
<!-- left join table_info AS table2 ON table2.parent_id=table1.id-->
|
||||
<!-- WHERE table1.id=#{tableId}-->
|
||||
<!-- </select>-->
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue