" (take_limit_count = -1 or take_limit_count >= (select count(bc.id) from business_coupon bc where bc.template_id = id and bc.user_id = {0} and bc.del_flag = '0' )) "+
" and ( product_scope_type in (1, 2, 3, 4) or ( product_scope_type = 5 and 0 = {1}))",bo.getUserId(),count);
" (total_count = -1 or total_count > 0) and (take_limit_count = -1 or take_limit_count >= (select count(bc.id) from business_coupon bc where bc.template_id = id and bc.user_id = {0} and bc.del_flag = '0' )) ",bo.getUserId());
" (total_count = -1 or total_count > 0) and (take_limit_count = -1 or take_limit_count >= (select count(bc.id) from promotion_coupon bc where bc.template_id = id and bc.user_id = {0} )) ",bo.getUserId());