Browse Source

增加系统配置接口

kobe6258 4 months ago
parent
commit
ef3bcc341c
1 changed files with 4 additions and 2 deletions
  1. 4 2
      controllers/order.go

+ 4 - 2
controllers/order.go

@@ -122,7 +122,7 @@ func (this *OrderController) ProductOrderList() {
 	currentIndex, _ := this.GetInt("CurrentIndex")
 	sortType := this.GetString("SortType")
 	KeyWord := this.GetString("KeyWord")
-
+	TemplateUserId, _ := this.GetInt("TemplateUserId", 0)
 	PaymentDate := this.GetString("PaymentDate")
 	PaymentWay := this.GetString("PaymentWay")
 	CreatedDate := this.GetString("CreatedDate")
@@ -152,7 +152,9 @@ func (this *OrderController) ProductOrderList() {
 	if PaymentWay != "" {
 		condition += " AND payment_way='" + PaymentWay + "'"
 	}
-
+	if TemplateUserId > 0 {
+		condition += fmt.Sprintf(" AND template_user_id=%d", TemplateUserId)
+	}
 	if OrderStatus != "" {
 		switch OrderStatus {
 		case "pending":