瀏覽代碼

activity info

胡轶钦 6 年之前
父節點
當前提交
21a85d91fe
共有 3 個文件被更改,包括 3 次插入4 次删除
  1. 0
    1
      controllers/course/course.go
  2. 0
    0
      models/activityinfo/activityinfo.go
  3. 3
    3
      models/luckdraw/luckdraw.go

+ 0
- 1
controllers/course/course.go 查看文件

@@ -279,5 +279,4 @@ func (c *CourseController) GetCourseForWechatFront() {
279 279
 		c.ResponseError(err)
280 280
 	}
281 281
 	c.ResponseJSON(courses)
282
-
283 282
 }

+ 0
- 0
models/activityinfo/activityinfo.go 查看文件


+ 3
- 3
models/luckdraw/luckdraw.go 查看文件

@@ -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
 	}