md
This commit is contained in:
parent
d05c323ea2
commit
cd9951957b
@ -104,9 +104,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 计算已使用金额 -->
|
<!-- 计算已使用金额 -->
|
||||||
<select id="getUseMoney" parameterType="EmisCreditCustomer" resultType="java.math.BigDecimal">
|
<select id="getUseMoney" parameterType="EmisCreditCustomer" resultType="bigDecimal">
|
||||||
SELECT
|
SELECT
|
||||||
ifnull(sum(bill_fee-reced_money),0) AS use_money
|
COALESCE(sum(bill_fee-reced_money),0.00)
|
||||||
FROM
|
FROM
|
||||||
emis_settle_sub_bill b,
|
emis_settle_sub_bill b,
|
||||||
emis_waybill a,
|
emis_waybill a,
|
||||||
|
|||||||
@ -64,8 +64,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
and ( a.start_date <![CDATA[ <= ]]> #{params.sendDate} ) and ( #{params.sendDate} <![CDATA[ < ]]> a.end_date )
|
and ( a.start_date <![CDATA[ <= ]]> #{params.sendDate} ) and ( #{params.sendDate} <![CDATA[ < ]]> a.end_date )
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
@ -91,9 +89,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 计算已使用金额 -->
|
<!-- 计算已使用金额 -->
|
||||||
<select id="getUseMoney" parameterType="EmisCreditSalesmen" resultType="java.math.BigDecimal">
|
<select id="getUseMoney" parameterType="EmisCreditSalesmen" resultType="bigDecimal">
|
||||||
SELECT
|
SELECT
|
||||||
ifnull(sum(bill_fee-reced_money),0) AS use_money
|
COALESCE(sum(bill_fee-reced_money),0.00)
|
||||||
FROM
|
FROM
|
||||||
emis_settle_sub_bill b,
|
emis_settle_sub_bill b,
|
||||||
emis_waybill a,
|
emis_waybill a,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user