123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <?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.IcuHuxijiInfoMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
- <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="Peak_pressure" property="peakPressure" jdbcType="VARCHAR" />
- <result column="Average_pressure" property="averagePressure" jdbcType="VARCHAR" />
- <result column="VT" property="vt" jdbcType="VARCHAR" />
- <result column="f" property="f" jdbcType="VARCHAR" />
- <result column="PSV" property="psv" jdbcType="VARCHAR" />
- <result column="PEEP" property="peep" jdbcType="VARCHAR" />
- <result column="Oxygen_saturation" property="oxygenSaturation" jdbcType="VARCHAR" />
- <result column="IE" property="ie" jdbcType="VARCHAR" />
- <result column="mode" property="mode" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, Bed_no, machine_no, Ward_code, Record_time, Peak_pressure, Average_pressure,
- VT, f, PSV, PEEP, Oxygen_saturation, IE, mode
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from v_ewell_icu_huxiji_info
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from v_ewell_icu_huxiji_info
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
- insert into v_ewell_icu_huxiji_info (id, Bed_no, machine_no,
- Ward_code, Record_time, Peak_pressure,
- Average_pressure, VT, f,
- PSV, PEEP, Oxygen_saturation,
- IE, mode)
- values (#{id,jdbcType=INTEGER}, #{bedNo,jdbcType=VARCHAR}, #{machineNo,jdbcType=VARCHAR},
- #{wardCode,jdbcType=VARCHAR}, #{recordTime,jdbcType=TIMESTAMP}, #{peakPressure,jdbcType=VARCHAR},
- #{averagePressure,jdbcType=VARCHAR}, #{vt,jdbcType=VARCHAR}, #{f,jdbcType=VARCHAR},
- #{psv,jdbcType=VARCHAR}, #{peep,jdbcType=VARCHAR}, #{oxygenSaturation,jdbcType=VARCHAR},
- #{ie,jdbcType=VARCHAR}, #{mode,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
- insert into v_ewell_icu_huxiji_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="peakPressure != null" >
- Peak_pressure,
- </if>
- <if test="averagePressure != null" >
- Average_pressure,
- </if>
- <if test="vt != null" >
- VT,
- </if>
- <if test="f != null" >
- f,
- </if>
- <if test="psv != null" >
- PSV,
- </if>
- <if test="peep != null" >
- PEEP,
- </if>
- <if test="oxygenSaturation != null" >
- Oxygen_saturation,
- </if>
- <if test="ie != null" >
- IE,
- </if>
- <if test="mode != null" >
- mode,
- </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="peakPressure != null" >
- #{peakPressure,jdbcType=VARCHAR},
- </if>
- <if test="averagePressure != null" >
- #{averagePressure,jdbcType=VARCHAR},
- </if>
- <if test="vt != null" >
- #{vt,jdbcType=VARCHAR},
- </if>
- <if test="f != null" >
- #{f,jdbcType=VARCHAR},
- </if>
- <if test="psv != null" >
- #{psv,jdbcType=VARCHAR},
- </if>
- <if test="peep != null" >
- #{peep,jdbcType=VARCHAR},
- </if>
- <if test="oxygenSaturation != null" >
- #{oxygenSaturation,jdbcType=VARCHAR},
- </if>
- <if test="ie != null" >
- #{ie,jdbcType=VARCHAR},
- </if>
- <if test="mode != null" >
- #{mode,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
- update v_ewell_icu_huxiji_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="peakPressure != null" >
- Peak_pressure = #{peakPressure,jdbcType=VARCHAR},
- </if>
- <if test="averagePressure != null" >
- Average_pressure = #{averagePressure,jdbcType=VARCHAR},
- </if>
- <if test="vt != null" >
- VT = #{vt,jdbcType=VARCHAR},
- </if>
- <if test="f != null" >
- f = #{f,jdbcType=VARCHAR},
- </if>
- <if test="psv != null" >
- PSV = #{psv,jdbcType=VARCHAR},
- </if>
- <if test="peep != null" >
- PEEP = #{peep,jdbcType=VARCHAR},
- </if>
- <if test="oxygenSaturation != null" >
- Oxygen_saturation = #{oxygenSaturation,jdbcType=VARCHAR},
- </if>
- <if test="ie != null" >
- IE = #{ie,jdbcType=VARCHAR},
- </if>
- <if test="mode != null" >
- mode = #{mode,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
- update v_ewell_icu_huxiji_info
- set Bed_no = #{bedNo,jdbcType=VARCHAR},
- machine_no = #{machineNo,jdbcType=VARCHAR},
- Ward_code = #{wardCode,jdbcType=VARCHAR},
- Record_time = #{recordTime,jdbcType=TIMESTAMP},
- Peak_pressure = #{peakPressure,jdbcType=VARCHAR},
- Average_pressure = #{averagePressure,jdbcType=VARCHAR},
- VT = #{vt,jdbcType=VARCHAR},
- f = #{f,jdbcType=VARCHAR},
- PSV = #{psv,jdbcType=VARCHAR},
- PEEP = #{peep,jdbcType=VARCHAR},
- Oxygen_saturation = #{oxygenSaturation,jdbcType=VARCHAR},
- IE = #{ie,jdbcType=VARCHAR},
- mode = #{mode,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <select id="selectByBedTime" resultMap="BaseResultMap">
- select <include refid="Base_Column_List"/>
- from v_ewell_icu_huxiji_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_huxiji_info
- where Record_time = #{recordTime,jdbcType=TIMESTAMP}
- </select>
- </mapper>
|