胡轶钦 6 lat temu
rodzic
commit
fedee8cceb
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      models/luckdrawlist/luckdrawlist.go

+ 3
- 3
models/luckdrawlist/luckdrawlist.go Wyświetl plik

@@ -71,10 +71,10 @@ func (m *LuckdrawDAO) GetLuckShareList(fromPhone, toPhone string, filters []stri
71 71
 	}
72 72
 	sql := `select * from ta_share_lucky_record where %s 1=1`
73 73
 	if fromPhone != "" {
74
-		sql += ` and from_customer_tel = ` + fromPhone
74
+		sql += ` and from_customer_tel = '` + fromPhone + `'`
75 75
 	}
76 76
 	if toPhone != "" {
77
-		sql += ` and to_customer_tel = ` + toPhone
77
+		sql += ` and to_customer_tel = '` + toPhone + `'`
78 78
 	}
79 79
 	sql += ` order by a.create_date desc `
80 80
 	total, err := utils.NewPageNaviEngine(m.ctx).GetPageList(&luckShare, fmt.Sprintf(sql, filterString), limit)
@@ -113,7 +113,7 @@ WHERE
113 113
 	return nil, nil
114 114
 }
115 115
 
116
-func (m *LuckdrawDAO) VerifyLuckdraw(luckdrawId int) error {
116
+func (m *LuckdrawDAO) VerifyLuckdraw(luckdrawId string) error {
117 117
 	var luckdraw = model.TaLuckdrawRecord{
118 118
 		Id:           luckdrawId,
119 119
 		WriteoffDate: time.Now(),