package com.lxzn.framework.utils; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import org.springframework.beans.factory.annotation.Value; public class UserIdUtil { @Value("${user.userIdYml}") private static String userIdYml; public static String selectUserIdAdmin() { if (StringUtils.isEmpty(userIdYml)) { userIdYml = "1254966905669160962"; } return userIdYml; } }