소스 검색

显示时间调整-6

abiao 3 년 전
부모
커밋
9d1c7dc3cb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      go/gopath/src/fohow.com/apps/models/order_model/order.go

+ 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"`