Explorar o código

fix:sql修改

duxin %!s(int64=2) %!d(string=hai) anos
pai
achega
b4c8445fa8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {