|
@@ -124,7 +124,7 @@
|
|
|
</update>
|
|
|
<update id="updateTeacherRewardConfirmStatusWithMonth">
|
|
|
UPDATE teacher_course_reward SET confirm_status_ = #{confirmStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
- WHERE DATE_FORMAT( settlement_date_, '%Y-%m-%d' ) = #{month}
|
|
|
+ WHERE DATE_FORMAT( settlement_date_, '%Y-%m' ) = #{month}
|
|
|
<if test="teacherId!=null">
|
|
|
AND teacher_id_=#{teacherId}
|
|
|
</if>
|
|
@@ -175,7 +175,7 @@
|
|
|
teacher_course_reward
|
|
|
WHERE
|
|
|
teacher_id_ = #{teacherId}
|
|
|
- AND DATE_FORMAT( settlement_date_, '%Y-%m-%d' ) = #{month}
|
|
|
+ AND DATE_FORMAT( settlement_date_, '%Y-%m' ) = #{month}
|
|
|
GROUP BY
|
|
|
teacher_id_
|
|
|
</select>
|
|
@@ -187,7 +187,7 @@
|
|
|
teacher_course_reward
|
|
|
WHERE
|
|
|
teacher_id_ = #{teacherId}
|
|
|
- AND DATE_FORMAT( settlement_date_, '%Y-%m-%d' ) = #{month}
|
|
|
+ AND DATE_FORMAT( settlement_date_, '%Y-%m' ) = #{month}
|
|
|
ORDER BY id_ DESC
|
|
|
<include refid="global.limit"/>
|
|
|
</select>
|
|
@@ -198,7 +198,7 @@
|
|
|
teacher_course_reward
|
|
|
WHERE
|
|
|
teacher_id_ = #{teacherId}
|
|
|
- AND DATE_FORMAT( settlement_date_, '%Y-%m-%d' ) = #{month}
|
|
|
+ AND DATE_FORMAT( settlement_date_, '%Y-%m' ) = #{month}
|
|
|
</select>
|
|
|
|
|
|
<select id="findTeacherCourseRewardWithGroup" resultMap="teacherCourseReward">
|