|
@@ -94,7 +94,7 @@ type RecordWithPhone struct {
|
94
|
94
|
// GetLuckDrawRecordCount 获取抽奖记录count
|
95
|
95
|
func (m *LuckDrawDao) GetLuckDrawRecordCount(id, tel string) (int, error) {
|
96
|
96
|
var records []RecordWithPhone
|
97
|
|
- sql := `select a.*,b.customer_name,b.phone,b,name from ta_luckdraw_record a inner join ta_customer b on a.user_id=b.customer_id where a.luckdraw_id=?`
|
|
97
|
+ sql := `select a.*,b.customer_name,b.phone,b.name from ta_luckdraw_record a inner join ta_customer b on a.user_id=b.customer_id where a.luckdraw_id=?`
|
98
|
98
|
if tel != "" {
|
99
|
99
|
sql = sql + ` and b.phone=` + tel
|
100
|
100
|
}
|
|
@@ -106,7 +106,7 @@ func (m *LuckDrawDao) GetLuckDrawRecordCount(id, tel string) (int, error) {
|
106
|
106
|
// GetLuckDrawRecord 获取抽奖记录信息
|
107
|
107
|
func (m *LuckDrawDao) GetLuckDrawRecord(id, tel string, page, pageSize int) ([]RecordWithPhone, error) {
|
108
|
108
|
var records []RecordWithPhone
|
109
|
|
- sql := `select a.*,b.customer_name,b.phone from ta_luckdraw_record a inner join ta_customer b on a.user_id=b.customer_id where a.luckdraw_id=?`
|
|
109
|
+ sql := `select a.*,b.customer_name,b.phone,b.name from ta_luckdraw_record a inner join ta_customer b on a.user_id=b.customer_id where a.luckdraw_id=?`
|
110
|
110
|
if tel != "" {
|
111
|
111
|
sql = sql + ` and b.phone=` + tel
|
112
|
112
|
}
|
|
@@ -119,7 +119,7 @@ func (m *LuckDrawDao) GetLuckDrawRecord(id, tel string, page, pageSize int) ([]R
|
119
|
119
|
// GetLuckDrawRecordExcel 获取抽奖记录信息
|
120
|
120
|
func (m *LuckDrawDao) GetLuckDrawRecordExcel(id, tel string) ([]RecordWithPhone, error) {
|
121
|
121
|
var records []RecordWithPhone
|
122
|
|
- sql := `select a.*,b.customer_name,b.phone from ta_luckdraw_record a inner join ta_customer b on a.user_id=b.customer_id where a.luckdraw_id=?`
|
|
122
|
+ sql := `select a.*,b.customer_name,b.phone,b.name from ta_luckdraw_record a inner join ta_customer b on a.user_id=b.customer_id where a.luckdraw_id=?`
|
123
|
123
|
if tel != "" {
|
124
|
124
|
sql = sql + ` and b.phone=` + tel
|
125
|
125
|
}
|