SELECT a.tel,a.business_code,b.name AS business_name,a.register_time FROM T_RED_USER a LEFT JOIN T_Product_Spec b ON a.business_code=b.code where a.tel LIKE CONCAT(?,‘%‘) AND (IF(?=‘‘, 1=1, IFNULL(a.business_code,‘‘)=?) OR a.business_code IS NULL ) ORDER BY a.register_time DESC LIMIT ?,?
时间: 2024-11-06 22:21:57