Merge remote-tracking branch 'origin/develop' into develop

develop
Hoshi 2024-09-18 10:44:51 +08:00
commit 8f4ac15a31
1 changed files with 12 additions and 9 deletions

View File

@ -18,6 +18,7 @@ import com.megatron.common.model.RequestContext;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -141,6 +142,7 @@ public class IndexServiceImpl implements IndexService {
User user = userRepository.query(requestContext.getTarget()); User user = userRepository.query(requestContext.getTarget());
log.info("user:{}", JSON.toJSONString(user)); log.info("user:{}", JSON.toJSONString(user));
List<AppPerm> permList = JSONArray.parseArray(qxUtils.queryApp(trxToken, user.getUserId()), AppPerm.class); List<AppPerm> permList = JSONArray.parseArray(qxUtils.queryApp(trxToken, user.getUserId()), AppPerm.class);
if (!CollectionUtils.isEmpty(permList)) {
List<String> appIdList = permList.stream() List<String> appIdList = permList.stream()
.map(AppPerm::getId) .map(AppPerm::getId)
.collect(Collectors.toList()); .collect(Collectors.toList());
@ -152,6 +154,7 @@ public class IndexServiceImpl implements IndexService {
data.put("enable", "0"); data.put("enable", "0");
} }
} }
}
log.info("allAppList:{}", JSON.toJSONString(allAppList)); log.info("allAppList:{}", JSON.toJSONString(allAppList));
return new GeneralResult(true, allAppList, "查询成功"); return new GeneralResult(true, allAppList, "查询成功");
} catch (Exception e) { } catch (Exception e) {