Digital Office Automation System Backend
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

DkAttendanceGroupMapper.xml 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.ruoyi.zhushi.mapper.DkAttendanceGroupMapper">
  6. <resultMap id="DkAttendanceGroupRusult" type="com.ruoyi.zhushi.entity.AppDTO">
  7. <id property="id" column="id"/>
  8. <result property="attendanceGroupName" column="name"/>
  9. <result property="description" column="description"/>
  10. <result property="workStartTime" column="workStartTime"/>
  11. <result property="workEndTime" column="workEndTime"/>
  12. <result property="lng" column="lng"/>
  13. <result property="lat" column="lat"/>
  14. <result property="radius" column="radius"/>
  15. <result property="areaName" column="areaName"/>
  16. <result property="workDays" column="workDays"/>
  17. </resultMap>
  18. <select id="queryAttendanceGroupBYUserId" resultMap="DkAttendanceGroupRusult">
  19. select DISTINCT t.`name`, t.description,
  20. t.work_start_time workStartTime,
  21. t.work_end_time workEndTime,
  22. t.allow_early allowEarly,
  23. t.early_range earlyRange,
  24. t.allow_late allowLate,
  25. t.late_range lateRange,
  26. c.lng lng, c.lat lat, c.radius,
  27. c.`name` areaName,
  28. t.work_days workDays
  29. from dk_check_in_attendance_team_and_user u
  30. LEFT JOIN dk_check_in_attendance_team t on t.id = u.attendance_team_id
  31. left JOIN dk_check_in_config c on c.id = t.area_id
  32. <where>
  33. t.work_start_time is not null
  34. <if test="userId != null and userId != ''">
  35. AND u.user_id = #{userId}
  36. </if>
  37. </where>
  38. </select>
  39. </mapper>