`id`,`tenant_id`,`parent_tenant_id`,`product_id`,`mall_tenant_id`,`create_date`,`update_date`,`status`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `product_id` = #{productId}
and `mall_tenant_id` = #{mallTenantId}
and `create_date` = #{createDate}
and `update_date` = #{updateDate}
and `status` = #{status}
and id in
#{idItem}
and product_id in
#{productIdItem}
order by ${sortColumns}
update wx_coupon_mall set status = #{status} where `product_id` = #{productId}
and `tenant_id` = #{tenantId} and `mall_tenant_id` = #{mallTenantId}
delete from wx_coupon_mall where `product_id` = #{productId} and `tenant_id` = #{tenantId}