|
@@ -16,7 +16,7 @@
|
|
where (organ_id_ = #{organId} OR organ_id_ = 0) AND course_type_ = #{courseType} limit 1
|
|
where (organ_id_ = #{organId} OR organ_id_ = 0) AND course_type_ = #{courseType} limit 1
|
|
</select>
|
|
</select>
|
|
<select id="getCourseCostPrice" resultType="java.math.BigDecimal">
|
|
<select id="getCourseCostPrice" resultType="java.math.BigDecimal">
|
|
- SELECT SUM(CASE WHEN oct.id_ IS NULL THEN oct1.price_ ELSE oct.price_ END cost_) FROM course_schedule cs
|
|
|
|
|
|
+ SELECT SUM(CASE WHEN oct.id_ IS NULL THEN oct1.price_ ELSE oct.price_ END) cost_ FROM course_schedule cs
|
|
left join organ_course_type_original_cost oct ON oct.course_type_ = cs.type_ AND oct.organ_id_ = cs.organ_id_
|
|
left join organ_course_type_original_cost oct ON oct.course_type_ = cs.type_ AND oct.organ_id_ = cs.organ_id_
|
|
left join organ_course_type_original_cost oct1 ON oct1.course_type_ = cs.type_ AND oct1.organ_id_ = 0
|
|
left join organ_course_type_original_cost oct1 ON oct1.course_type_ = cs.type_ AND oct1.organ_id_ = 0
|
|
where FIND_IN_SET(cs.id_,#{courseIds})
|
|
where FIND_IN_SET(cs.id_,#{courseIds})
|