소스 검색

订单统计功能

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

+ 1 - 1
go/gopath/src/fohow.com/apps/models/order_model/order_detail.go

@@ -121,7 +121,7 @@ func GetStaticOrderDetails(bDateUnix, eDateUnix int64, state string, isSend bool
 		sql = strings.Join([]string{sql, s}, " ")
 	}
 	if len(state) > 0 {
-		s := fmt.Sprintf("and o.status=%s", state)
+		s := fmt.Sprintf("and o.status='%s'", state)
 		sql = strings.Join([]string{sql, s}, " ")
 	}
 	s := "and ot.is_zeng=? group by ot.product_id order by product_id desc"