|
@@ -469,9 +469,7 @@
|
|
|
</select>
|
|
|
<select id="queryActivityCourseTimeList" resultType="java.lang.Integer">
|
|
|
select distinct aum.single_course_time_ from activity_user_mapper aum
|
|
|
- <if test="queryInfo.categoryId != null and queryInfo.categoryId != ''">
|
|
|
- left join sys_user su on su.id_ = aum.user_id_
|
|
|
- </if>
|
|
|
+ left join sys_user su on su.id_ = aum.user_id_
|
|
|
where aum.return_fee_ = 0 and aum.total_course_num_ > 0
|
|
|
<if test="queryInfo.categoryId != null">
|
|
|
AND aum.category_id_ = #{queryInfo.categoryId}
|
|
@@ -487,9 +485,7 @@
|
|
|
</if>
|
|
|
union
|
|
|
select distinct aum.give_single_course_time_ from activity_user_mapper aum
|
|
|
- <if test="queryInfo.categoryId != null and queryInfo.categoryId != ''">
|
|
|
- left join sys_user su on su.id_ = aum.user_id_
|
|
|
- </if>
|
|
|
+ left join sys_user su on su.id_ = aum.user_id_
|
|
|
where aum.return_fee_ = 0 and aum.sub_give_course_num_ > 0
|
|
|
<if test="queryInfo.categoryId != null">
|
|
|
AND aum.give_category_id_ = #{queryInfo.categoryId}
|