12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.xjrsoft.module.outint.mapper.StudentOutInRecordMapper">
- <select id="getNotStayClassCount" resultType="com.xjrsoft.module.outint.vo.IdCountVo">
- SELECT t1.class_id AS id,COUNT(t1.user_id) FROM student_out_in_record t1
- INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
- WHERE t1.delete_mark = 0 AND t1.status = 0 AND t2.delete_mark = 0
- AND t2.stduy_status = 'FB3002'
- AND t1.record_time BETWEEN #{startTime} AND #{endTime}
- GROUP BY t1.class_id
- </select>
- <select id="getStayClassCount" resultType="com.xjrsoft.module.outint.vo.IdCountVo">
- SELECT t1.class_id AS id,COUNT(t1.user_id) FROM student_out_in_record t1
- INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
- WHERE t1.delete_mark = 0 AND t1.status = 0 AND t2.delete_mark = 0
- AND t2.stduy_status = 'FB3001'
- AND t1.record_time BETWEEN #{startTime} AND #{endTime}
- GROUP BY t1.class_id
- </select>
- <select id="getNotStayList" resultType="com.xjrsoft.module.outint.vo.StudentOutInRecordVo">
- SELECT t1.* FROM student_out_in_record t1
- INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
- WHERE t1.delete_mark = 0 AND t2.delete_mark = 0
- AND t2.stduy_status = 'FB3002'
- AND t1.record_time BETWEEN #{startTime} AND #{endTime}
- </select>
- <select id="getStayList" resultType="com.xjrsoft.module.outint.vo.StudentOutInRecordVo">
- SELECT t1.* FROM student_out_in_record t1
- INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
- WHERE t1.delete_mark = 0 AND t2.delete_mark = 0
- AND t2.stduy_status = 'FB3001'
- AND t1.record_time BETWEEN #{startTime} AND #{endTime}
- </select>
- <select id="getList" resultType="com.xjrsoft.module.outint.vo.StudentOutInRecordVo">
- SELECT t1.* FROM student_out_in_record t1
- INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
- WHERE t1.delete_mark = 0 AND t2.delete_mark = 0
- AND t1.record_time BETWEEN #{startTime} AND #{endTime}
- </select>
- </mapper>
|