Browse Source

修改userid2

master
zhangye 6 years ago
parent
commit
93078647c5
  1. 4
      health/src/main/resources/application.yml
  2. 8
      health/src/main/resources/mapper_dao/HealthRecordDao.xml
  3. 4
      health/src/main/resources/mapper_dao/JourneyDao.xml
  4. 4
      health/src/main/resources/mapper_dao/SiteClockInDao.xml

4
health/src/main/resources/application.yml

@ -1,4 +1,4 @@
spring: spring:
profiles: profiles:
active: dev active: test
include: common, util-dev include: common, util-test

8
health/src/main/resources/mapper_dao/HealthRecordDao.xml

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

4
health/src/main/resources/mapper_dao/JourneyDao.xml

@ -15,7 +15,7 @@
<select id="selectJourneyByDate" resultMap="resultMap_journey" parameterType="java.util.Map"> <select id="selectJourneyByDate" resultMap="resultMap_journey" parameterType="java.util.Map">
select select
id as jId, id as jId,
employee_id as jEmployeeId, user_id as jEmployeeId,
trip_mode as jTripMode, trip_mode as jTripMode,
car_no as jCarNo, car_no as jCarNo,
start_time as jStartTime, start_time as jStartTime,
@ -27,7 +27,7 @@
where where
rec_status = 0 rec_status = 0
and and
employee_id = #{employeeId} user_id = #{employeeId}
and and
start_time &lt;= #{endTime} start_time &lt;= #{endTime}
and and

4
health/src/main/resources/mapper_dao/SiteClockInDao.xml

@ -12,7 +12,7 @@
<select id="selectHealthInfoByDate" resultMap="resultMap_siteClick" parameterType="java.util.Map"> <select id="selectHealthInfoByDate" resultMap="resultMap_siteClick" parameterType="java.util.Map">
select select
s.id as sId, s.id as sId,
c.employee_id as sSiteName, c.user_id as sSiteName,
c.time as sTime, c.time as sTime,
s.district as sLongitude, s.district as sLongitude,
s.address as sLatitude s.address as sLatitude
@ -21,7 +21,7 @@
where where
c.rec_status = 0 c.rec_status = 0
and and
c.employee_id = #{employeeId} c.user_id = #{employeeId}
and and
c.time &lt;= #{endTime} c.time &lt;= #{endTime}
and and

Loading…
Cancel
Save