wangshan 1 år sedan
förälder
incheckning
45a4237e84
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      entity/user.go

+ 3 - 0
entity/user.go

@@ -1,6 +1,7 @@
 package entity
 
 import (
+	"app.yhyue.com/moapp/jybase/date"
 	"encoding/json"
 	"fmt"
 	"strconv"
@@ -81,6 +82,8 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 	logx.Info(m.MgoUserId, m.PositionId, "------------------userInfoRpc-------------------------:", userInfoRpc)
 	//权益中台获取权益
 	userPowers := userInfoRpc.GetUserPowers()
+	count := BaseMysql.SelectBySql(`select count(*) from entniche_wait_empower where ent_id=? and end_time>?`, m.EntId, time.Now().Format(date.Date_Full_Layout))
+	logx.Info(userPowers.Ent.Services, "----0000-----", count)
 	if userPowers != nil {
 		logx.Info(userInfoRpc.MgoUserId, "------------userPowers:", userPowers)
 		//注册时间