StudentOutInRecordMapper.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.xjrsoft.module.outint.mapper.StudentOutInRecordMapper">
  6. <select id="getNotStayClassCount" resultType="com.xjrsoft.module.outint.vo.IdCountVo">
  7. SELECT t1.class_id AS id,COUNT(t1.user_id) FROM student_out_in_record t1
  8. INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
  9. WHERE t1.delete_mark = 0 AND t1.status = 0 AND t2.delete_mark = 0
  10. AND t2.stduy_status = 'FB3002'
  11. AND t1.record_time BETWEEN #{startTime} AND #{endTime}
  12. GROUP BY t1.class_id
  13. </select>
  14. <select id="getStayClassCount" resultType="com.xjrsoft.module.outint.vo.IdCountVo">
  15. SELECT t1.class_id AS id,COUNT(t1.user_id) FROM student_out_in_record t1
  16. INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
  17. WHERE t1.delete_mark = 0 AND t1.status = 0 AND t2.delete_mark = 0
  18. AND t2.stduy_status = 'FB3001'
  19. AND t1.record_time BETWEEN #{startTime} AND #{endTime}
  20. GROUP BY t1.class_id
  21. </select>
  22. <select id="getNotStayList" resultType="com.xjrsoft.module.outint.vo.StudentOutInRecordVo">
  23. SELECT t1.* FROM student_out_in_record t1
  24. INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
  25. WHERE t1.delete_mark = 0 AND t2.delete_mark = 0
  26. AND t2.stduy_status = 'FB3002'
  27. AND t1.record_time BETWEEN #{startTime} AND #{endTime}
  28. </select>
  29. <select id="getStayList" resultType="com.xjrsoft.module.outint.vo.StudentOutInRecordVo">
  30. SELECT t1.* FROM student_out_in_record t1
  31. INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
  32. WHERE t1.delete_mark = 0 AND t2.delete_mark = 0
  33. AND t2.stduy_status = 'FB3001'
  34. AND t1.record_time BETWEEN #{startTime} AND #{endTime}
  35. </select>
  36. <select id="getList" resultType="com.xjrsoft.module.outint.vo.StudentOutInRecordVo">
  37. SELECT t1.* FROM student_out_in_record t1
  38. INNER JOIN base_student_school_roll t2 ON t1.user_id = t2.user_id
  39. WHERE t1.delete_mark = 0 AND t2.delete_mark = 0
  40. AND t1.record_time BETWEEN #{startTime} AND #{endTime}
  41. </select>
  42. </mapper>