createTimeHour {Hour(时间)}
jfpg {switch(createTimeHour <= 8, "谷", createTimeHour <= 10, "平", createTimeHour <= 11, "峰", createTimeHour <= 12, "尖", createTimeHour <= 14, "平", createTimeHour <= 15, "峰", createTimeHour <= 17, "尖", createTimeHour <= 19, "峰", createTimeHour <= 24, "平")}
fpg {switch(createTimeHour <= 8, "谷", createTimeHour <= 10, "平", createTimeHour <= 12, "峰", createTimeHour <= 14, "平", createTimeHour <= 19, "峰", createTimeHour <= 24, "平")}
mm {switch(Month(时间) < 7, 0, Month(时间) < 10, 1, Month(时间) <= 12, 0)}
{Switch(mm = 1, jfpg, mm = 0, fpg)}
您好,没有那个警告了,但是我按照这样子写预览后只有平时间段的,麻烦帮忙看下这样子写是否有误
|