demand: 现金客户额度剩余余额、剩余比例查询增加根据理赔金额计算的逻辑
committer: heyu
This commit is contained in:
parent
5c911f3224
commit
35f6ec9f74
@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and NOW() between t.start_date and t.end_date
|
||||
order by t.create_time desc
|
||||
limit 1), 0
|
||||
) - a.use_money) <![CDATA[ >= ]]> #{params.beginCurMoney}
|
||||
) - a.use_money + COALESCE(a.satisfy_money, 0)) <![CDATA[ >= ]]> #{params.beginCurMoney}
|
||||
</if>
|
||||
<if test="params.endCurMoney != null and params.endCurMoney != ''">
|
||||
and (COALESCE(a.credit_money, 0) + COALESCE(
|
||||
@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and NOW() between t.start_date and t.end_date
|
||||
order by t.create_time desc
|
||||
limit 1), 0
|
||||
) - a.use_money) <![CDATA[ < ]]> #{params.endCurMoney}
|
||||
) - a.use_money + COALESCE(a.satisfy_money, 0)) <![CDATA[ < ]]> #{params.endCurMoney}
|
||||
</if>
|
||||
|
||||
<if test="params.beginCurMoneyRate != null and params.beginCurMoneyRate != ''">
|
||||
@ -94,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and NOW() between t.start_date and t.end_date
|
||||
order by t.create_time desc
|
||||
limit 1), 0
|
||||
) - a.use_money)/(COALESCE(a.credit_money, 0) + COALESCE(
|
||||
) - a.use_money + COALESCE(a.satisfy_money, 0))/(COALESCE(a.credit_money, 0) + COALESCE(
|
||||
(select temp_credit_money_adjust
|
||||
from emis_temp_credit_salesmen t
|
||||
where t.acc_code = a.acc_code
|
||||
@ -113,7 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and NOW() between t.start_date and t.end_date
|
||||
order by t.create_time desc
|
||||
limit 1), 0
|
||||
) - a.use_money)/(COALESCE(a.credit_money, 0) + COALESCE(
|
||||
) - a.use_money + COALESCE(a.satisfy_money, 0))/(COALESCE(a.credit_money, 0) + COALESCE(
|
||||
(select temp_credit_money_adjust
|
||||
from emis_temp_credit_salesmen t
|
||||
where t.acc_code = a.acc_code
|
||||
|
||||
Loading…
Reference in New Issue
Block a user