|
@ -18,6 +18,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="faceName" column="face_name" /> |
|
|
<result property="faceName" column="face_name" /> |
|
|
<result property="facePhone" column="face_phone" /> |
|
|
<result property="facePhone" column="face_phone" /> |
|
|
<result property="age" column="age" /> |
|
|
<result property="age" column="age" /> |
|
|
|
|
|
<result property="spo2" column="spo2" /> |
|
|
|
|
|
<result property="hd" column="hd" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<resultMap type="MineWarning" id="MineWarningUnResult"> |
|
|
<resultMap type="MineWarning" id="MineWarningUnResult"> |
|
@ -28,6 +30,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="br" column="br" /> |
|
|
<result property="br" column="br" /> |
|
|
<result property="hr" column="hr" /> |
|
|
<result property="hr" column="hr" /> |
|
|
<result property="hrv" column="hrv" /> |
|
|
<result property="hrv" column="hrv" /> |
|
|
|
|
|
<result property="spo2" column="spo2" /> |
|
|
|
|
|
<result property="hd" column="hd" /> |
|
|
<result property="temperature" column="temperature" /> |
|
|
<result property="temperature" column="temperature" /> |
|
|
<result property="isWork" column="is_work" /> |
|
|
<result property="isWork" column="is_work" /> |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="createTime" column="create_time" /> |
|
@ -48,11 +52,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
mw.br, |
|
|
mw.br, |
|
|
mw.hr, |
|
|
mw.hr, |
|
|
mw.hrv, |
|
|
mw.hrv, |
|
|
|
|
|
mw.spo2, |
|
|
|
|
|
mw.hd, |
|
|
mw.temperature, |
|
|
mw.temperature, |
|
|
mw.is_work, |
|
|
mw.is_work, |
|
|
mw.create_time, |
|
|
mw.create_time, |
|
|
mf.face_name, |
|
|
mf.face_name, |
|
|
FLOOR(TIMESTAMPDIFF(MONTH,mf.birth_date , SYSDATE()) / 12) AS age, |
|
|
CASE |
|
|
|
|
|
WHEN LENGTH(birth_date) = 15 THEN |
|
|
|
|
|
-- 15位身份证号,提取出生年份、月份、日期并计算年龄 |
|
|
|
|
|
FLOOR(DATEDIFF(CURDATE(), STR_TO_DATE(CONCAT('19', SUBSTRING(birth_date, 7, 6)), '%Y%m%d')) / 365.25) |
|
|
|
|
|
WHEN LENGTH(birth_date) = 18 THEN |
|
|
|
|
|
-- 18位身份证号,提取出生年份、月份、日期并计算年龄 |
|
|
|
|
|
FLOOR(DATEDIFF(CURDATE(), STR_TO_DATE(SUBSTRING(birth_date, 7, 8), '%Y%m%d')) / 365.25) |
|
|
|
|
|
ELSE |
|
|
|
|
|
NULL |
|
|
|
|
|
END AS age, |
|
|
mf.face_phone, |
|
|
mf.face_phone, |
|
|
mf.dept_id, |
|
|
mf.dept_id, |
|
|
d.dept_name |
|
|
d.dept_name |
|
@ -71,6 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
mw.br, |
|
|
mw.br, |
|
|
mw.hr, |
|
|
mw.hr, |
|
|
mw.hrv, |
|
|
mw.hrv, |
|
|
|
|
|
mw.spo2, |
|
|
|
|
|
mw.hd, |
|
|
mw.temperature, |
|
|
mw.temperature, |
|
|
mf.is_work, |
|
|
mf.is_work, |
|
|
mw.create_time, |
|
|
mw.create_time, |
|
@ -91,6 +108,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
mw.face_id, |
|
|
mw.face_id, |
|
|
mw.hr, |
|
|
mw.hr, |
|
|
mw.hrv, |
|
|
mw.hrv, |
|
|
|
|
|
mw.spo2, |
|
|
|
|
|
mw.hd, |
|
|
mw.temperature, |
|
|
mw.temperature, |
|
|
mw.is_work, |
|
|
mw.is_work, |
|
|
mw.create_time, |
|
|
mw.create_time, |
|
@ -132,6 +151,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
mw.br, |
|
|
mw.br, |
|
|
mw.hr, |
|
|
mw.hr, |
|
|
mw.hrv, |
|
|
mw.hrv, |
|
|
|
|
|
mw.spo2, |
|
|
|
|
|
mw.hd, |
|
|
mw.temperature, |
|
|
mw.temperature, |
|
|
mw.is_work, |
|
|
mw.is_work, |
|
|
mw.create_time, |
|
|
mw.create_time, |
|
@ -161,6 +182,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
mw.br, |
|
|
mw.br, |
|
|
mw.hr, |
|
|
mw.hr, |
|
|
mw.hrv, |
|
|
mw.hrv, |
|
|
|
|
|
mw.spo2, |
|
|
|
|
|
mw.hd, |
|
|
mw.temperature, |
|
|
mw.temperature, |
|
|
mf.is_work, |
|
|
mf.is_work, |
|
|
mw.create_time, |
|
|
mw.create_time, |
|
@ -198,6 +221,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
br, |
|
|
br, |
|
|
hr, |
|
|
hr, |
|
|
hrv, |
|
|
hrv, |
|
|
|
|
|
spo2, |
|
|
|
|
|
hd, |
|
|
temperature, |
|
|
temperature, |
|
|
is_work as isWork, |
|
|
is_work as isWork, |
|
|
create_time as createTime, |
|
|
create_time as createTime, |
|
@ -235,6 +260,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
mw.br, |
|
|
mw.br, |
|
|
mw.hr, |
|
|
mw.hr, |
|
|
mw.hrv, |
|
|
mw.hrv, |
|
|
|
|
|
mw.spo2, |
|
|
|
|
|
mw.hd, |
|
|
mw.temperature, |
|
|
mw.temperature, |
|
|
mw.is_work, |
|
|
mw.is_work, |
|
|
mw.create_time, |
|
|
mw.create_time, |
|
@ -288,6 +315,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="br != null">br,</if> |
|
|
<if test="br != null">br,</if> |
|
|
<if test="hr != null">hr,</if> |
|
|
<if test="hr != null">hr,</if> |
|
|
<if test="hrv != null">hrv,</if> |
|
|
<if test="hrv != null">hrv,</if> |
|
|
|
|
|
<if test="hd != null "> hd,</if> |
|
|
|
|
|
<if test="spo2 != null "> spo2,</if> |
|
|
<if test="temperature != null">temperature,</if> |
|
|
<if test="temperature != null">temperature,</if> |
|
|
<if test="isWork != null">is_work,</if> |
|
|
<if test="isWork != null">is_work,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
@ -299,6 +328,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="br != null">#{br},</if> |
|
|
<if test="br != null">#{br},</if> |
|
|
<if test="hr != null">#{hr},</if> |
|
|
<if test="hr != null">#{hr},</if> |
|
|
<if test="hrv != null">#{hrv},</if> |
|
|
<if test="hrv != null">#{hrv},</if> |
|
|
|
|
|
<if test="hd != null "> #{hd},</if> |
|
|
|
|
|
<if test="spo2 != null "> #{spo2},</if> |
|
|
<if test="temperature != null">#{temperature},</if> |
|
|
<if test="temperature != null">#{temperature},</if> |
|
|
<if test="isWork != null">#{isWork},</if> |
|
|
<if test="isWork != null">#{isWork},</if> |
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
<if test="createTime != null">#{createTime},</if> |
|
@ -313,6 +344,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="br != null">br = #{br},</if> |
|
|
<if test="br != null">br = #{br},</if> |
|
|
<if test="hr != null">hr = #{hr},</if> |
|
|
<if test="hr != null">hr = #{hr},</if> |
|
|
<if test="hrv != null">hrv = #{hrv},</if> |
|
|
<if test="hrv != null">hrv = #{hrv},</if> |
|
|
|
|
|
<if test="hd != null "> hd = #{hd},</if> |
|
|
|
|
|
<if test="spo2 != null "> spo2 = #{spo2},</if> |
|
|
<if test="temperature != null">temperature = #{temperature},</if> |
|
|
<if test="temperature != null">temperature = #{temperature},</if> |
|
|
<if test="isWork != null">is_work = #{isWork},</if> |
|
|
<if test="isWork != null">is_work = #{isWork},</if> |
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|