ソースを参照

feat:查询权益修改

duxin 2 年 前
コミット
766e8df31f

+ 3 - 0
jyBXSubscribe/rpc/internal/logic/getdistributorlogic.go

@@ -42,6 +42,9 @@ func (l *GetDistributorLogic) GetDistributor(in *bxsubscribe.GetDistributorReq)
 	}
 	if len(users) > 0 {
 		for _, v := range users {
+			if in.SelectIds != "1" && v.Id == common.IntAll(in.EntUserId) {
+				continue
+			}
 			var data bxsubscribe.UserResp
 			data.Id = common.Int64All(v.Id)
 			data.Name = v.Name

+ 1 - 1
jyBXSubscribe/rpc/model/entity.go

@@ -150,5 +150,5 @@ func GetEntPowerUsers(entId int) map[string]int {
 }
 
 func GetIsEnt(entId int) bool {
-	return IC.MainMysql.CountBySql(`select * from entniche_info where ent_id=? and status == 1`, entId) > 0
+	return IC.MainMysql.CountBySql(`select count(*) from entniche_info where id=? and status = 1`, entId) > 0
 }