MerchCusCfgMapper.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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.emato.cuspay.dao.mapper.MerchCusCfgMapper" >
  4. <resultMap id="BaseResultMap" type="com.emato.cuspay.dao.data.MerchCusCfg" >
  5. <id column="cus_cfg_sn" property="cusCfgSn" jdbcType="VARCHAR" />
  6. <result column="merch_sn" property="merchSn" jdbcType="VARCHAR" />
  7. <result column="cus_flag" property="cusFlag" jdbcType="VARCHAR" />
  8. <result column="is_valid" property="isValid" jdbcType="CHAR" />
  9. <result column="remark" property="remark" jdbcType="VARCHAR" />
  10. <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
  11. <result column="create_time" property="createTime" jdbcType="VARCHAR" />
  12. <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
  13. <result column="mod_time" property="modTime" jdbcType="VARCHAR" />
  14. <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
  15. </resultMap>
  16. <sql id="Base_Column_List" >
  17. cus_cfg_sn, merch_sn, cus_flag, is_valid, remark, creater_sn, create_time, moder_sn,
  18. mod_time, tstm
  19. </sql>
  20. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  21. select
  22. <include refid="Base_Column_List" />
  23. from merch_cus_cfg
  24. where cus_cfg_sn = #{cusCfgSn,jdbcType=VARCHAR}
  25. </select>
  26. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  27. delete from merch_cus_cfg
  28. where cus_cfg_sn = #{cusCfgSn,jdbcType=VARCHAR}
  29. </delete>
  30. <insert id="insertSelective" parameterType="com.emato.cuspay.dao.data.MerchCusCfg" >
  31. insert into merch_cus_cfg
  32. <trim prefix="(" suffix=")" suffixOverrides="," >
  33. <if test="cusCfgSn != null" >
  34. cus_cfg_sn,
  35. </if>
  36. <if test="merchSn != null" >
  37. merch_sn,
  38. </if>
  39. <if test="cusFlag != null" >
  40. cus_flag,
  41. </if>
  42. <if test="isValid != null" >
  43. is_valid,
  44. </if>
  45. <if test="remark != null" >
  46. remark,
  47. </if>
  48. <if test="createrSn != null" >
  49. creater_sn,
  50. </if>
  51. <if test="createTime != null" >
  52. create_time,
  53. </if>
  54. <if test="moderSn != null" >
  55. moder_sn,
  56. </if>
  57. <if test="modTime != null" >
  58. mod_time,
  59. </if>
  60. <if test="tstm != null" >
  61. tstm,
  62. </if>
  63. </trim>
  64. <trim prefix="values (" suffix=")" suffixOverrides="," >
  65. <if test="cusCfgSn != null" >
  66. #{cusCfgSn,jdbcType=VARCHAR},
  67. </if>
  68. <if test="merchSn != null" >
  69. #{merchSn,jdbcType=VARCHAR},
  70. </if>
  71. <if test="cusFlag != null" >
  72. #{cusFlag,jdbcType=VARCHAR},
  73. </if>
  74. <if test="isValid != null" >
  75. #{isValid,jdbcType=CHAR},
  76. </if>
  77. <if test="remark != null" >
  78. #{remark,jdbcType=VARCHAR},
  79. </if>
  80. <if test="createrSn != null" >
  81. #{createrSn,jdbcType=VARCHAR},
  82. </if>
  83. <if test="createTime != null" >
  84. #{createTime,jdbcType=VARCHAR},
  85. </if>
  86. <if test="moderSn != null" >
  87. #{moderSn,jdbcType=VARCHAR},
  88. </if>
  89. <if test="modTime != null" >
  90. #{modTime,jdbcType=VARCHAR},
  91. </if>
  92. <if test="tstm != null" >
  93. #{tstm,jdbcType=TIMESTAMP},
  94. </if>
  95. </trim>
  96. </insert>
  97. <update id="updateByPrimaryKeySelective" parameterType="com.emato.cuspay.dao.data.MerchCusCfg" >
  98. update merch_cus_cfg
  99. <set >
  100. <if test="merchSn != null" >
  101. merch_sn = #{merchSn,jdbcType=VARCHAR},
  102. </if>
  103. <if test="cusFlag != null" >
  104. cus_flag = #{cusFlag,jdbcType=VARCHAR},
  105. </if>
  106. <if test="isValid != null" >
  107. is_valid = #{isValid,jdbcType=CHAR},
  108. </if>
  109. <if test="remark != null" >
  110. remark = #{remark,jdbcType=VARCHAR},
  111. </if>
  112. <if test="createrSn != null" >
  113. creater_sn = #{createrSn,jdbcType=VARCHAR},
  114. </if>
  115. <if test="createTime != null" >
  116. create_time = #{createTime,jdbcType=VARCHAR},
  117. </if>
  118. <if test="moderSn != null" >
  119. moder_sn = #{moderSn,jdbcType=VARCHAR},
  120. </if>
  121. <if test="modTime != null" >
  122. mod_time = #{modTime,jdbcType=VARCHAR},
  123. </if>
  124. <if test="tstm != null" >
  125. tstm = #{tstm,jdbcType=TIMESTAMP},
  126. </if>
  127. </set>
  128. where cus_cfg_sn = #{cusCfgSn,jdbcType=VARCHAR}
  129. </update>
  130. </mapper>