SkinPopSetMapper.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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.SkinPopSetMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
  5. <id column="PSS_ID" property="pssId" 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="PSS_AdviceCode" property="pssAdvicecode" jdbcType="VARCHAR" />
  12. <result column="PSS_BarCode" property="pssBarcode" jdbcType="VARCHAR" />
  13. <result column="PSS_DrugCode" property="pssDrugcode" jdbcType="VARCHAR" />
  14. <result column="PSS_DrugName" property="pssDrugname" jdbcType="VARCHAR" />
  15. <result column="PSS_StartTime" property="pssStarttime" jdbcType="TIMESTAMP" />
  16. <result column="PSS_EndTime" property="pssEndtime" jdbcType="TIMESTAMP" />
  17. <result column="PSS_Amount" property="pssAmount" jdbcType="DOUBLE" />
  18. <result column="PSS_Unit" property="pssUnit" jdbcType="VARCHAR" />
  19. <result column="PSS_Recorder" property="pssRecorder" jdbcType="VARCHAR" />
  20. <result column="PSS_Record_Time" property="pssRecordTime" jdbcType="TIMESTAMP" />
  21. <result column="PSS_IsDel" property="pssIsdel" jdbcType="INTEGER" />
  22. <result column="PSS_Operator" property="pssOperator" jdbcType="VARCHAR" />
  23. <result column="PSS_OperatTime" property="pssOperattime" jdbcType="TIMESTAMP" />
  24. </resultMap>
  25. <sql id="Base_Column_List" >
  26. PSS_ID, PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PSS_AdviceCode, PSS_BarCode,
  27. PSS_DrugCode, PSS_DrugName, PSS_StartTime, PSS_EndTime, PSS_Amount, PSS_Unit, PSS_Recorder,
  28. PSS_Record_Time, PSS_IsDel, PSS_Operator, PSS_OperatTime
  29. </sql>
  30. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  31. select
  32. <include refid="Base_Column_List" />
  33. from pda_skinpop_set
  34. where PSS_ID = #{pssId,jdbcType=INTEGER}
  35. </select>
  36. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  37. delete from pda_skinpop_set
  38. where PSS_ID = #{pssId,jdbcType=INTEGER}
  39. </delete>
  40. <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
  41. insert into pda_skinpop_set (PSS_ID, PatientNo, HI_ID,
  42. DD_DepDm, DW_WardDm, DB_BedNo,
  43. PSS_AdviceCode, PSS_BarCode, PSS_DrugCode,
  44. PSS_DrugName, PSS_StartTime, PSS_EndTime,
  45. PSS_Amount, PSS_Unit, PSS_Recorder,
  46. PSS_Record_Time, PSS_IsDel, PSS_Operator,
  47. PSS_OperatTime)
  48. values (#{pssId,jdbcType=INTEGER}, #{patientno,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER},
  49. #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR},
  50. #{pssAdvicecode,jdbcType=VARCHAR}, #{pssBarcode,jdbcType=VARCHAR}, #{pssDrugcode,jdbcType=VARCHAR},
  51. #{pssDrugname,jdbcType=VARCHAR}, #{pssStarttime,jdbcType=TIMESTAMP}, #{pssEndtime,jdbcType=TIMESTAMP},
  52. #{pssAmount,jdbcType=DOUBLE}, #{pssUnit,jdbcType=VARCHAR}, #{pssRecorder,jdbcType=VARCHAR},
  53. #{pssRecordTime,jdbcType=TIMESTAMP}, #{pssIsdel,jdbcType=INTEGER}, #{pssOperator,jdbcType=VARCHAR},
  54. #{pssOperattime,jdbcType=TIMESTAMP})
  55. </insert>
  56. <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
  57. insert into pda_skinpop_set
  58. <trim prefix="(" suffix=")" suffixOverrides="," >
  59. <if test="pssId != null" >
  60. PSS_ID,
  61. </if>
  62. <if test="patientno != null" >
  63. PatientNo,
  64. </if>
  65. <if test="hiId != null" >
  66. HI_ID,
  67. </if>
  68. <if test="ddDepdm != null" >
  69. DD_DepDm,
  70. </if>
  71. <if test="dwWarddm != null" >
  72. DW_WardDm,
  73. </if>
  74. <if test="dbBedno != null" >
  75. DB_BedNo,
  76. </if>
  77. <if test="pssAdvicecode != null" >
  78. PSS_AdviceCode,
  79. </if>
  80. <if test="pssBarcode != null" >
  81. PSS_BarCode,
  82. </if>
  83. <if test="pssDrugcode != null" >
  84. PSS_DrugCode,
  85. </if>
  86. <if test="pssDrugname != null" >
  87. PSS_DrugName,
  88. </if>
  89. <if test="pssStarttime != null" >
  90. PSS_StartTime,
  91. </if>
  92. <if test="pssEndtime != null" >
  93. PSS_EndTime,
  94. </if>
  95. <if test="pssAmount != null" >
  96. PSS_Amount,
  97. </if>
  98. <if test="pssUnit != null" >
  99. PSS_Unit,
  100. </if>
  101. <if test="pssRecorder != null" >
  102. PSS_Recorder,
  103. </if>
  104. <if test="pssRecordTime != null" >
  105. PSS_Record_Time,
  106. </if>
  107. <if test="pssIsdel != null" >
  108. PSS_IsDel,
  109. </if>
  110. <if test="pssOperator != null" >
  111. PSS_Operator,
  112. </if>
  113. <if test="pssOperattime != null" >
  114. PSS_OperatTime,
  115. </if>
  116. </trim>
  117. <trim prefix="values (" suffix=")" suffixOverrides="," >
  118. <if test="pssId != null" >
  119. #{pssId,jdbcType=INTEGER},
  120. </if>
  121. <if test="patientno != null" >
  122. #{patientno,jdbcType=INTEGER},
  123. </if>
  124. <if test="hiId != null" >
  125. #{hiId,jdbcType=INTEGER},
  126. </if>
  127. <if test="ddDepdm != null" >
  128. #{ddDepdm,jdbcType=VARCHAR},
  129. </if>
  130. <if test="dwWarddm != null" >
  131. #{dwWarddm,jdbcType=VARCHAR},
  132. </if>
  133. <if test="dbBedno != null" >
  134. #{dbBedno,jdbcType=VARCHAR},
  135. </if>
  136. <if test="pssAdvicecode != null" >
  137. #{pssAdvicecode,jdbcType=VARCHAR},
  138. </if>
  139. <if test="pssBarcode != null" >
  140. #{pssBarcode,jdbcType=VARCHAR},
  141. </if>
  142. <if test="pssDrugcode != null" >
  143. #{pssDrugcode,jdbcType=VARCHAR},
  144. </if>
  145. <if test="pssDrugname != null" >
  146. #{pssDrugname,jdbcType=VARCHAR},
  147. </if>
  148. <if test="pssStarttime != null" >
  149. #{pssStarttime,jdbcType=TIMESTAMP},
  150. </if>
  151. <if test="pssEndtime != null" >
  152. #{pssEndtime,jdbcType=TIMESTAMP},
  153. </if>
  154. <if test="pssAmount != null" >
  155. #{pssAmount,jdbcType=DOUBLE},
  156. </if>
  157. <if test="pssUnit != null" >
  158. #{pssUnit,jdbcType=VARCHAR},
  159. </if>
  160. <if test="pssRecorder != null" >
  161. #{pssRecorder,jdbcType=VARCHAR},
  162. </if>
  163. <if test="pssRecordTime != null" >
  164. #{pssRecordTime,jdbcType=TIMESTAMP},
  165. </if>
  166. <if test="pssIsdel != null" >
  167. #{pssIsdel,jdbcType=INTEGER},
  168. </if>
  169. <if test="pssOperator != null" >
  170. #{pssOperator,jdbcType=VARCHAR},
  171. </if>
  172. <if test="pssOperattime != null" >
  173. #{pssOperattime,jdbcType=TIMESTAMP},
  174. </if>
  175. </trim>
  176. </insert>
  177. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
  178. update pda_skinpop_set
  179. <set >
  180. <if test="patientno != null" >
  181. PatientNo = #{patientno,jdbcType=INTEGER},
  182. </if>
  183. <if test="hiId != null" >
  184. HI_ID = #{hiId,jdbcType=INTEGER},
  185. </if>
  186. <if test="ddDepdm != null" >
  187. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  188. </if>
  189. <if test="dwWarddm != null" >
  190. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  191. </if>
  192. <if test="dbBedno != null" >
  193. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  194. </if>
  195. <if test="pssAdvicecode != null" >
  196. PSS_AdviceCode = #{pssAdvicecode,jdbcType=VARCHAR},
  197. </if>
  198. <if test="pssBarcode != null" >
  199. PSS_BarCode = #{pssBarcode,jdbcType=VARCHAR},
  200. </if>
  201. <if test="pssDrugcode != null" >
  202. PSS_DrugCode = #{pssDrugcode,jdbcType=VARCHAR},
  203. </if>
  204. <if test="pssDrugname != null" >
  205. PSS_DrugName = #{pssDrugname,jdbcType=VARCHAR},
  206. </if>
  207. <if test="pssStarttime != null" >
  208. PSS_StartTime = #{pssStarttime,jdbcType=TIMESTAMP},
  209. </if>
  210. <if test="pssEndtime != null" >
  211. PSS_EndTime = #{pssEndtime,jdbcType=TIMESTAMP},
  212. </if>
  213. <if test="pssAmount != null" >
  214. PSS_Amount = #{pssAmount,jdbcType=DOUBLE},
  215. </if>
  216. <if test="pssUnit != null" >
  217. PSS_Unit = #{pssUnit,jdbcType=VARCHAR},
  218. </if>
  219. <if test="pssRecorder != null" >
  220. PSS_Recorder = #{pssRecorder,jdbcType=VARCHAR},
  221. </if>
  222. <if test="pssRecordTime != null" >
  223. PSS_Record_Time = #{pssRecordTime,jdbcType=TIMESTAMP},
  224. </if>
  225. <if test="pssIsdel != null" >
  226. PSS_IsDel = #{pssIsdel,jdbcType=INTEGER},
  227. </if>
  228. <if test="pssOperator != null" >
  229. PSS_Operator = #{pssOperator,jdbcType=VARCHAR},
  230. </if>
  231. <if test="pssOperattime != null" >
  232. PSS_OperatTime = #{pssOperattime,jdbcType=TIMESTAMP},
  233. </if>
  234. </set>
  235. where PSS_ID = #{pssId,jdbcType=INTEGER}
  236. </update>
  237. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SkinPopSet" >
  238. update pda_skinpop_set
  239. set PatientNo = #{patientno,jdbcType=INTEGER},
  240. HI_ID = #{hiId,jdbcType=INTEGER},
  241. DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
  242. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  243. DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
  244. PSS_AdviceCode = #{pssAdvicecode,jdbcType=VARCHAR},
  245. PSS_BarCode = #{pssBarcode,jdbcType=VARCHAR},
  246. PSS_DrugCode = #{pssDrugcode,jdbcType=VARCHAR},
  247. PSS_DrugName = #{pssDrugname,jdbcType=VARCHAR},
  248. PSS_StartTime = #{pssStarttime,jdbcType=TIMESTAMP},
  249. PSS_EndTime = #{pssEndtime,jdbcType=TIMESTAMP},
  250. PSS_Amount = #{pssAmount,jdbcType=DOUBLE},
  251. PSS_Unit = #{pssUnit,jdbcType=VARCHAR},
  252. PSS_Recorder = #{pssRecorder,jdbcType=VARCHAR},
  253. PSS_Record_Time = #{pssRecordTime,jdbcType=TIMESTAMP},
  254. PSS_IsDel = #{pssIsdel,jdbcType=INTEGER},
  255. PSS_Operator = #{pssOperator,jdbcType=VARCHAR},
  256. PSS_OperatTime = #{pssOperattime,jdbcType=TIMESTAMP}
  257. where PSS_ID = #{pssId,jdbcType=INTEGER}
  258. </update>
  259. </mapper>