`id`,`tenant_id`,`cover_img`,`title`,`sub_title`,`use_price`,`discount_price`,`detail`,`valid_start_date`,`valid_end_date`,`img_detail`,`type`,`coupon_ids`,
`mechant_id`,`sort_num`,`status`,`create_time`,`update_time`,`html`
`id`,`tenant_id`,`cover_img`,`title`,`type`,`sort_num`
`id`,`tenant_id`,`cover_img`,`title`,`sub_title`,`use_price`,`discount_price`,`detail`,`valid_start_date`,`valid_end_date`,`img_detail`,`type`,`coupon_ids`,
`mechant_id`,`sort_num`,`status`,`create_time`,`update_time`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `cover_img` like concat('%', #{coverImg},'%')
and `title` like concat('%', #{title},'%')
and `sub_title` like concat('%', #{subTitle},'%')
and `use_price` = #{usePrice}
and `discount_price` = #{discountPrice}
and `detail` like concat('%', #{detail},'%')
and `valid_start_date` = #{validStartDate}
and `valid_end_date` = #{validEndDate}
and `img_detail` like concat('%', #{imgDetail},'%')
and `type` = #{type}
and `coupon_ids` like concat('%', #{couponIds},'%')
and `mechant_id` = #{mechantId}
and `sort_num` = #{sortNum}
and `status` = #{status}
and `create_time` = #{createTime}
and `update_time` = #{updateTime}
and id in
#{idItem}
order by ${sortColumns}