Beispiel #1
0
        public static string GetSingleUsrPortrait(int accId)
        {
            UserBehaviorChartModel chartModel = new UserBehaviorChartModel();

            chartModel = UserPortraitBLL.GetSingleUsrPortrait(accId);

            return(CommonLib.Helper.JsonSerializeObject(chartModel));
        }
        public UserBehaviorChartModel GetSingleUsrPortrait(int accId)
        {
            UserBehaviorChartModel model = new UserBehaviorChartModel();

            StringBuilder strSql = new StringBuilder();

            strSql.Append("select * from Sys_I200.[dbo].[SysRpt_ShopDayInfo] where accountid=@accId order by dayDate;");

            model.DataList = DapperHelper.Query <SysRpt_ShopDayInfo>(strSql.ToString(), new { accId = accId }).ToList();

            return(model);
        }