|
|
|
@@ -219,7 +219,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryPayInfo" resultType="hashmap" parameterType="hashmap"> |
|
|
|
select IFNULL(sum(receive_pay),0) receivepay,IFNULL(sum(pay),0) pay,tenant_id from wx_bill_rent |
|
|
|
select IFNULL(sum(CAST(receive_pay AS DECIMAL(20,2))),0) receivepay,IFNULL(sum(CAST(pay AS DECIMAL(20,2))),0) pay,tenant_id from wx_bill_rent |
|
|
|
where is_preview = 0 |
|
|
|
and status!=6 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
@@ -238,7 +238,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryPayInfoTotal" resultType="hashmap" parameterType="hashmap"> |
|
|
|
select IFNULL(sum(receive_pay),0) receivepay,IFNULL(sum(pay),0) pay,tenant_id from wx_bill_rent |
|
|
|
select IFNULL(sum(CAST(receive_pay AS DECIMAL(20,2))),0) receivepay,IFNULL(sum(CAST(pay AS DECIMAL(20,2))),0) pay,tenant_id from wx_bill_rent |
|
|
|
where is_preview = 0 and status!=6 |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
|