|
|
@ -28,7 +28,7 @@ |
|
|
|
<select id="selectHealthInfoByDate" resultMap="resultMap_HealthInfo" parameterType="java.util.Map"> |
|
|
|
select |
|
|
|
h.id as hId, |
|
|
|
h.employee_id as hEmployeeId, |
|
|
|
h.user_id as hEmployeeId, |
|
|
|
h.time as hTime, |
|
|
|
h.district as hDistrict, |
|
|
|
h.address as hAddress, |
|
|
@ -43,7 +43,7 @@ |
|
|
|
where |
|
|
|
h.rec_status = 0 |
|
|
|
and |
|
|
|
h.employee_id = #{employeeId} |
|
|
|
h.user_id = #{employeeId} |
|
|
|
and |
|
|
|
h.time <= #{endTime} |
|
|
|
and |
|
|
@ -76,7 +76,7 @@ |
|
|
|
where |
|
|
|
h.rec_status = 0 |
|
|
|
and |
|
|
|
h.employee_id = #{employeeId} |
|
|
|
h.user_id = #{employeeId} |
|
|
|
and |
|
|
|
h.time <= #{endTime} |
|
|
|
and |
|
|
@ -93,7 +93,7 @@ |
|
|
|
SELECT |
|
|
|
count(*) as times |
|
|
|
FROM |
|
|
|
t_employee e LEFT JOIN t_health_records r on e.id = r.employee_id |
|
|
|
t_employee e LEFT JOIN t_health_records r on e.user_id = r.user_id |
|
|
|
where |
|
|
|
r.time <= #{endTime} |
|
|
|
and |
|
|
|