| | |
| | | <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"/> |
| | |
| | | <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 |
| | |
| | | |
| | | <select id="listByAdmin" parameterType="string" resultMap="BaseResultMap"> |
| | | SELECT |
| | | * |
| | | * |
| | | FROM site_pay |
| | | <where> |
| | | <if test="channelType != null and channelType != '' "> |
| | |
| | | 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> |