|
@@ -149,8 +149,17 @@
|
|
|
<if test="courseEndDate != null">
|
|
|
and cs.class_date_ <= #{courseEndDate}
|
|
|
</if>
|
|
|
- <if test="signInStatus != null">
|
|
|
- and ta.sign_in_status_ = #{signInStatus}
|
|
|
+ <if test="signInStatus != null and signInStatus != 3">
|
|
|
+ AND ta.sign_in_status_ = #{signInStatus}
|
|
|
+ </if>
|
|
|
+ <if test="signOutStatus != null and signOutStatus != 3">
|
|
|
+ AND ta.sign_out_status_ = #{signOutStatus}
|
|
|
+ </if>
|
|
|
+ <if test="signOutStatus != null and signOutStatus = 3">
|
|
|
+ AND ta.sign_out_status_ IS NULL
|
|
|
+ </if>
|
|
|
+ <if test="signInStatus != null and signInStatus = 3">
|
|
|
+ AND ta.sign_in_status_ IS NULL
|
|
|
</if>
|
|
|
<if test="courseScheduleType != null">
|
|
|
and cs.type_ = #{courseScheduleType}
|
|
@@ -164,7 +173,9 @@
|
|
|
<select id="getTeacherPersonalAttendances" parameterType="map" resultMap="teacherPersonalAttendance">
|
|
|
SELECT
|
|
|
cs.class_date_,cs.start_class_time_,cs.name_,cs.type_,
|
|
|
- ta.sign_in_status_,ta.sign_out_status_,ta.remark_
|
|
|
+ IF(ta.sign_in_status_ IS NULL,3,ta.sign_in_status_) sign_in_status_,
|
|
|
+ IF(ta.sign_out_status_ IS NULL,3,ta.sign_out_status_) sign_out_status_,
|
|
|
+ ta.remark_
|
|
|
FROM
|
|
|
teacher_attendance ta
|
|
|
LEFT JOIN course_schedule cs ON ta.course_schedule_id_=cs.id_
|