|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
<mapper namespace="yq.system.mapper.MineWarningMapper"> |
|
|
|
|
|
|
|
<resultMap type="MineWarningVo" id="MineWarningResult"> |
|
|
|
<resultMap type="MineWarning" id="MineWarningResult"> |
|
|
|
<result property="id" column="id" /> |
|
|
|
<result property="faceId" column="face_id" /> |
|
|
|
<result property="bpHigh" column="bp_high" /> |
|
|
@ -19,6 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="faceName" column="face_name" /> |
|
|
|
<result property="facePhone" column="face_phone" /> |
|
|
|
<result property="age" column="age" /> |
|
|
|
<result property="groupId" column="group_id" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectMineWarningVo"> |
|
|
@ -36,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
mf.face_name, |
|
|
|
mf.age, |
|
|
|
mf.face_phone, |
|
|
|
mf.group_id, |
|
|
|
mg.mine_group_name |
|
|
|
FROM |
|
|
|
mine_warning mw |
|
|
@ -87,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<where> |
|
|
|
<if test="mineGroupName != null and mineGroupName != ''"> and mg.mine_group_name like concat('%', #{mineGroupName}, '%')</if> |
|
|
|
<if test="faceName != null and faceName != ''"> and mf.face_name like concat('%', #{faceName}, '%')</if> |
|
|
|
<if test="groupId != null "> and mf.group_id =#{groupId}</if> |
|
|
|
<if test="bpHigh != null "> and mw.bp_high = #{bpHigh}</if> |
|
|
|
<if test="bpLow != null "> and mw.bp_low = #{bpLow}</if> |
|
|
|
<if test="groupId != null "> and mg.id = #{groupId}</if> |
|
|
|