set datefirst 1---将周1设为第一天 默认 是 set datefirst 7
SELECT CONVERT(NVARCHAR(10),DATEADD(DAY,-7,DATEADD(DAY,-(DATEPART(WEEKDAY,GETDATE())-1),GETDATE())),120) [上周一], CONVERT(NVARCHAR(10),DATEADD(DAY,-1,DATEADD(DAY,-(DATEPART(WEEKDAY,GETDATE())-1),GETDATE())),120) [上周末]