FeeRateMapper.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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.unis.transaction.server.dao.FeeRateDao">
  4. <sql id="feerateColumns">
  5. flbm,sxfl,clxzbm,clxzmc,fbzt,fbztmc,remark,refresher,refresh_time as refreshTime
  6. </sql>
  7. <sql id="feerateJoins">
  8. </sql>
  9. <select id="selectList" resultType="com.unis.transaction.server.entity.signuppay.FeeRateDO" parameterType="com.unis.transaction.common.vo.signuppay.FeeRateVO">
  10. SELECT
  11. <include refid="feerateColumns" />
  12. FROM ty_sxflwh <include refid="feerateJoins" />
  13. <where>
  14. </where>
  15. </select>
  16. <select id="selectPageList" resultType="com.unis.transaction.common.vo.signuppay.FeeRateVO" parameterType="com.unis.transaction.common.vo.signuppay.FeeRateVO">
  17. SELECT
  18. <include refid="feerateColumns" />
  19. FROM ty_sxflwh <include refid="feerateJoins" />
  20. <where>
  21. and status = 1
  22. </where>
  23. order by flbm desc
  24. </select>
  25. <select id="selectDetail" resultType="com.unis.transaction.common.vo.signuppay.FeeRateVO" parameterType="com.unis.transaction.common.vo.signuppay.FeeRateVO">
  26. SELECT
  27. <include refid="feerateColumns" />
  28. FROM ty_sxflwh <include refid="feerateJoins" />
  29. <where>
  30. and status = 1
  31. <if test="sxfl != null and sxfl != ''">
  32. and sxfl = #{sxfl}
  33. </if>
  34. <if test="clxzbm != null and clxzbm != ''">
  35. and clxzbm = #{clxzbm}
  36. </if>
  37. <if test="fbzt != null">
  38. and fbzt = #{fbzt}
  39. </if>
  40. </where>
  41. <!-- WHERE flbm = #{flbm} -->
  42. </select>
  43. <insert id="insertFeeRate">
  44. INSERT INTO ty_sxflwh(
  45. flbm,sxfl,clxzbm,clxzmc,fbzt,fbztmc,remark)
  46. VALUES (
  47. #{flbm},#{sxfl},#{clxzbm},#{clxzmc},#{fbzt},#{fbztmc},#{remark})
  48. </insert>
  49. <update id="updateFeeRate">
  50. UPDATE ty_sxflwh SET
  51. flbm = #{flbm},sxfl = #{sxfl},clxzbm = #{clxzbm},clxzmc = #{clxzmc},fbzt = #{fbzt},fbztmc = #{fbztmc},remark = #{remark}
  52. WHERE flbm = #{flbm}
  53. </update>
  54. <update id="deleteFeeRate">
  55. DELETE FROM ty_sxflwh
  56. WHERE flbm = #{flbm}
  57. </update>
  58. <update id="updateFeeRateStatus" parameterType="com.unis.transaction.common.vo.signuppay.FeeRateVO">
  59. UPDATE ty_sxflwh SET fbzt = #{fbzt} ,fbztmc=#{fbztmc}
  60. <where>
  61. <if test="clxzbm!=null and clxzbm!=''">
  62. and clxzbm = #{clxzbm}
  63. </if>
  64. <if test="flbm!=null and flbm!=''">
  65. and flbm &lt;&gt; #{flbm}
  66. </if>
  67. </where>
  68. </update>
  69. </mapper>