|
@@ -86,11 +86,11 @@
|
|
|
</select>
|
|
|
<select id="findByCourseList" resultType="org.jeecg.modules.app.vo.course.CourseResponseVo">
|
|
|
select b.`name`,e.address,b.original_price,b.selling_price
|
|
|
- ,b.id,b.price_type,b.good_rate,e.latitude,e.longitude,count(c.courses_id) as coursesNum
|
|
|
+ ,b.id,b.price_type,b.good_rate,e.latitude,e.longitude,count(c.courses_id) as coursesNum,b.start_time,b.end_time
|
|
|
FROM nm_courses b
|
|
|
LEFT JOIN nm_courses_price_rules c on b.id= c.courses_id
|
|
|
LEFT JOIN nm_site e on e.id = b.address_site_id
|
|
|
- where 1=1
|
|
|
+ where 1=1 and b.racking_status=0
|
|
|
<if test="courseRequestVo.instructorId != null and courseRequestVo.instructorId !=''">
|
|
|
and b.user_id=#{courseRequestVo.instructorId}
|
|
|
</if>
|
|
@@ -201,7 +201,7 @@
|
|
|
<select id="findByInstructorId" resultType="java.lang.String">
|
|
|
select b.id from nm_instructor a
|
|
|
left join nm_courses b on a.user_id =b.user_id and a.del_flag =0
|
|
|
- where a.id =#{instructorId}
|
|
|
+ where a.user_id =#{instructorId}
|
|
|
</select>
|
|
|
<select id="getPageCourse" resultType="org.jeecg.modules.app.vo.AppCoursesPageVO">
|
|
|
SELECT
|