瀏覽代碼

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

abiao 5 年之前
父節點
當前提交
dab702b1ee
共有 1 個文件被更改,包括 3 次插入0 次删除
  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}, " ")