|
@@ -108,7 +108,7 @@ func GetActivityonditionList(user *models.WxUserItem, activityTypeId, chartPermi
|
|
|
} else if whichDay == "2" {
|
|
|
startDate = time.Now().AddDate(0, 0, +1).Format(utils.FormatDate)
|
|
|
endDate = startDate
|
|
|
- } else if whichDay == "1,2" {
|
|
|
+ } else if whichDay == "1,2" || whichDay == "2,1" {
|
|
|
startDate = time.Now().Format(utils.FormatDate)
|
|
|
endDate = time.Now().AddDate(0, 0, +1).Format(utils.FormatDate)
|
|
|
} else if whichDay == "3" {
|
|
@@ -123,10 +123,10 @@ func GetActivityonditionList(user *models.WxUserItem, activityTypeId, chartPermi
|
|
|
} else if whichDay == "6" {
|
|
|
startDate = utils.GetLastMonthFirstDay().Format(utils.FormatDate)
|
|
|
endDate = utils.GetLastMonthLastDay().Format(utils.FormatDate)
|
|
|
- } else if whichDay == "3,4" {
|
|
|
+ } else if whichDay == "3,4" || whichDay == "4,3" {
|
|
|
startDate = utils.GetLastWeekMonday().Format(utils.FormatDate)
|
|
|
endDate = utils.GetNowWeekSunday().Format(utils.FormatDate)
|
|
|
- } else if whichDay == "5,6" {
|
|
|
+ } else if whichDay == "5,6" || whichDay == "6,5" {
|
|
|
startDate = utils.GetLastMonthFirstDay().Format(utils.FormatDate)
|
|
|
endDate = utils.GetNowMonthLastDay().Format(utils.FormatDate)
|
|
|
} else {
|