ConsultationTeamMapper.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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.pubservice.mysqlmapper.ConsultationTeamMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
  5. <id column="DCT_ID" property="dctId" jdbcType="INTEGER" />
  6. <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
  7. <result column="DCT_Name" property="dctName" jdbcType="VARCHAR" />
  8. <result column="DCT_Recordor" property="dctRecordor" jdbcType="VARCHAR" />
  9. <result column="DCT_Record_Time" property="dctRecordTime" jdbcType="TIMESTAMP" />
  10. <result column="DCT_IsDel" property="dctIsdel" jdbcType="INTEGER" />
  11. <result column="DCT_Type" property="dctType" jdbcType="INTEGER" />
  12. <result column="DCT_PinyinCode" property="dctPinyincode" jdbcType="VARCHAR" />
  13. <result column="DCT_WubiCode" property="dctWubicode" jdbcType="VARCHAR" />
  14. <result column="DCT_OtherCode" property="dctOthercode" jdbcType="VARCHAR" />
  15. <result column="DCT_Ward" property="dctWard" jdbcType="VARCHAR" />
  16. <result column="DCT_Dept" property="dctDept" jdbcType="VARCHAR" />
  17. </resultMap>
  18. <sql id="Base_Column_List" >
  19. DCT_ID, HI_ID, DCT_Name, DCT_Recordor, DCT_Record_Time, DCT_IsDel, DCT_Type, DCT_PinyinCode,
  20. DCT_WubiCode, DCT_OtherCode, DCT_Ward, DCT_Dept
  21. </sql>
  22. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  23. select
  24. <include refid="Base_Column_List" />
  25. from dic_consultation_team
  26. where DCT_IsDel = 0 and DCT_ID = #{dctId,jdbcType=INTEGER}
  27. </select>
  28. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  29. delete from dic_consultation_team
  30. where DCT_ID = #{dctId,jdbcType=INTEGER}
  31. </delete>
  32. <insert id="insert" parameterType="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
  33. insert into dic_consultation_team (DCT_ID, HI_ID, DCT_Name,
  34. DCT_Recordor, DCT_Record_Time, DCT_IsDel,
  35. DCT_Type, DCT_PinyinCode, DCT_WubiCode,
  36. DCT_OtherCode, DCT_Ward, DCT_Dept
  37. )
  38. values (#{dctId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{dctName,jdbcType=VARCHAR},
  39. #{dctRecordor,jdbcType=VARCHAR}, #{dctRecordTime,jdbcType=TIMESTAMP}, #{dctIsdel,jdbcType=INTEGER},
  40. #{dctType,jdbcType=INTEGER}, #{dctPinyincode,jdbcType=VARCHAR}, #{dctWubicode,jdbcType=VARCHAR},
  41. #{dctOthercode,jdbcType=VARCHAR}, #{dctWard,jdbcType=VARCHAR}, #{dctDept,jdbcType=VARCHAR}
  42. )
  43. </insert>
  44. <insert id="insertSelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
  45. insert into dic_consultation_team
  46. <trim prefix="(" suffix=")" suffixOverrides="," >
  47. <if test="dctId != null" >
  48. DCT_ID,
  49. </if>
  50. <if test="hiId != null" >
  51. HI_ID,
  52. </if>
  53. <if test="dctName != null" >
  54. DCT_Name,
  55. </if>
  56. <if test="dctRecordor != null" >
  57. DCT_Recordor,
  58. </if>
  59. <if test="dctRecordTime != null" >
  60. DCT_Record_Time,
  61. </if>
  62. <if test="dctIsdel != null" >
  63. DCT_IsDel,
  64. </if>
  65. <if test="dctType != null" >
  66. DCT_Type,
  67. </if>
  68. <if test="dctPinyincode != null" >
  69. DCT_PinyinCode,
  70. </if>
  71. <if test="dctWubicode != null" >
  72. DCT_WubiCode,
  73. </if>
  74. <if test="dctOthercode != null" >
  75. DCT_OtherCode,
  76. </if>
  77. <if test="dctWard != null" >
  78. DCT_Ward,
  79. </if>
  80. <if test="dctDept != null" >
  81. DCT_Dept,
  82. </if>
  83. </trim>
  84. <trim prefix="values (" suffix=")" suffixOverrides="," >
  85. <if test="dctId != null" >
  86. #{dctId,jdbcType=INTEGER},
  87. </if>
  88. <if test="hiId != null" >
  89. #{hiId,jdbcType=INTEGER},
  90. </if>
  91. <if test="dctName != null" >
  92. #{dctName,jdbcType=VARCHAR},
  93. </if>
  94. <if test="dctRecordor != null" >
  95. #{dctRecordor,jdbcType=VARCHAR},
  96. </if>
  97. <if test="dctRecordTime != null" >
  98. #{dctRecordTime,jdbcType=TIMESTAMP},
  99. </if>
  100. <if test="dctIsdel != null" >
  101. #{dctIsdel,jdbcType=INTEGER},
  102. </if>
  103. <if test="dctType != null" >
  104. #{dctType,jdbcType=INTEGER},
  105. </if>
  106. <if test="dctPinyincode != null" >
  107. #{dctPinyincode,jdbcType=VARCHAR},
  108. </if>
  109. <if test="dctWubicode != null" >
  110. #{dctWubicode,jdbcType=VARCHAR},
  111. </if>
  112. <if test="dctOthercode != null" >
  113. #{dctOthercode,jdbcType=VARCHAR},
  114. </if>
  115. <if test="dctWard != null" >
  116. #{dctWard,jdbcType=VARCHAR},
  117. </if>
  118. <if test="dctDept != null" >
  119. #{dctDept,jdbcType=VARCHAR},
  120. </if>
  121. </trim>
  122. </insert>
  123. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
  124. update dic_consultation_team
  125. <set >
  126. <if test="hiId != null" >
  127. HI_ID = #{hiId,jdbcType=INTEGER},
  128. </if>
  129. <if test="dctName != null" >
  130. DCT_Name = #{dctName,jdbcType=VARCHAR},
  131. </if>
  132. <if test="dctRecordor != null" >
  133. DCT_Recordor = #{dctRecordor,jdbcType=VARCHAR},
  134. </if>
  135. <if test="dctRecordTime != null" >
  136. DCT_Record_Time = #{dctRecordTime,jdbcType=TIMESTAMP},
  137. </if>
  138. <if test="dctIsdel != null" >
  139. DCT_IsDel = #{dctIsdel,jdbcType=INTEGER},
  140. </if>
  141. <if test="dctType != null" >
  142. DCT_Type = #{dctType,jdbcType=INTEGER},
  143. </if>
  144. <if test="dctPinyincode != null" >
  145. DCT_PinyinCode = #{dctPinyincode,jdbcType=VARCHAR},
  146. </if>
  147. <if test="dctWubicode != null" >
  148. DCT_WubiCode = #{dctWubicode,jdbcType=VARCHAR},
  149. </if>
  150. <if test="dctOthercode != null" >
  151. DCT_OtherCode = #{dctOthercode,jdbcType=VARCHAR},
  152. </if>
  153. <if test="dctWard != null" >
  154. DCT_Ward = #{dctWard,jdbcType=VARCHAR},
  155. </if>
  156. <if test="dctDept != null" >
  157. DCT_Dept = #{dctDept,jdbcType=VARCHAR},
  158. </if>
  159. </set>
  160. where DCT_ID = #{dctId,jdbcType=INTEGER}
  161. </update>
  162. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
  163. update dic_consultation_team
  164. set HI_ID = #{hiId,jdbcType=INTEGER},
  165. DCT_Name = #{dctName,jdbcType=VARCHAR},
  166. DCT_Recordor = #{dctRecordor,jdbcType=VARCHAR},
  167. DCT_Record_Time = #{dctRecordTime,jdbcType=TIMESTAMP},
  168. DCT_IsDel = #{dctIsdel,jdbcType=INTEGER},
  169. DCT_Type = #{dctType,jdbcType=INTEGER},
  170. DCT_PinyinCode = #{dctPinyincode,jdbcType=VARCHAR},
  171. DCT_WubiCode = #{dctWubicode,jdbcType=VARCHAR},
  172. DCT_OtherCode = #{dctOthercode,jdbcType=VARCHAR},
  173. DCT_Ward = #{dctWard,jdbcType=VARCHAR},
  174. DCT_Dept = #{dctDept,jdbcType=VARCHAR}
  175. where DCT_ID = #{dctId,jdbcType=INTEGER}
  176. </update>
  177. </mapper>