DicInterventionDetailMapper.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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.mysqlmapper.DicInterventionDetailMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
  5. <id column="DID_ID" property="didId" jdbcType="INTEGER" />
  6. <result column="DI_ID" property="diId" jdbcType="VARCHAR" />
  7. <result column="DID_Intervention_Name" property="didInterventionName" jdbcType="VARCHAR" />
  8. <result column="DID_PinyinCode" property="didPinyincode" jdbcType="VARCHAR" />
  9. <result column="DID_WubiCode" property="didWubicode" jdbcType="VARCHAR" />
  10. <result column="DID_OtherCode" property="didOthercode" jdbcType="VARCHAR" />
  11. <result column="DID_UserId" property="didUserid" jdbcType="VARCHAR" />
  12. <result column="DID_UpdateTime" property="didUpdatetime" jdbcType="TIMESTAMP" />
  13. <result column="DID_IsDel" property="didIsdel" jdbcType="INTEGER" />
  14. </resultMap>
  15. <sql id="Base_Column_List" >
  16. DID_ID, DI_ID, DID_Intervention_Name, DID_PinyinCode, DID_WubiCode, DID_OtherCode,
  17. DID_UserId, DID_UpdateTime, DID_IsDel
  18. </sql>
  19. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  20. select
  21. <include refid="Base_Column_List" />
  22. from dic_intervention_detail
  23. where DID_ID = #{didId,jdbcType=INTEGER}
  24. </select>
  25. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  26. delete from dic_intervention_detail
  27. where DID_ID = #{didId,jdbcType=INTEGER}
  28. </delete>
  29. <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
  30. insert into dic_intervention_detail (DID_ID, DI_ID, DID_Intervention_Name,
  31. DID_PinyinCode, DID_WubiCode, DID_OtherCode,
  32. DID_UserId, DID_UpdateTime, DID_IsDel
  33. )
  34. values (#{didId,jdbcType=INTEGER}, #{diId,jdbcType=VARCHAR}, #{didInterventionName,jdbcType=VARCHAR},
  35. #{didPinyincode,jdbcType=VARCHAR}, #{didWubicode,jdbcType=VARCHAR}, #{didOthercode,jdbcType=VARCHAR},
  36. #{didUserid,jdbcType=VARCHAR}, #{didUpdatetime,jdbcType=TIMESTAMP}, #{didIsdel,jdbcType=INTEGER}
  37. )
  38. </insert>
  39. <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
  40. insert into dic_intervention_detail
  41. <trim prefix="(" suffix=")" suffixOverrides="," >
  42. <if test="didId != null" >
  43. DID_ID,
  44. </if>
  45. <if test="diId != null" >
  46. DI_ID,
  47. </if>
  48. <if test="didInterventionName != null" >
  49. DID_Intervention_Name,
  50. </if>
  51. <if test="didPinyincode != null" >
  52. DID_PinyinCode,
  53. </if>
  54. <if test="didWubicode != null" >
  55. DID_WubiCode,
  56. </if>
  57. <if test="didOthercode != null" >
  58. DID_OtherCode,
  59. </if>
  60. <if test="didUserid != null" >
  61. DID_UserId,
  62. </if>
  63. <if test="didUpdatetime != null" >
  64. DID_UpdateTime,
  65. </if>
  66. <if test="didIsdel != null" >
  67. DID_IsDel,
  68. </if>
  69. </trim>
  70. <trim prefix="values (" suffix=")" suffixOverrides="," >
  71. <if test="didId != null" >
  72. #{didId,jdbcType=INTEGER},
  73. </if>
  74. <if test="diId != null" >
  75. #{diId,jdbcType=VARCHAR},
  76. </if>
  77. <if test="didInterventionName != null" >
  78. #{didInterventionName,jdbcType=VARCHAR},
  79. </if>
  80. <if test="didPinyincode != null" >
  81. #{didPinyincode,jdbcType=VARCHAR},
  82. </if>
  83. <if test="didWubicode != null" >
  84. #{didWubicode,jdbcType=VARCHAR},
  85. </if>
  86. <if test="didOthercode != null" >
  87. #{didOthercode,jdbcType=VARCHAR},
  88. </if>
  89. <if test="didUserid != null" >
  90. #{didUserid,jdbcType=VARCHAR},
  91. </if>
  92. <if test="didUpdatetime != null" >
  93. #{didUpdatetime,jdbcType=TIMESTAMP},
  94. </if>
  95. <if test="didIsdel != null" >
  96. #{didIsdel,jdbcType=INTEGER},
  97. </if>
  98. </trim>
  99. </insert>
  100. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
  101. update dic_intervention_detail
  102. <set >
  103. <if test="diId != null" >
  104. DI_ID = #{diId,jdbcType=VARCHAR},
  105. </if>
  106. <if test="didInterventionName != null" >
  107. DID_Intervention_Name = #{didInterventionName,jdbcType=VARCHAR},
  108. </if>
  109. <if test="didPinyincode != null" >
  110. DID_PinyinCode = #{didPinyincode,jdbcType=VARCHAR},
  111. </if>
  112. <if test="didWubicode != null" >
  113. DID_WubiCode = #{didWubicode,jdbcType=VARCHAR},
  114. </if>
  115. <if test="didOthercode != null" >
  116. DID_OtherCode = #{didOthercode,jdbcType=VARCHAR},
  117. </if>
  118. <if test="didUserid != null" >
  119. DID_UserId = #{didUserid,jdbcType=VARCHAR},
  120. </if>
  121. <if test="didUpdatetime != null" >
  122. DID_UpdateTime = #{didUpdatetime,jdbcType=TIMESTAMP},
  123. </if>
  124. <if test="didIsdel != null" >
  125. DID_IsDel = #{didIsdel,jdbcType=INTEGER},
  126. </if>
  127. </set>
  128. where DID_ID = #{didId,jdbcType=INTEGER}
  129. </update>
  130. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicInterventionDetail" >
  131. update dic_intervention_detail
  132. set DI_ID = #{diId,jdbcType=VARCHAR},
  133. DID_Intervention_Name = #{didInterventionName,jdbcType=VARCHAR},
  134. DID_PinyinCode = #{didPinyincode,jdbcType=VARCHAR},
  135. DID_WubiCode = #{didWubicode,jdbcType=VARCHAR},
  136. DID_OtherCode = #{didOthercode,jdbcType=VARCHAR},
  137. DID_UserId = #{didUserid,jdbcType=VARCHAR},
  138. DID_UpdateTime = #{didUpdatetime,jdbcType=TIMESTAMP},
  139. DID_IsDel = #{didIsdel,jdbcType=INTEGER}
  140. where DID_ID = #{didId,jdbcType=INTEGER}
  141. </update>
  142. </mapper>