|
@ -113,7 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<where> |
|
|
<where> |
|
|
<if test="faceId != null "> and mw.face_id = #{faceId}</if> |
|
|
<if test="faceId != null "> and mw.face_id = #{faceId}</if> |
|
|
<if test="isWork != null "> and mw.is_work = #{isWork}</if> |
|
|
<if test="isWork != null "> and mw.is_work = #{isWork}</if> |
|
|
<if test="createTime != null and createTime != ''"> and mw.create_time > DATE_SUB( #{createTime}, INTERVAL 1 HOUR )</if> |
|
|
<if test="createTime != null"> and mw.create_time > DATE_SUB( now(), INTERVAL 1 HOUR )</if> |
|
|
</where> |
|
|
</where> |
|
|
ORDER BY mw.create_time DESC |
|
|
ORDER BY mw.create_time DESC |
|
|
LIMIT 0,2 |
|
|
LIMIT 0,2 |
|
@ -189,6 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<if test="bpHigh != null">bp_high,</if> |
|
|
<if test="bpHigh != null">bp_high,</if> |
|
|
<if test="bpLow != null">bp_low,</if> |
|
|
<if test="bpLow != null">bp_low,</if> |
|
|
|
|
|
<if test="faceId != null">face_id,</if> |
|
|
<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> |
|
@ -199,6 +200,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="bpHigh != null">#{bpHigh},</if> |
|
|
<if test="bpHigh != null">#{bpHigh},</if> |
|
|
<if test="bpLow != null">#{bpLow},</if> |
|
|
<if test="bpLow != null">#{bpLow},</if> |
|
|
|
|
|
<if test="faceId != null">#{faceId},</if> |
|
|
<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> |
|
|