宿舍管理学生打卡模块,对学务和辅导员角色查看学生打卡记录做了数据筛选
This commit is contained in:
@@ -116,7 +116,13 @@ public class DmsStuDaily{
|
||||
@TableField(exist = false)
|
||||
private String teacherName;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String teacherNo;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String idCard;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String roleType;
|
||||
|
||||
}
|
||||
|
@@ -93,9 +93,16 @@
|
||||
<if test="majorId != null "> and b.major_id = #{majorId}</if>
|
||||
<if test="classId != null "> and b.class_id = #{classId}</if>
|
||||
<if test="gradeId != null "> and b.grade_id = #{gradeId}</if>
|
||||
<if test="stuName != null and stuName != ''"> and b.stu_name like concat('%',#{stuName},'%')</if>
|
||||
<if test="teacherName != null and teacherName != ''"> and b.teacher_name like concat('%',#{teacherName},'%')</if>
|
||||
<if test="idCard != null and idCard != ''"> and AES_DECRYPT(UNHEX(b.id_card),'zhxg') = #{idCard}</if>
|
||||
<if test="stuName != null and stuName != ''">
|
||||
and b.stu_name like concat('%',#{stuName},'%')</if>
|
||||
<if test="teacherName != null and teacherName != ''">
|
||||
and b.teacher_name like concat('%',#{teacherName},'%')</if>
|
||||
<if test="teacherNo != null and teacherNo != ''">
|
||||
and b.t_no = #{teacherNo}</if>
|
||||
<if test="deptName != null and deptName != ''">
|
||||
and b.dept_name = #{deptName}</if>
|
||||
<if test="idCard != null and idCard != ''">
|
||||
and AES_DECRYPT(UNHEX(b.id_card),'zhxg') = #{idCard}</if>
|
||||
</where>
|
||||
order by a.id desc
|
||||
</select>
|
||||
@@ -212,7 +219,7 @@
|
||||
END
|
||||
ELSE ''
|
||||
END
|
||||
) AS `log`
|
||||
) AS `log`
|
||||
FROM rt_stu_leave_operation_records AS a
|
||||
LEFT JOIN rt_stu_leave_application AS b ON a.leave_application_id = b.leave_application_id
|
||||
LEFT JOIN view_stu_info AS c ON b.stu_no = c.stu_no
|
||||
|
Reference in New Issue
Block a user