1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.unis.transaction.server.dao.FeeRateDao">
-
- <sql id="feerateColumns">
- flbm,sxfl,clxzbm,clxzmc,fbzt,fbztmc,remark,refresher,refresh_time as refreshTime
- </sql>
-
- <sql id="feerateJoins">
-
- </sql>
-
- <select id="selectList" resultType="com.unis.transaction.server.entity.signuppay.FeeRateDO" parameterType="com.unis.transaction.common.vo.signuppay.FeeRateVO">
- SELECT
- <include refid="feerateColumns" />
- FROM ty_sxflwh <include refid="feerateJoins" />
- <where>
- </where>
- </select>
-
- <select id="selectPageList" resultType="com.unis.transaction.common.vo.signuppay.FeeRateVO" parameterType="com.unis.transaction.common.vo.signuppay.FeeRateVO">
- SELECT
- <include refid="feerateColumns" />
- FROM ty_sxflwh <include refid="feerateJoins" />
- <where>
- and status = 1
- </where>
- order by flbm desc
- </select>
-
- <select id="selectDetail" resultType="com.unis.transaction.common.vo.signuppay.FeeRateVO" parameterType="com.unis.transaction.common.vo.signuppay.FeeRateVO">
- SELECT
- <include refid="feerateColumns" />
- FROM ty_sxflwh <include refid="feerateJoins" />
- <where>
- and status = 1
- <if test="sxfl != null and sxfl != ''">
- and sxfl = #{sxfl}
- </if>
- <if test="clxzbm != null and clxzbm != ''">
- and clxzbm = #{clxzbm}
- </if>
- <if test="fbzt != null">
- and fbzt = #{fbzt}
- </if>
- </where>
-
- <!-- WHERE flbm = #{flbm} -->
- </select>
-
- <insert id="insertFeeRate">
- INSERT INTO ty_sxflwh(
- flbm,sxfl,clxzbm,clxzmc,fbzt,fbztmc,remark)
- VALUES (
- #{flbm},#{sxfl},#{clxzbm},#{clxzmc},#{fbzt},#{fbztmc},#{remark})
- </insert>
-
- <update id="updateFeeRate">
- UPDATE ty_sxflwh SET
- flbm = #{flbm},sxfl = #{sxfl},clxzbm = #{clxzbm},clxzmc = #{clxzmc},fbzt = #{fbzt},fbztmc = #{fbztmc},remark = #{remark}
- WHERE flbm = #{flbm}
- </update>
-
- <update id="deleteFeeRate">
- DELETE FROM ty_sxflwh
- WHERE flbm = #{flbm}
- </update>
- <update id="updateFeeRateStatus" parameterType="com.unis.transaction.common.vo.signuppay.FeeRateVO">
- UPDATE ty_sxflwh SET fbzt = #{fbzt} ,fbztmc=#{fbztmc}
- <where>
- <if test="clxzbm!=null and clxzbm!=''">
- and clxzbm = #{clxzbm}
- </if>
- <if test="flbm!=null and flbm!=''">
- and flbm <> #{flbm}
- </if>
- </where>
- </update>
-
- </mapper>
|