`id`,`tenant_id`,`parent_tenant_id`,`coupon_channel_id`,`spu_id`, `status`,`status_desc`,`last_status`,`last_status_desc`, `create_date`,`update_date` where is_del = 0 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `coupon_channel_id` = #{couponChannelId} and `spu_id` = #{spuId} and `status` = #{status} and `last_status` = #{lastStatus} and `id` in #{idItem} order by ${sortColumns} update tt_coupon_channel_poi set is_del = 1 where id = #{id} update tt_coupon_channel_poi set update_date = now() ,`status` = #{status} ,`last_status` = #{statusDesc} ,`last_status` = #{lastStatus} ,`last_status_desc` = #{lastStatusDesc} where `spu_id` = #{spuId}