Browse Source

状态不选时,默认选择三种状态

abiao 5 years ago
parent
commit
dab702b1ee
1 changed files with 3 additions and 0 deletions
  1. 3 0
      go/gopath/src/fohow.com/apps/models/order_model/order_detail.go

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

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