|
@@ -142,10 +142,8 @@
|
|
|
mgpc.batch_no_ = #{batchNo}
|
|
|
AND mgpscd.user_id_ = #{studentId}
|
|
|
AND mgpscd.course_type_ = #{courseType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
--- AND mgpscd.total_course_minutes_ >= #{courseMinutes}
|
|
|
AND mgpscd.used_course_minutes_ <= 0
|
|
|
- ORDER BY mgpscd.id_
|
|
|
- LIMIT 1;
|
|
|
+ ORDER BY mgpscd.id_;
|
|
|
</select>
|
|
|
|
|
|
<select id="getUnUseBatchNoWithStudentAndCourseTypeAndCourseMinutes" resultType="string">
|