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