1
zj
2024-06-03 09206aedcfdf30050123e99f2af0a192ebad1de4
src/main/resources/mapper/SitePayMapper.xml
@@ -6,6 +6,7 @@
      <result column="c_type" property="cType"/>
      <result column="form_url"  property="formUrl"/>
      <result column="form_code"  property="formCode"/>
      <result column="channel_type"  property="channelType"/>
      <result column="channel_name" property="channelName"/>
      <result column="channel_desc" property="channelDesc"/>
@@ -17,15 +18,13 @@
      <result column="is_lock"  property="isLock"/>
      <result column="total_price"  property="totalPrice"/>
      <result column="assets_type" property="assetsType"/>
    <result column="exchange_rate" property="exchangeRate"/>
    <result column="bank_address" property="bankAddress"/>
      <result column="bank_number" property="bankNumber"/>
  </resultMap>
  <sql id="Base_Column_List" >
    id, c_type,form_url,form_code,channel_type, channel_name, channel_desc, channel_account, channel_img, channel_min_limit,
    channel_max_limit, is_show, is_lock, total_price,assets_type,exchange_rate,bank_address
    channel_max_limit, is_show, is_lock, total_price,assets_type
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select
@@ -230,37 +229,12 @@
    order by id desc
  </select>
  <select id="listByPayType" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    SELECT
    *
    FROM site_pay
    <where>
      <if test="payType != null">
        c_type = #{payType}
      </if>
    </where>
    order by id desc
  </select>
  <select id="getPayInfo" resultMap="BaseResultMap">
    SELECT
    <include refid="Base_Column_List"/>
    *
    FROM site_pay WHERE is_show = 0
  </select>
  <select id="selectByChannelType" resultMap="BaseResultMap" parameterType="string">
    SELECT
    <include refid="Base_Column_List"/>
    FROM site_pay
    <where>
      is_show = 0
      <if test="coinType != null">
        and channel_type = #{coinType}
      </if>
    </where>
  </select>
</mapper>