|
|
|
@@ -326,23 +326,15 @@ |
|
|
|
<include refid="billSql"/> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="listRentBussinessManageBillData" resultType="hashmap" parameterType="com.iformall.domain.vo.WxBillAll"> |
|
|
|
select '' settle_number,id,merchant_id merchantId,shop_id shopId,tenant_id tenantId,parent_tenant_id parentTenantId,'商业管理费' name,11 billTypeValue,'商业管理费' billType, |
|
|
|
bussiness_manage_fee_need_pay needPay,bussiness_manage_fee_need_pay receivePay,bussiness_manage_fee_need_pay pay,bussiness_manage_fee_need_pay owe, |
|
|
|
<select id="listRentManageBillData" resultType="hashmap" parameterType="com.iformall.domain.vo.WxBillAll"> |
|
|
|
select '' settle_number,id,merchant_id merchantId,shop_id shopId,tenant_id tenantId,parent_tenant_id parentTenantId,#{billTypeName} name,#{manageFeeType} billTypeValue,#{billTypeName} billType, |
|
|
|
need_pay needPay,receive_pay receivePay,pay pay,(receive_pay+service_charge_pay+ifnull(late_pay_price,0)-pay) owe, |
|
|
|
receive_date receiveDate,pay_date payDate,DATEDIFF(now(),receive_date) expiredDay,status,starttime,endtime,rent_shop_type rentShopType,'' priceDetail, |
|
|
|
freeze,ifnull(late_pay_price,0) latePayPrice,service_charge_pay serviceChargePay,apply_status applyStatus,apply_pay_img applyPayImg,apply_update_time applyUpdateTime |
|
|
|
|
|
|
|
from wx_bill_rent bill |
|
|
|
where bill.is_preview = 0 |
|
|
|
from wx_bill_rent_manage bill |
|
|
|
where bill.manage_fee_type = #{manageFeeType} |
|
|
|
and rent_contract_id in (select id from wx_rent_contract where status in (2,3,4)) |
|
|
|
|
|
|
|
|
|
|
|
select '' settle_number,id,merchant_id merchantId,shop_id shopId,tenant_id tenantId,parent_tenant_id parentTenantId, |
|
|
|
'商业管理费' name,11 billTypeValue,'商业管理费' billType, 0 as needPay,receive_pay receivePay, |
|
|
|
pay,(receive_pay+service_charge_pay-pay) owe,receive_date receiveDate,pay_date payDate,DATEDIFF(now(),receive_date) expiredDay,status,starttime,endtime, |
|
|
|
rent_shop_type rentShopType,price_detail priceDetail,freeze,0 latePayPrice,service_charge_pay serviceChargePay,apply_status applyStatus,apply_pay_img applyPayImg,apply_update_time applyUpdateTime |
|
|
|
|
|
|
|
from wx_bill_daily bill where bill.merchant_id=#{merchantId} |
|
|
|
<include refid="billSql"/> |
|
|
|
</select> |
|
|
|
|
|
|
|
|