修改报错

master
lwj 2024-09-02 21:21:02 +08:00
parent e51ea13114
commit 6669076034
1 changed files with 14 additions and 14 deletions

View File

@ -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">-->
<!-- &#45;&#45; 根据-->
<!-- SELECT source.data_resource_name,source.database_name,source.data_sources_system_name,-->
<!--&#45;&#45; 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>