|
|
@@ -1277,10 +1277,10 @@ |
|
|
<select id="findIdsListHasConditons" parameterType="com.iformall.domain.po.WxCoupon" resultType="Long"> |
|
|
<select id="findIdsListHasConditons" parameterType="com.iformall.domain.po.WxCoupon" resultType="Long"> |
|
|
select c.id |
|
|
select c.id |
|
|
from wx_coupon c |
|
|
from wx_coupon c |
|
|
where o.`tenant_id` = #{tenantId} and c.conditions is not null |
|
|
|
|
|
|
|
|
where c.`tenant_id` = #{tenantId} and c.conditions is not null |
|
|
/*and JSON_EXTRACT(c.conditions, '$.type') = 1*/ |
|
|
/*and JSON_EXTRACT(c.conditions, '$.type') = 1*/ |
|
|
<if test=" null != parentTenantId and '' != parentTenantId"> |
|
|
<if test=" null != parentTenantId and '' != parentTenantId"> |
|
|
and o.`parent_tenant_id` = #{parentTenantId} |
|
|
|
|
|
|
|
|
and c.`parent_tenant_id` = #{parentTenantId} |
|
|
</if> |
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|