feat: 智聪记账管理,新增储蓄卡开卡统计功能代码提交。
This commit is contained in:
@@ -77,10 +77,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
|
||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
||||
<if test="repayFlag != null and repayFlag != ''"> and a.debit_type in('1','2','3')</if>
|
||||
<if test="staticFlag != null and staticFlag != ''"> and ( a.debit_type in('1','2') and a.status!='2') </if>
|
||||
<if test="startMonth!=null and startMonth !=''">
|
||||
and to_char(a.activation_date, 'yyyy-MM')>=#{startMonth}
|
||||
</if>
|
||||
<if test="endMonth!=null and endMonth !=''">
|
||||
and #{endMonth}>=to_char(a.activation_date, 'yyyy-MM')
|
||||
</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.type asc, a.bill_date asc,a.debit_type asc,a.update_time desc
|
||||
<if test="staticFlag != null and staticFlag != ''">
|
||||
order by a.activation_date desc
|
||||
</if>
|
||||
<if test="staticFlag == null or staticFlag == ''">
|
||||
order by a.type asc, a.bill_date asc,a.debit_type asc,a.update_time desc
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectBankCardLendById" parameterType="Long" resultMap="BankCardLendResult">
|
||||
|
||||
Reference in New Issue
Block a user