浏览代码

fix:sql修改

duxin 2 年之前
父节点
当前提交
b4c8445fa8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/chat_group.go

+ 1 - 1
service/chat_group.go

@@ -43,7 +43,7 @@ func EntPerson(entId int64, isAll bool) (map[string]string, map[string]string, m
 		}
 
 		//查询企业人员职位
-		positionList := IC.BaseMysql.SelectBySql(fmt.Sprintf(`SELECT b.phone,b.id FROM base_position a
+		positionList := IC.BaseMysql.SelectBySql(fmt.Sprintf(`SELECT b.phone,a.id FROM base_position a
 							INNER JOIN base_user b ON a.ent_id = %d
 							AND a.user_id = b.id`, entId))
 		if positionList != nil && len(*positionList) > 0 {