Ejemplo n.º 1
0
        public static List <FundAssetConfig> GetFundAssetConfigs(string fundCode)
        {
            var configs = DataDao.GetFundAssetConfigs(fundCode);

            if (DataHelper.IsDataReady(configs?.LastOrDefault()))
            {
                return(configs);
            }
            else
            {
                configs = EmService.GetFundAssetConfigs(fundCode);
                DataDao.UpdateFundAssetConfigs(configs);
                return(configs);
            }
        }