|
|
|
@@ -543,8 +543,10 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getCountByWxShop" parameterType="com.iformall.domain.po.WxShop" resultType="Long"> |
|
|
|
select count(*) from wx_shop w left join wx_merchant_shop ms ON |
|
|
|
ms.shop_id = w.id where w.tenant_id=#{tenantId} and w.is_del=0 |
|
|
|
select count(*) from wx_shop w where w.is_del=0 |
|
|
|
<if test=" null != tenantId "> |
|
|
|
and w.`tenant_id`= #{tenantId} |
|
|
|
</if> |
|
|
|
<if test="null != startdate"> |
|
|
|
and ms.`create_date` >= #{startdate} |
|
|
|
</if> |
|
|
|
|