IcuJianhuyiInfoMapper.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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.IcuJianhuyiInfoMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
  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="Heart_rate" property="heartRate" jdbcType="VARCHAR" />
  11. <result column="Oxygen_saturation" property="oxygenSaturation" jdbcType="VARCHAR" />
  12. <result column="NIBP1" property="nibp1" jdbcType="VARCHAR" />
  13. <result column="NIBP2" property="nibp2" jdbcType="VARCHAR" />
  14. <result column="IBP1" property="ibp1" jdbcType="VARCHAR" />
  15. <result column="IBP2" property="ibp2" jdbcType="VARCHAR" />
  16. <result column="CVP" property="cvp" jdbcType="VARCHAR" />
  17. <result column="IAP" property="iap" jdbcType="VARCHAR" />
  18. </resultMap>
  19. <sql id="Base_Column_List" >
  20. id, Bed_no, machine_no, Ward_code, Record_time, Heart_rate, Oxygen_saturation, NIBP1,
  21. NIBP2, IBP1, IBP2, CVP, IAP
  22. </sql>
  23. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  24. select
  25. <include refid="Base_Column_List" />
  26. from v_ewell_icu_jianhuyi_info
  27. where id = #{id,jdbcType=INTEGER}
  28. </select>
  29. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  30. delete from v_ewell_icu_jianhuyi_info
  31. where id = #{id,jdbcType=INTEGER}
  32. </delete>
  33. <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
  34. insert into v_ewell_icu_jianhuyi_info (id, Bed_no, machine_no,
  35. Ward_code, Record_time, Heart_rate,
  36. Oxygen_saturation, NIBP1, NIBP2,
  37. IBP1, IBP2, CVP, IAP
  38. )
  39. values (#{id,jdbcType=INTEGER}, #{bedNo,jdbcType=VARCHAR}, #{machineNo,jdbcType=VARCHAR},
  40. #{wardCode,jdbcType=VARCHAR}, #{recordTime,jdbcType=TIMESTAMP}, #{heartRate,jdbcType=VARCHAR},
  41. #{oxygenSaturation,jdbcType=VARCHAR}, #{nibp1,jdbcType=VARCHAR}, #{nibp2,jdbcType=VARCHAR},
  42. #{ibp1,jdbcType=VARCHAR}, #{ibp2,jdbcType=VARCHAR}, #{cvp,jdbcType=VARCHAR}, #{iap,jdbcType=VARCHAR}
  43. )
  44. </insert>
  45. <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
  46. insert into v_ewell_icu_jianhuyi_info
  47. <trim prefix="(" suffix=")" suffixOverrides="," >
  48. <if test="id != null" >
  49. id,
  50. </if>
  51. <if test="bedNo != null" >
  52. Bed_no,
  53. </if>
  54. <if test="machineNo != null" >
  55. machine_no,
  56. </if>
  57. <if test="wardCode != null" >
  58. Ward_code,
  59. </if>
  60. <if test="recordTime != null" >
  61. Record_time,
  62. </if>
  63. <if test="heartRate != null" >
  64. Heart_rate,
  65. </if>
  66. <if test="oxygenSaturation != null" >
  67. Oxygen_saturation,
  68. </if>
  69. <if test="nibp1 != null" >
  70. NIBP1,
  71. </if>
  72. <if test="nibp2 != null" >
  73. NIBP2,
  74. </if>
  75. <if test="ibp1 != null" >
  76. IBP1,
  77. </if>
  78. <if test="ibp2 != null" >
  79. IBP2,
  80. </if>
  81. <if test="cvp != null" >
  82. CVP,
  83. </if>
  84. <if test="iap != null" >
  85. IAP,
  86. </if>
  87. </trim>
  88. <trim prefix="values (" suffix=")" suffixOverrides="," >
  89. <if test="id != null" >
  90. #{id,jdbcType=INTEGER},
  91. </if>
  92. <if test="bedNo != null" >
  93. #{bedNo,jdbcType=VARCHAR},
  94. </if>
  95. <if test="machineNo != null" >
  96. #{machineNo,jdbcType=VARCHAR},
  97. </if>
  98. <if test="wardCode != null" >
  99. #{wardCode,jdbcType=VARCHAR},
  100. </if>
  101. <if test="recordTime != null" >
  102. #{recordTime,jdbcType=TIMESTAMP},
  103. </if>
  104. <if test="heartRate != null" >
  105. #{heartRate,jdbcType=VARCHAR},
  106. </if>
  107. <if test="oxygenSaturation != null" >
  108. #{oxygenSaturation,jdbcType=VARCHAR},
  109. </if>
  110. <if test="nibp1 != null" >
  111. #{nibp1,jdbcType=VARCHAR},
  112. </if>
  113. <if test="nibp2 != null" >
  114. #{nibp2,jdbcType=VARCHAR},
  115. </if>
  116. <if test="ibp1 != null" >
  117. #{ibp1,jdbcType=VARCHAR},
  118. </if>
  119. <if test="ibp2 != null" >
  120. #{ibp2,jdbcType=VARCHAR},
  121. </if>
  122. <if test="cvp != null" >
  123. #{cvp,jdbcType=VARCHAR},
  124. </if>
  125. <if test="iap != null" >
  126. #{iap,jdbcType=VARCHAR},
  127. </if>
  128. </trim>
  129. </insert>
  130. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
  131. update v_ewell_icu_jianhuyi_info
  132. <set >
  133. <if test="bedNo != null" >
  134. Bed_no = #{bedNo,jdbcType=VARCHAR},
  135. </if>
  136. <if test="machineNo != null" >
  137. machine_no = #{machineNo,jdbcType=VARCHAR},
  138. </if>
  139. <if test="wardCode != null" >
  140. Ward_code = #{wardCode,jdbcType=VARCHAR},
  141. </if>
  142. <if test="recordTime != null" >
  143. Record_time = #{recordTime,jdbcType=TIMESTAMP},
  144. </if>
  145. <if test="heartRate != null" >
  146. Heart_rate = #{heartRate,jdbcType=VARCHAR},
  147. </if>
  148. <if test="oxygenSaturation != null" >
  149. Oxygen_saturation = #{oxygenSaturation,jdbcType=VARCHAR},
  150. </if>
  151. <if test="nibp1 != null" >
  152. NIBP1 = #{nibp1,jdbcType=VARCHAR},
  153. </if>
  154. <if test="nibp2 != null" >
  155. NIBP2 = #{nibp2,jdbcType=VARCHAR},
  156. </if>
  157. <if test="ibp1 != null" >
  158. IBP1 = #{ibp1,jdbcType=VARCHAR},
  159. </if>
  160. <if test="ibp2 != null" >
  161. IBP2 = #{ibp2,jdbcType=VARCHAR},
  162. </if>
  163. <if test="cvp != null" >
  164. CVP = #{cvp,jdbcType=VARCHAR},
  165. </if>
  166. <if test="iap != null" >
  167. IAP = #{iap,jdbcType=VARCHAR},
  168. </if>
  169. </set>
  170. where id = #{id,jdbcType=INTEGER}
  171. </update>
  172. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysql2model.IcuJianhuyiInfo" >
  173. update v_ewell_icu_jianhuyi_info
  174. set Bed_no = #{bedNo,jdbcType=VARCHAR},
  175. machine_no = #{machineNo,jdbcType=VARCHAR},
  176. Ward_code = #{wardCode,jdbcType=VARCHAR},
  177. Record_time = #{recordTime,jdbcType=TIMESTAMP},
  178. Heart_rate = #{heartRate,jdbcType=VARCHAR},
  179. Oxygen_saturation = #{oxygenSaturation,jdbcType=VARCHAR},
  180. NIBP1 = #{nibp1,jdbcType=VARCHAR},
  181. NIBP2 = #{nibp2,jdbcType=VARCHAR},
  182. IBP1 = #{ibp1,jdbcType=VARCHAR},
  183. IBP2 = #{ibp2,jdbcType=VARCHAR},
  184. CVP = #{cvp,jdbcType=VARCHAR},
  185. IAP = #{iap,jdbcType=VARCHAR}
  186. where id = #{id,jdbcType=INTEGER}
  187. </update>
  188. <select id="selectByBedTime" resultMap="BaseResultMap">
  189. select <include refid="Base_Column_List"/>
  190. from v_ewell_icu_jianhuyi_info
  191. where Bed_no = #{bedNo,jdbcType=VARCHAR}
  192. and Ward_code = #{wardCode,jdbcType=VARCHAR}
  193. and Record_time = #{recordTime,jdbcType=TIMESTAMP}
  194. limit 1
  195. </select>
  196. <select id="selectByTime" resultMap="BaseResultMap">
  197. select <include refid="Base_Column_List"/>
  198. from v_ewell_icu_jianhuyi_info
  199. where Record_time = #{recordTime,jdbcType=TIMESTAMP}
  200. </select>
  201. </mapper>