public async Task <ResponseMessage <List <SaleStatisticsResponse> > > ShopsSaleStatistics(UserInfo user, [FromRoute] string buildingid) { ResponseMessage <List <SaleStatisticsResponse> > response = new ResponseMessage <List <SaleStatisticsResponse> >(); if (string.IsNullOrEmpty(buildingid)) { response.Code = ResponseCodeDefines.ModelStateInvalid; response.Message = "传入值不符合规则"; return(response); } try { response.Extension = await _shopsManager.SaleStatistics(buildingid); } catch (Exception e) { response.Code = ResponseCodeDefines.ServiceError; response.Message = e.Message; Logger.Error($"用户{user?.UserName ?? ""}({user?.Id ?? ""})销售统计(ShopsSaleStatistics)报错:\r\n{e.Message},\r\n请求参数为:\r\n(buildingid){buildingid ?? ""}"); } return(response); }