|
|
|
@@ -146,9 +146,16 @@ |
|
|
|
<resultMap id="SumBaseResultMap" type="com.iformall.domain.vo.WxBillSum"> |
|
|
|
<result column="receive_pay" jdbcType="VARCHAR" property="needPay"/> |
|
|
|
<result column="paid" jdbcType="VARCHAR" property="paid" /> |
|
|
|
<result column="min_date" jdbcType="TIMESTAMP" property="minDate" /> |
|
|
|
<result column="max_date" jdbcType="TIMESTAMP" property="maxDate" /> |
|
|
|
</resultMap> |
|
|
|
<select id="getBillMonthSum" parameterType="com.iformall.domain.po.WxBillPropertyDeposit" resultMap="SumBaseResultMap"> |
|
|
|
select sum(CAST(br.receive_pay AS DECIMAL(20,2))) receive_pay , sum(CAST(br.pay AS DECIMAL(20,2))) paid from wx_bill_property_deposit br |
|
|
|
select |
|
|
|
sum(CAST(br.receive_pay AS DECIMAL(20,2))) receive_pay , |
|
|
|
sum(CAST(br.pay AS DECIMAL(20,2))) paid, |
|
|
|
min(starttime) min_date, |
|
|
|
max(endtime) max_date |
|
|
|
from wx_bill_property_deposit br |
|
|
|
<include refid="queryBillDepositListConditions"/> |
|
|
|
</select> |
|
|
|
|
|
|
|
|