Browse Source

bug修改

wangfei 6 years ago
parent
commit
3416a4c1a0
3 changed files with 2 additions and 3 deletions
  1. 0
    3
      models/customer/customer.go
  2. 1
    0
      models/verify/verify.go
  3. 1
    0
      service/verify/verify.go

+ 0
- 3
models/customer/customer.go View File

@@ -8,8 +8,6 @@ import (
8 8
 	"strings"
9 9
 	"time"
10 10
 
11
-	"github.com/astaxie/beego"
12
-
13 11
 	"github.com/yl10/kit/guid"
14 12
 
15 13
 	"github.com/go-xorm/xorm"
@@ -88,7 +86,6 @@ func (m *CustomerDAO) CustWithWXList(phone, username, recommendname, begindate,
88 86
 	query = query + ` ORDER BY
89 87
 			t.create_date DESC
90 88
 	`
91
-	beego.Error(query)
92 89
 	var cust []CustWithWX
93 90
 
94 91
 	cnt, err := utils.NewPageNaviEngine(m.ctx).GetPageList(&cust, query, []int{pageNum, offset}, models.STATUS_DEL)

+ 1
- 0
models/verify/verify.go View File

@@ -148,6 +148,7 @@ func (m *VerifyDAO) UpdateCustomerCard(customerCard *model.TaCustomerCard) error
148 148
 	var cols = []string{
149 149
 		"verify_date",
150 150
 		"verify_status",
151
+		"status",
151 152
 	}
152 153
 	_, err := m.db.Cols(cols...).Where("customer_card_id=?", customerCard.CustomerCardId).Update(customerCard)
153 154
 	return err

+ 1
- 0
service/verify/verify.go View File

@@ -139,6 +139,7 @@ func (s *VerifyServ) UpdateCustomerCourseDetail(customerDetail *model.TaCustomer
139 139
 func (s *VerifyServ) UpdateCustomerCard(customerCard *model.TaCustomerCard) error {
140 140
 	var err error
141 141
 	customerCard.VerifyDate = time.Now()
142
+	customerCard.Status = models.STATUS_USED
142 143
 	err = s.dao.UpdateCustomerCard(customerCard)
143 144
 	if err != nil {
144 145
 		utils.LogError("更新记录失败: " + err.Error())