`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`coupon_order_id`,`channel_type`,`channel_id`,`create_time` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `coupon_id` = #{couponId} and `coupon_order_id` = #{couponOrderId} and `channel_type` = #{channelType} and `channel_id` = #{channelId} and `create_time` = #{createTime} and `create_time` >= #{startTime} and `create_time` <= #{endTime} and id in #{idItem} order by ${sortColumns} delete from wx_coupon_action_log where id = #{id} and tenant_id = #{tenantId} update wx_coupon_action_log set create_time_md = DATE_FORMAT(create_time,'%m/%d') where `tenant_id` = #{tenantId}