123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.xinxin.topro.inpnurseservice.mysql2mapper.IcuJianhuyiInfoMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="Bed_no" property="bedNo" jdbcType="VARCHAR" />
- <result column="machine_no" property="machineNo" jdbcType="VARCHAR" />
- <result column="Ward_code" property="wardCode" jdbcType="VARCHAR" />
- <result column="Record_time" property="recordTime" jdbcType="TIMESTAMP" />
- <result column="Heart_rate" property="heartRate" jdbcType="VARCHAR" />
- <result column="Oxygen_saturation" property="oxygenSaturation" jdbcType="VARCHAR" />
- <result column="NIBP1" property="nibp1" jdbcType="VARCHAR" />
- <result column="NIBP2" property="nibp2" jdbcType="VARCHAR" />
- <result column="IBP1" property="ibp1" jdbcType="VARCHAR" />
- <result column="IBP2" property="ibp2" jdbcType="VARCHAR" />
- <result column="CVP" property="cvp" jdbcType="VARCHAR" />
- <result column="IAP" property="iap" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, Bed_no, machine_no, Ward_code, Record_time, Heart_rate, Oxygen_saturation, NIBP1,
- NIBP2, IBP1, IBP2, CVP, IAP
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from v_ewell_icu_jianhuyi_info
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from v_ewell_icu_jianhuyi_info
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
- insert into v_ewell_icu_jianhuyi_info (id, Bed_no, machine_no,
- Ward_code, Record_time, Heart_rate,
- Oxygen_saturation, NIBP1, NIBP2,
- IBP1, IBP2, CVP, IAP
- )
- values (#{id,jdbcType=INTEGER}, #{bedNo,jdbcType=VARCHAR}, #{machineNo,jdbcType=VARCHAR},
- #{wardCode,jdbcType=VARCHAR}, #{recordTime,jdbcType=TIMESTAMP}, #{heartRate,jdbcType=VARCHAR},
- #{oxygenSaturation,jdbcType=VARCHAR}, #{nibp1,jdbcType=VARCHAR}, #{nibp2,jdbcType=VARCHAR},
- #{ibp1,jdbcType=VARCHAR}, #{ibp2,jdbcType=VARCHAR}, #{cvp,jdbcType=VARCHAR}, #{iap,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
- insert into v_ewell_icu_jianhuyi_info
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="bedNo != null" >
- Bed_no,
- </if>
- <if test="machineNo != null" >
- machine_no,
- </if>
- <if test="wardCode != null" >
- Ward_code,
- </if>
- <if test="recordTime != null" >
- Record_time,
- </if>
- <if test="heartRate != null" >
- Heart_rate,
- </if>
- <if test="oxygenSaturation != null" >
- Oxygen_saturation,
- </if>
- <if test="nibp1 != null" >
- NIBP1,
- </if>
- <if test="nibp2 != null" >
- NIBP2,
- </if>
- <if test="ibp1 != null" >
- IBP1,
- </if>
- <if test="ibp2 != null" >
- IBP2,
- </if>
- <if test="cvp != null" >
- CVP,
- </if>
- <if test="iap != null" >
- IAP,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=INTEGER},
- </if>
- <if test="bedNo != null" >
- #{bedNo,jdbcType=VARCHAR},
- </if>
- <if test="machineNo != null" >
- #{machineNo,jdbcType=VARCHAR},
- </if>
- <if test="wardCode != null" >
- #{wardCode,jdbcType=VARCHAR},
- </if>
- <if test="recordTime != null" >
- #{recordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="heartRate != null" >
- #{heartRate,jdbcType=VARCHAR},
- </if>
- <if test="oxygenSaturation != null" >
- #{oxygenSaturation,jdbcType=VARCHAR},
- </if>
- <if test="nibp1 != null" >
- #{nibp1,jdbcType=VARCHAR},
- </if>
- <if test="nibp2 != null" >
- #{nibp2,jdbcType=VARCHAR},
- </if>
- <if test="ibp1 != null" >
- #{ibp1,jdbcType=VARCHAR},
- </if>
- <if test="ibp2 != null" >
- #{ibp2,jdbcType=VARCHAR},
- </if>
- <if test="cvp != null" >
- #{cvp,jdbcType=VARCHAR},
- </if>
- <if test="iap != null" >
- #{iap,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
- update v_ewell_icu_jianhuyi_info
- <set >
- <if test="bedNo != null" >
- Bed_no = #{bedNo,jdbcType=VARCHAR},
- </if>
- <if test="machineNo != null" >
- machine_no = #{machineNo,jdbcType=VARCHAR},
- </if>
- <if test="wardCode != null" >
- Ward_code = #{wardCode,jdbcType=VARCHAR},
- </if>
- <if test="recordTime != null" >
- Record_time = #{recordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="heartRate != null" >
- Heart_rate = #{heartRate,jdbcType=VARCHAR},
- </if>
- <if test="oxygenSaturation != null" >
- Oxygen_saturation = #{oxygenSaturation,jdbcType=VARCHAR},
- </if>
- <if test="nibp1 != null" >
- NIBP1 = #{nibp1,jdbcType=VARCHAR},
- </if>
- <if test="nibp2 != null" >
- NIBP2 = #{nibp2,jdbcType=VARCHAR},
- </if>
- <if test="ibp1 != null" >
- IBP1 = #{ibp1,jdbcType=VARCHAR},
- </if>
- <if test="ibp2 != null" >
- IBP2 = #{ibp2,jdbcType=VARCHAR},
- </if>
- <if test="cvp != null" >
- CVP = #{cvp,jdbcType=VARCHAR},
- </if>
- <if test="iap != null" >
- IAP = #{iap,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
- update v_ewell_icu_jianhuyi_info
- set Bed_no = #{bedNo,jdbcType=VARCHAR},
- machine_no = #{machineNo,jdbcType=VARCHAR},
- Ward_code = #{wardCode,jdbcType=VARCHAR},
- Record_time = #{recordTime,jdbcType=TIMESTAMP},
- Heart_rate = #{heartRate,jdbcType=VARCHAR},
- Oxygen_saturation = #{oxygenSaturation,jdbcType=VARCHAR},
- NIBP1 = #{nibp1,jdbcType=VARCHAR},
- NIBP2 = #{nibp2,jdbcType=VARCHAR},
- IBP1 = #{ibp1,jdbcType=VARCHAR},
- IBP2 = #{ibp2,jdbcType=VARCHAR},
- CVP = #{cvp,jdbcType=VARCHAR},
- IAP = #{iap,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <select id="selectByBedTime" resultMap="BaseResultMap">
- select <include refid="Base_Column_List"/>
- from v_ewell_icu_jianhuyi_info
- where Bed_no = #{bedNo,jdbcType=VARCHAR}
- and Ward_code = #{wardCode,jdbcType=VARCHAR}
- and Record_time = #{recordTime,jdbcType=TIMESTAMP}
- limit 1
- </select>
- <select id="selectByTime" resultMap="BaseResultMap">
- select <include refid="Base_Column_List"/>
- from v_ewell_icu_jianhuyi_info
- where Record_time = #{recordTime,jdbcType=TIMESTAMP}
- </select>
- </mapper>
|