SkinPopPartMapper.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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.base.mysqlmapper.SkinPopPartMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
  5. <id column="PSP_ID" property="pspId" jdbcType="INTEGER" />
  6. <result column="PatientNo" property="patientno" jdbcType="INTEGER" />
  7. <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
  8. <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
  9. <result column="DW_WardDm" property="dwWarddm" jdbcType="VARCHAR" />
  10. <result column="DB_BedNo" property="dbBedno" jdbcType="VARCHAR" />
  11. <result column="PSP_Inject_Part" property="pspInjectPart" jdbcType="VARCHAR" />
  12. <result column="PSP_Model" property="pspModel" jdbcType="INTEGER" />
  13. <result column="PSP_Recorder" property="pspRecorder" jdbcType="VARCHAR" />
  14. <result column="PSP_Record_Time" property="pspRecordTime" jdbcType="TIMESTAMP" />
  15. <result column="PSP_IsDel" property="pspIsdel" jdbcType="INTEGER" />
  16. <result column="PSP_Operator" property="pspOperator" jdbcType="VARCHAR" />
  17. <result column="PSP_OperatTime" property="pspOperattime" jdbcType="TIMESTAMP" />
  18. </resultMap>
  19. <sql id="Base_Column_List" >
  20. PSP_ID, PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PSP_Inject_Part, PSP_Model,
  21. PSP_Recorder, PSP_Record_Time, PSP_IsDel, PSP_Operator, PSP_OperatTime
  22. </sql>
  23. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  24. select
  25. <include refid="Base_Column_List" />
  26. from pda_skinpop_part
  27. where PSP_ID = #{pspId,jdbcType=INTEGER}
  28. </select>
  29. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  30. delete from pda_skinpop_part
  31. where PSP_ID = #{pspId,jdbcType=INTEGER}
  32. </delete>
  33. <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
  34. insert into pda_skinpop_part (PSP_ID, PatientNo, HI_ID,
  35. DD_DepDm, DW_WardDm, DB_BedNo,
  36. PSP_Inject_Part, PSP_Model, PSP_Recorder,
  37. PSP_Record_Time, PSP_IsDel, PSP_Operator,
  38. PSP_OperatTime)
  39. values (#{pspId,jdbcType=INTEGER}, #{patientno,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER},
  40. #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
  41. #{pspInjectPart,jdbcType=VARCHAR}, #{pspModel,jdbcType=INTEGER}, #{pspRecorder,jdbcType=VARCHAR},
  42. #{pspRecordTime,jdbcType=TIMESTAMP}, #{pspIsdel,jdbcType=INTEGER}, #{pspOperator,jdbcType=VARCHAR},
  43. #{pspOperattime,jdbcType=TIMESTAMP})
  44. </insert>
  45. <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
  46. insert into pda_skinpop_part
  47. <trim prefix="(" suffix=")" suffixOverrides="," >
  48. <if test="pspId != null" >
  49. PSP_ID,
  50. </if>
  51. <if test="patientno != null" >
  52. PatientNo,
  53. </if>
  54. <if test="hiId != null" >
  55. HI_ID,
  56. </if>
  57. <if test="ddDepdm != null" >
  58. DD_DepDm,
  59. </if>
  60. <if test="dwWarddm != null" >
  61. DW_WardDm,
  62. </if>
  63. <if test="dbBedno != null" >
  64. DB_BedNo,
  65. </if>
  66. <if test="pspInjectPart != null" >
  67. PSP_Inject_Part,
  68. </if>
  69. <if test="pspModel != null" >
  70. PSP_Model,
  71. </if>
  72. <if test="pspRecorder != null" >
  73. PSP_Recorder,
  74. </if>
  75. <if test="pspRecordTime != null" >
  76. PSP_Record_Time,
  77. </if>
  78. <if test="pspIsdel != null" >
  79. PSP_IsDel,
  80. </if>
  81. <if test="pspOperator != null" >
  82. PSP_Operator,
  83. </if>
  84. <if test="pspOperattime != null" >
  85. PSP_OperatTime,
  86. </if>
  87. </trim>
  88. <trim prefix="values (" suffix=")" suffixOverrides="," >
  89. <if test="pspId != null" >
  90. #{pspId,jdbcType=INTEGER},
  91. </if>
  92. <if test="patientno != null" >
  93. #{patientno,jdbcType=INTEGER},
  94. </if>
  95. <if test="hiId != null" >
  96. #{hiId,jdbcType=INTEGER},
  97. </if>
  98. <if test="ddDepdm != null" >
  99. #{ddDepdm,jdbcType=VARCHAR},
  100. </if>
  101. <if test="dwWarddm != null" >
  102. #{dwWarddm,jdbcType=VARCHAR},
  103. </if>
  104. <if test="dbBedno != null" >
  105. #{dbBedno,jdbcType=VARCHAR},
  106. </if>
  107. <if test="pspInjectPart != null" >
  108. #{pspInjectPart,jdbcType=VARCHAR},
  109. </if>
  110. <if test="pspModel != null" >
  111. #{pspModel,jdbcType=INTEGER},
  112. </if>
  113. <if test="pspRecorder != null" >
  114. #{pspRecorder,jdbcType=VARCHAR},
  115. </if>
  116. <if test="pspRecordTime != null" >
  117. #{pspRecordTime,jdbcType=TIMESTAMP},
  118. </if>
  119. <if test="pspIsdel != null" >
  120. #{pspIsdel,jdbcType=INTEGER},
  121. </if>
  122. <if test="pspOperator != null" >
  123. #{pspOperator,jdbcType=VARCHAR},
  124. </if>
  125. <if test="pspOperattime != null" >
  126. #{pspOperattime,jdbcType=TIMESTAMP},
  127. </if>
  128. </trim>
  129. </insert>
  130. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
  131. update pda_skinpop_part
  132. <set >
  133. <if test="patientno != null" >
  134. PatientNo = #{patientno,jdbcType=INTEGER},
  135. </if>
  136. <if test="hiId != null" >
  137. HI_ID = #{hiId,jdbcType=INTEGER},
  138. </if>
  139. <if test="ddDepdm != null" >
  140. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  141. </if>
  142. <if test="dwWarddm != null" >
  143. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  144. </if>
  145. <if test="dbBedno != null" >
  146. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  147. </if>
  148. <if test="pspInjectPart != null" >
  149. PSP_Inject_Part = #{pspInjectPart,jdbcType=VARCHAR},
  150. </if>
  151. <if test="pspModel != null" >
  152. PSP_Model = #{pspModel,jdbcType=INTEGER},
  153. </if>
  154. <if test="pspRecorder != null" >
  155. PSP_Recorder = #{pspRecorder,jdbcType=VARCHAR},
  156. </if>
  157. <if test="pspRecordTime != null" >
  158. PSP_Record_Time = #{pspRecordTime,jdbcType=TIMESTAMP},
  159. </if>
  160. <if test="pspIsdel != null" >
  161. PSP_IsDel = #{pspIsdel,jdbcType=INTEGER},
  162. </if>
  163. <if test="pspOperator != null" >
  164. PSP_Operator = #{pspOperator,jdbcType=VARCHAR},
  165. </if>
  166. <if test="pspOperattime != null" >
  167. PSP_OperatTime = #{pspOperattime,jdbcType=TIMESTAMP},
  168. </if>
  169. </set>
  170. where PSP_ID = #{pspId,jdbcType=INTEGER}
  171. </update>
  172. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopPart" >
  173. update pda_skinpop_part
  174. set PatientNo = #{patientno,jdbcType=INTEGER},
  175. HI_ID = #{hiId,jdbcType=INTEGER},
  176. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  177. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  178. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  179. PSP_Inject_Part = #{pspInjectPart,jdbcType=VARCHAR},
  180. PSP_Model = #{pspModel,jdbcType=INTEGER},
  181. PSP_Recorder = #{pspRecorder,jdbcType=VARCHAR},
  182. PSP_Record_Time = #{pspRecordTime,jdbcType=TIMESTAMP},
  183. PSP_IsDel = #{pspIsdel,jdbcType=INTEGER},
  184. PSP_Operator = #{pspOperator,jdbcType=VARCHAR},
  185. PSP_OperatTime = #{pspOperattime,jdbcType=TIMESTAMP}
  186. where PSP_ID = #{pspId,jdbcType=INTEGER}
  187. </update>
  188. </mapper>