|
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select * from g_cad where del_flag = 0 and id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <select id="getAllFileByPostId">
|
|
|
+ <select id="getAllFileByPostId" parameterType="Long" resultMap="cadFile">
|
|
|
SELECT
|
|
|
b.cad_id,
|
|
|
b.file_name,
|
|
@@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
g_cad a
|
|
|
LEFT JOIN g_cad_file b ON a.id = b.cad_id
|
|
|
WHERE
|
|
|
- a.post_id = #{postId}
|
|
|
+ a.del_flag = 0
|
|
|
+ and a.post_id = #{postId}
|
|
|
</select>
|
|
|
</mapper>
|