zhangchuanxing hai 1 día
pai
achega
d4042cfc3c
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 1 0
      models/db.go
  2. 2 0
      services/wx_user.go

+ 1 - 0
models/db.go

@@ -205,6 +205,7 @@ func init() {
 	initRaiServe()   // 权益服务记录模块
 	initRaiServe()   // 权益服务记录模块
 	initFiccReport() // 权益服务记录模块
 	initFiccReport() // 权益服务记录模块
 	initYidong()     // 易董初始化数据模块
 	initYidong()     // 易董初始化数据模块
+	initWxUseer()    // 用户相关模块
 
 
 	// 记录ORM查询日志
 	// 记录ORM查询日志
 	orm.Debug = true
 	orm.Debug = true

+ 2 - 0
services/wx_user.go

@@ -1537,6 +1537,7 @@ func GetWxUserEndDate(user *models.WxUserItem) (isShowTerminateButton bool, endD
 			err = errors.New("GetCompanyProductDetailByCompanyId, Err: " + e.Error())
 			err = errors.New("GetCompanyProductDetailByCompanyId, Err: " + e.Error())
 			return
 			return
 		}
 		}
+
 		if total == 0 {
 		if total == 0 {
 			isShowTerminateButton = true
 			isShowTerminateButton = true
 			endDataButton = productDetail.EndDate
 			endDataButton = productDetail.EndDate
@@ -1547,6 +1548,7 @@ func GetWxUserEndDate(user *models.WxUserItem) (isShowTerminateButton bool, endD
 				CompanyId:   user.CompanyId,
 				CompanyId:   user.CompanyId,
 				CompanyName: user.CompanyName,
 				CompanyName: user.CompanyName,
 				RealName:    user.RealName,
 				RealName:    user.RealName,
+				EndDate:     endDataButton,
 				CreateTime:  time.Now(),
 				CreateTime:  time.Now(),
 				ModifyTime:  time.Now(),
 				ModifyTime:  time.Now(),
 			}
 			}