DicWardMapper.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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.sysservice.dao.mysqlmapper.DicWarddMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.sysservice.dao.mysqlmodel.DicWard" >
  5. <id column="DW_ID" property="dwId" jdbcType="INTEGER" />
  6. <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
  7. <result column="DW_WardDm" property="dwWarddm" jdbcType="VARCHAR" />
  8. <result column="DW_WardName" property="dwWardname" jdbcType="VARCHAR" />
  9. <result column="DW_PinyinCode" property="dwPinyincode" jdbcType="VARCHAR" />
  10. <result column="DW_WubiCode" property="dwWubicode" jdbcType="VARCHAR" />
  11. <result column="DW_OtherCode" property="dwOthercode" jdbcType="VARCHAR" />
  12. <result column="UI_ID" property="uiId" jdbcType="VARCHAR" />
  13. <result column="DW_Date" property="dwDate" jdbcType="TIMESTAMP" />
  14. <result column="DW_Type" property="dwType" jdbcType="INTEGER" />
  15. <result column="DW_EngName" property="dwEngname" jdbcType="VARCHAR" />
  16. <result column="DW_MaxBed" property="dwMaxbed" jdbcType="INTEGER" />
  17. <result column="DW_Sord" property="dwSord" jdbcType="INTEGER" />
  18. <result column="DW_IsDel" property="dwIsdel" jdbcType="INTEGER" />
  19. </resultMap>
  20. <sql id="Base_Column_List" >
  21. DW_ID, HI_ID, DW_WardDm, DW_WardName, DW_PinyinCode, DW_WubiCode, DW_OtherCode, UI_ID,
  22. DW_Date, DW_Type, DW_EngName, DW_MaxBed, DW_Sord, DW_IsDel
  23. </sql>
  24. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  25. select
  26. <include refid="Base_Column_List" />
  27. from dic_ward
  28. where DW_ID = #{dwId,jdbcType=INTEGER}
  29. </select>
  30. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  31. delete from dic_ward
  32. where DW_ID = #{dwId,jdbcType=INTEGER}
  33. </delete>
  34. <insert id="insert" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicWard" >
  35. insert into dic_ward (DW_ID, HI_ID, DW_WardDm,
  36. DW_WardName, DW_PinyinCode, DW_WubiCode,
  37. DW_OtherCode, UI_ID, DW_Date,
  38. DW_Type, DW_EngName, DW_MaxBed,
  39. DW_Sord, DW_IsDel)
  40. values (#{dwId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{dwWarddm,jdbcType=VARCHAR},
  41. #{dwWardname,jdbcType=VARCHAR}, #{dwPinyincode,jdbcType=VARCHAR}, #{dwWubicode,jdbcType=VARCHAR},
  42. #{dwOthercode,jdbcType=VARCHAR}, #{uiId,jdbcType=VARCHAR}, #{dwDate,jdbcType=TIMESTAMP},
  43. #{dwType,jdbcType=INTEGER}, #{dwEngname,jdbcType=VARCHAR}, #{dwMaxbed,jdbcType=INTEGER},
  44. #{dwSord,jdbcType=INTEGER}, #{dwIsdel,jdbcType=INTEGER})
  45. </insert>
  46. <insert id="insertSelective" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicWard" >
  47. insert into dic_ward
  48. <trim prefix="(" suffix=")" suffixOverrides="," >
  49. <if test="dwId != null" >
  50. DW_ID,
  51. </if>
  52. <if test="hiId != null" >
  53. HI_ID,
  54. </if>
  55. <if test="dwWarddm != null" >
  56. DW_WardDm,
  57. </if>
  58. <if test="dwWardname != null" >
  59. DW_WardName,
  60. </if>
  61. <if test="dwPinyincode != null" >
  62. DW_PinyinCode,
  63. </if>
  64. <if test="dwWubicode != null" >
  65. DW_WubiCode,
  66. </if>
  67. <if test="dwOthercode != null" >
  68. DW_OtherCode,
  69. </if>
  70. <if test="uiId != null" >
  71. UI_ID,
  72. </if>
  73. <if test="dwDate != null" >
  74. DW_Date,
  75. </if>
  76. <if test="dwType != null" >
  77. DW_Type,
  78. </if>
  79. <if test="dwEngname != null" >
  80. DW_EngName,
  81. </if>
  82. <if test="dwMaxbed != null" >
  83. DW_MaxBed,
  84. </if>
  85. <if test="dwSord != null" >
  86. DW_Sord,
  87. </if>
  88. <if test="dwIsdel != null" >
  89. DW_IsDel,
  90. </if>
  91. </trim>
  92. <trim prefix="values (" suffix=")" suffixOverrides="," >
  93. <if test="dwId != null" >
  94. #{dwId,jdbcType=INTEGER},
  95. </if>
  96. <if test="hiId != null" >
  97. #{hiId,jdbcType=INTEGER},
  98. </if>
  99. <if test="dwWarddm != null" >
  100. #{dwWarddm,jdbcType=VARCHAR},
  101. </if>
  102. <if test="dwWardname != null" >
  103. #{dwWardname,jdbcType=VARCHAR},
  104. </if>
  105. <if test="dwPinyincode != null" >
  106. #{dwPinyincode,jdbcType=VARCHAR},
  107. </if>
  108. <if test="dwWubicode != null" >
  109. #{dwWubicode,jdbcType=VARCHAR},
  110. </if>
  111. <if test="dwOthercode != null" >
  112. #{dwOthercode,jdbcType=VARCHAR},
  113. </if>
  114. <if test="uiId != null" >
  115. #{uiId,jdbcType=VARCHAR},
  116. </if>
  117. <if test="dwDate != null" >
  118. #{dwDate,jdbcType=TIMESTAMP},
  119. </if>
  120. <if test="dwType != null" >
  121. #{dwType,jdbcType=INTEGER},
  122. </if>
  123. <if test="dwEngname != null" >
  124. #{dwEngname,jdbcType=VARCHAR},
  125. </if>
  126. <if test="dwMaxbed != null" >
  127. #{dwMaxbed,jdbcType=INTEGER},
  128. </if>
  129. <if test="dwSord != null" >
  130. #{dwSord,jdbcType=INTEGER},
  131. </if>
  132. <if test="dwIsdel != null" >
  133. #{dwIsdel,jdbcType=INTEGER},
  134. </if>
  135. </trim>
  136. </insert>
  137. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicWard" >
  138. update dic_ward
  139. <set >
  140. <if test="hiId != null" >
  141. HI_ID = #{hiId,jdbcType=INTEGER},
  142. </if>
  143. <if test="dwWarddm != null" >
  144. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  145. </if>
  146. <if test="dwWardname != null" >
  147. DW_WardName = #{dwWardname,jdbcType=VARCHAR},
  148. </if>
  149. <if test="dwPinyincode != null" >
  150. DW_PinyinCode = #{dwPinyincode,jdbcType=VARCHAR},
  151. </if>
  152. <if test="dwWubicode != null" >
  153. DW_WubiCode = #{dwWubicode,jdbcType=VARCHAR},
  154. </if>
  155. <if test="dwOthercode != null" >
  156. DW_OtherCode = #{dwOthercode,jdbcType=VARCHAR},
  157. </if>
  158. <if test="uiId != null" >
  159. UI_ID = #{uiId,jdbcType=VARCHAR},
  160. </if>
  161. <if test="dwDate != null" >
  162. DW_Date = #{dwDate,jdbcType=TIMESTAMP},
  163. </if>
  164. <if test="dwType != null" >
  165. DW_Type = #{dwType,jdbcType=INTEGER},
  166. </if>
  167. <if test="dwEngname != null" >
  168. DW_EngName = #{dwEngname,jdbcType=VARCHAR},
  169. </if>
  170. <if test="dwMaxbed != null" >
  171. DW_MaxBed = #{dwMaxbed,jdbcType=INTEGER},
  172. </if>
  173. <if test="dwSord != null" >
  174. DW_Sord = #{dwSord,jdbcType=INTEGER},
  175. </if>
  176. <if test="dwIsdel != null" >
  177. DW_IsDel = #{dwIsdel,jdbcType=INTEGER},
  178. </if>
  179. </set>
  180. where DW_ID = #{dwId,jdbcType=INTEGER}
  181. </update>
  182. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicWard" >
  183. update dic_ward
  184. set HI_ID = #{hiId,jdbcType=INTEGER},
  185. DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
  186. DW_WardName = #{dwWardname,jdbcType=VARCHAR},
  187. DW_PinyinCode = #{dwPinyincode,jdbcType=VARCHAR},
  188. DW_WubiCode = #{dwWubicode,jdbcType=VARCHAR},
  189. DW_OtherCode = #{dwOthercode,jdbcType=VARCHAR},
  190. UI_ID = #{uiId,jdbcType=VARCHAR},
  191. DW_Date = #{dwDate,jdbcType=TIMESTAMP},
  192. DW_Type = #{dwType,jdbcType=INTEGER},
  193. DW_EngName = #{dwEngname,jdbcType=VARCHAR},
  194. DW_MaxBed = #{dwMaxbed,jdbcType=INTEGER},
  195. DW_Sord = #{dwSord,jdbcType=INTEGER},
  196. DW_IsDel = #{dwIsdel,jdbcType=INTEGER}
  197. where DW_ID = #{dwId,jdbcType=INTEGER}
  198. </update>
  199. </mapper>