select WEEKOFYEAR(STR_TO_DATE(t1.biz_date_id, '%Y%m%d')) as `周`, min(STR_TO_DATE(t1.biz_date_id, '%Y%m%d')) as `日期`, from temp
京公网安备 11010502049817号