IcuHuxijiInfoMapper.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.xinxin.topro.inpnurseservice.mysql2mapper.IcuHuxijiInfoMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
  5. <id column="id" property="id" jdbcType="INTEGER" />
  6. <result column="Bed_no" property="bedNo" jdbcType="VARCHAR" />
  7. <result column="machine_no" property="machineNo" jdbcType="VARCHAR" />
  8. <result column="Ward_code" property="wardCode" jdbcType="VARCHAR" />
  9. <result column="Record_time" property="recordTime" jdbcType="TIMESTAMP" />
  10. <result column="Peak_pressure" property="peakPressure" jdbcType="VARCHAR" />
  11. <result column="Average_pressure" property="averagePressure" jdbcType="VARCHAR" />
  12. <result column="VT" property="vt" jdbcType="VARCHAR" />
  13. <result column="f" property="f" jdbcType="VARCHAR" />
  14. <result column="PSV" property="psv" jdbcType="VARCHAR" />
  15. <result column="PEEP" property="peep" jdbcType="VARCHAR" />
  16. <result column="Oxygen_saturation" property="oxygenSaturation" jdbcType="VARCHAR" />
  17. <result column="IE" property="ie" jdbcType="VARCHAR" />
  18. <result column="mode" property="mode" jdbcType="VARCHAR" />
  19. </resultMap>
  20. <sql id="Base_Column_List" >
  21. id, Bed_no, machine_no, Ward_code, Record_time, Peak_pressure, Average_pressure,
  22. VT, f, PSV, PEEP, Oxygen_saturation, IE, mode
  23. </sql>
  24. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  25. select
  26. <include refid="Base_Column_List" />
  27. from v_ewell_icu_huxiji_info
  28. where id = #{id,jdbcType=INTEGER}
  29. </select>
  30. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  31. delete from v_ewell_icu_huxiji_info
  32. where id = #{id,jdbcType=INTEGER}
  33. </delete>
  34. <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
  35. insert into v_ewell_icu_huxiji_info (id, Bed_no, machine_no,
  36. Ward_code, Record_time, Peak_pressure,
  37. Average_pressure, VT, f,
  38. PSV, PEEP, Oxygen_saturation,
  39. IE, mode)
  40. values (#{id,jdbcType=INTEGER}, #{bedNo,jdbcType=VARCHAR}, #{machineNo,jdbcType=VARCHAR},
  41. #{wardCode,jdbcType=VARCHAR}, #{recordTime,jdbcType=TIMESTAMP}, #{peakPressure,jdbcType=VARCHAR},
  42. #{averagePressure,jdbcType=VARCHAR}, #{vt,jdbcType=VARCHAR}, #{f,jdbcType=VARCHAR},
  43. #{psv,jdbcType=VARCHAR}, #{peep,jdbcType=VARCHAR}, #{oxygenSaturation,jdbcType=VARCHAR},
  44. #{ie,jdbcType=VARCHAR}, #{mode,jdbcType=VARCHAR})
  45. </insert>
  46. <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
  47. insert into v_ewell_icu_huxiji_info
  48. <trim prefix="(" suffix=")" suffixOverrides="," >
  49. <if test="id != null" >
  50. id,
  51. </if>
  52. <if test="bedNo != null" >
  53. Bed_no,
  54. </if>
  55. <if test="machineNo != null" >
  56. machine_no,
  57. </if>
  58. <if test="wardCode != null" >
  59. Ward_code,
  60. </if>
  61. <if test="recordTime != null" >
  62. Record_time,
  63. </if>
  64. <if test="peakPressure != null" >
  65. Peak_pressure,
  66. </if>
  67. <if test="averagePressure != null" >
  68. Average_pressure,
  69. </if>
  70. <if test="vt != null" >
  71. VT,
  72. </if>
  73. <if test="f != null" >
  74. f,
  75. </if>
  76. <if test="psv != null" >
  77. PSV,
  78. </if>
  79. <if test="peep != null" >
  80. PEEP,
  81. </if>
  82. <if test="oxygenSaturation != null" >
  83. Oxygen_saturation,
  84. </if>
  85. <if test="ie != null" >
  86. IE,
  87. </if>
  88. <if test="mode != null" >
  89. mode,
  90. </if>
  91. </trim>
  92. <trim prefix="values (" suffix=")" suffixOverrides="," >
  93. <if test="id != null" >
  94. #{id,jdbcType=INTEGER},
  95. </if>
  96. <if test="bedNo != null" >
  97. #{bedNo,jdbcType=VARCHAR},
  98. </if>
  99. <if test="machineNo != null" >
  100. #{machineNo,jdbcType=VARCHAR},
  101. </if>
  102. <if test="wardCode != null" >
  103. #{wardCode,jdbcType=VARCHAR},
  104. </if>
  105. <if test="recordTime != null" >
  106. #{recordTime,jdbcType=TIMESTAMP},
  107. </if>
  108. <if test="peakPressure != null" >
  109. #{peakPressure,jdbcType=VARCHAR},
  110. </if>
  111. <if test="averagePressure != null" >
  112. #{averagePressure,jdbcType=VARCHAR},
  113. </if>
  114. <if test="vt != null" >
  115. #{vt,jdbcType=VARCHAR},
  116. </if>
  117. <if test="f != null" >
  118. #{f,jdbcType=VARCHAR},
  119. </if>
  120. <if test="psv != null" >
  121. #{psv,jdbcType=VARCHAR},
  122. </if>
  123. <if test="peep != null" >
  124. #{peep,jdbcType=VARCHAR},
  125. </if>
  126. <if test="oxygenSaturation != null" >
  127. #{oxygenSaturation,jdbcType=VARCHAR},
  128. </if>
  129. <if test="ie != null" >
  130. #{ie,jdbcType=VARCHAR},
  131. </if>
  132. <if test="mode != null" >
  133. #{mode,jdbcType=VARCHAR},
  134. </if>
  135. </trim>
  136. </insert>
  137. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
  138. update v_ewell_icu_huxiji_info
  139. <set >
  140. <if test="bedNo != null" >
  141. Bed_no = #{bedNo,jdbcType=VARCHAR},
  142. </if>
  143. <if test="machineNo != null" >
  144. machine_no = #{machineNo,jdbcType=VARCHAR},
  145. </if>
  146. <if test="wardCode != null" >
  147. Ward_code = #{wardCode,jdbcType=VARCHAR},
  148. </if>
  149. <if test="recordTime != null" >
  150. Record_time = #{recordTime,jdbcType=TIMESTAMP},
  151. </if>
  152. <if test="peakPressure != null" >
  153. Peak_pressure = #{peakPressure,jdbcType=VARCHAR},
  154. </if>
  155. <if test="averagePressure != null" >
  156. Average_pressure = #{averagePressure,jdbcType=VARCHAR},
  157. </if>
  158. <if test="vt != null" >
  159. VT = #{vt,jdbcType=VARCHAR},
  160. </if>
  161. <if test="f != null" >
  162. f = #{f,jdbcType=VARCHAR},
  163. </if>
  164. <if test="psv != null" >
  165. PSV = #{psv,jdbcType=VARCHAR},
  166. </if>
  167. <if test="peep != null" >
  168. PEEP = #{peep,jdbcType=VARCHAR},
  169. </if>
  170. <if test="oxygenSaturation != null" >
  171. Oxygen_saturation = #{oxygenSaturation,jdbcType=VARCHAR},
  172. </if>
  173. <if test="ie != null" >
  174. IE = #{ie,jdbcType=VARCHAR},
  175. </if>
  176. <if test="mode != null" >
  177. mode = #{mode,jdbcType=VARCHAR},
  178. </if>
  179. </set>
  180. where id = #{id,jdbcType=INTEGER}
  181. </update>
  182. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuHuxijiInfo" >
  183. update v_ewell_icu_huxiji_info
  184. set Bed_no = #{bedNo,jdbcType=VARCHAR},
  185. machine_no = #{machineNo,jdbcType=VARCHAR},
  186. Ward_code = #{wardCode,jdbcType=VARCHAR},
  187. Record_time = #{recordTime,jdbcType=TIMESTAMP},
  188. Peak_pressure = #{peakPressure,jdbcType=VARCHAR},
  189. Average_pressure = #{averagePressure,jdbcType=VARCHAR},
  190. VT = #{vt,jdbcType=VARCHAR},
  191. f = #{f,jdbcType=VARCHAR},
  192. PSV = #{psv,jdbcType=VARCHAR},
  193. PEEP = #{peep,jdbcType=VARCHAR},
  194. Oxygen_saturation = #{oxygenSaturation,jdbcType=VARCHAR},
  195. IE = #{ie,jdbcType=VARCHAR},
  196. mode = #{mode,jdbcType=VARCHAR}
  197. where id = #{id,jdbcType=INTEGER}
  198. </update>
  199. <select id="selectByBedTime" resultMap="BaseResultMap">
  200. select <include refid="Base_Column_List"/>
  201. from v_ewell_icu_huxiji_info
  202. where Bed_no = #{bedNo,jdbcType=VARCHAR}
  203. and Ward_code = #{wardCode,jdbcType=VARCHAR}
  204. and Record_time = #{recordTime,jdbcType=TIMESTAMP}
  205. limit 1
  206. </select>
  207. <select id="selectByTime" resultMap="BaseResultMap">
  208. select <include refid="Base_Column_List"/>
  209. from v_ewell_icu_huxiji_info
  210. where Record_time = #{recordTime,jdbcType=TIMESTAMP}
  211. </select>
  212. </mapper>