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"