Sfoglia il codice sorgente

显示时间调整-6

abiao 3 anni fa
parent
commit
9d1c7dc3cb

+ 2 - 2
go/gopath/src/fohow.com/apps/models/order_model/order.go

@@ -834,7 +834,7 @@ func GetDistrictOrdersCount(tcBl int64, tcArea string) int64 {
 	endDay := helper.GetLastDateOfMonth(d)
 	endTime := endDay.Unix()
 
-	sql := excuteSql + fmt.Sprintf(" and  paied_at > %d and paied_at < %d and  status in ('processing','complete','dispatch') order by paied_at desc", beginTime, endTime)
+	sql := excuteSql + fmt.Sprintf(" and  paied_at > %d and paied_at < %d and  status in ('processing','complete','dispatch') ", beginTime, endTime)
 
 	type Ret struct {
 		Count int64 `json:"count"`
@@ -879,7 +879,7 @@ func GetDistrictOrderSum(tcBl int64, tcArea string) int64 {
 	endDay := helper.GetLastDateOfMonth(d)
 	endTime := endDay.Unix()
 
-	sql := excuteSql + fmt.Sprintf(" and  paied_at > %d and paied_at < %d and  status in ('processing','complete','dispatch') order by paied_at desc", beginTime, endTime)
+	sql := excuteSql + fmt.Sprintf(" and  paied_at > %d and paied_at < %d and  status in ('processing','complete','dispatch') ", beginTime, endTime)
 
 	type Ret struct {
 		Count int64 `json:"count"`