分页 关联查询 等

This commit is contained in:
2025-01-03 18:13:56 +08:00
parent 4f6079dbb5
commit c5f1456046
5 changed files with 45 additions and 45 deletions

View File

@@ -55,22 +55,8 @@
<select id="selectCourseDetailsList" resultType="com.sqx.modules.course.entity.CourseDetails">
select cd.*,
MD5( `course_details_id` ) AS `uid`
MD5(`course_details_id`) AS `uid`
from course_details cd
left join course c on c.course_id=cd.course_id
where c.course_id is not null and c.is_delete=0 and cd.good=1
<if test='null != wxShow and wxShow==1'>
and c.wx_show = #{wxShow}
</if>
<if test='null != wxShow and wxShow==2'>
and (c.wx_show = #{wxShow} or c.wx_show is null)
</if>
<if test='null != dyShow and dyShow==1'>
and c.dy_show = #{dyShow}
</if>
<if test='null != dyShow and dyShow==2'>
and (c.dy_show = #{dyShow} or c.dy_show is null)
</if>
order by SUBSTR(uid, ${randomNum}, 6)
</select>