|
|
|
@ -15,7 +15,6 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.SiteClockIn"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="site_id" jdbcType="BIGINT" property="siteId" /> |
|
|
|
<result column="qrcode_id" jdbcType="BIGINT" property="qrcodeId" /> |
|
|
|
<result column="time" jdbcType="BIGINT" property="time" /> |
|
|
|
<result column="location_longitude" jdbcType="DECIMAL" property="locationLongitude" /> |
|
|
|
<result column="location_latitude" jdbcType="DECIMAL" property="locationLatitude" /> |
|
|
|
@ -65,7 +64,7 @@ |
|
|
|
<select id="queryRecord" resultType="com.ccsens.health.bean.vo.ClockVo$ClockInMsg"> |
|
|
|
select i.user_id as userId, a.no, a.name, m.department, s.id as siteId, |
|
|
|
s.site_name as siteName, i.time, i.out_time as outTime from |
|
|
|
t_site_clock_in i left join t_real_name_auth a on i.user_id = a.id |
|
|
|
t_site_clock_in i left join t_real_name_auth a on i.user_id = a.user_id |
|
|
|
left join t_site s on i.site_id = s.id |
|
|
|
left join t_member m on a.no = m.wkno |
|
|
|
<where> |
|
|
|
@ -91,12 +90,12 @@ |
|
|
|
<select id="queryRecordBySite" resultType="com.ccsens.health.bean.vo.ClockVo$ClockInMsg"> |
|
|
|
select i.user_id as userId, a.no, a.name, m.department, s.id as siteId, |
|
|
|
s.site_name as siteName, i.time, i.out_time as outTime from |
|
|
|
t_site_clock_in i left join t_real_name_auth a on i.user_id = a.id |
|
|
|
t_site_clock_in i left join t_real_name_auth a on i.user_id = a.user_id |
|
|
|
left join t_site s on i.site_id = s.id |
|
|
|
left join t_member m on a.no = m.wkno |
|
|
|
<where> |
|
|
|
<foreach collection="lit" item="item" separator="or" open="(" close=")"> |
|
|
|
(s.id = #{item.siteId} and i.out_time >= #{item.inTime} and i.time <= #{item.outTime}) |
|
|
|
<foreach collection="list" item="item" separator="or" open="(" close=")"> |
|
|
|
(s.id = #{item.siteId} and i.out_time >= #{item.time} and i.time <= #{item.outTime}) |
|
|
|
</foreach> |
|
|
|
and i.rec_status = 0 |
|
|
|
</where> |
|
|
|
|