Explorar el Código

教师考勤增加状态查询方式

dzx hace 1 mes
padre
commit
feb69f8f87

+ 3 - 0
src/main/java/com/xjrsoft/module/attendance/dto/TeacherDetailsDto.java

@@ -27,6 +27,9 @@ public class TeacherDetailsDto extends PageInput {
     @ApiModelProperty("考勤方式")
     private String attendanceMode;
 
+    @ApiModelProperty("考勤状态")
+    private String attendanceStatus;
+
     @ApiModelProperty("车牌号")
     private String carNumber;
 }

+ 3 - 0
src/main/resources/mapper/attendance/TeacherAttendanceRecordMapper.xml

@@ -32,6 +32,9 @@
         <if test="dto.attendanceMode != null and dto.attendanceMode != ''">
             and t1.attendance_mode like concat('%', #{dto.attendanceMode},'%')
         </if>
+        <if test="dto.attendanceStatus != null and dto.attendanceStatus != ''">
+            and t1.attendance_status like concat('%', #{dto.attendanceStatus},'%')
+        </if>
     </select>
     <select id="getList" parameterType="com.xjrsoft.module.attendance.dto.TeacherDetailsDto" resultType="com.xjrsoft.module.attendance.vo.TeacherStatisticsPageVo">
         SELECT t2.name AS teacher_name,t2.mobile,t1.attendance_status AS STATUS,t1.record_time,