|
|
|
@@ -810,7 +810,7 @@ |
|
|
|
left join wx_business xb on(m.business_id = xb.id) |
|
|
|
left join wx_rent_contract rc on(rc.merchant_id = m.id) |
|
|
|
where m.status=1 |
|
|
|
) tt where tt.receivePay >0 and tt.payOut>0 |
|
|
|
) tt where 1=1 |
|
|
|
|
|
|
|
<if test=" null != tenantId"> and tt.tenant_id = #{tenantId} </if> |
|
|
|
<if test=" null != merchantId"> and tt.id = #{merchantId} </if> |
|
|
|
|