52 lines
2.3 KiB
XML
52 lines
2.3 KiB
XML
<?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.ruoyi.invest.mapper.StatisticAnalysisMapper">
|
|
|
|
<resultMap type="BankCardLendVo" id="BankCardLendResult">
|
|
<result property="id" column="id" />
|
|
<result property="name" column="name" />
|
|
<result property="type" column="type" />
|
|
<result property="code" column="code" />
|
|
<result property="openingBank" column="opening_bank" />
|
|
<result property="activationDate" column="activation_date" />
|
|
<result property="billDate" column="bill_date" />
|
|
<result property="payDate" column="pay_date" />
|
|
<result property="delayPeriod" column="delay_period" />
|
|
<result property="creditLimit" column="credit_limit" />
|
|
<result property="effectiveDate" column="effective_date" />
|
|
<result property="cvv" column="cvv" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="remark" column="remark" />
|
|
<result property="debitType" column="debit_type" />
|
|
<result property="lendType" column="lend_type" />
|
|
</resultMap>
|
|
|
|
<sql id="selectBankCardLendVo">
|
|
select
|
|
a.name,
|
|
a.type,
|
|
a.credit_limit
|
|
from
|
|
bank_card_lend a
|
|
</sql>
|
|
|
|
<select id="selectBankCardLendList" parameterType="BankCardLendDto" resultMap="BankCardLendResult">
|
|
<include refid="selectBankCardLendVo"/>
|
|
<where>
|
|
a.del_flag='0'
|
|
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
|
|
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
|
<if test="creditCardId != null "> and a.id = #{creditCardId}</if>
|
|
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
|
|
</where>
|
|
<!-- 数据范围过滤 -->
|
|
${params.dataScope}
|
|
</select>
|
|
|
|
</mapper> |