/// <summary> /// 查询对象 /// </summary> public async Task <PageInfo <ListCDM> > Query(ListCPM search) { string where = " ClienterId=" + search.ClienterId; return(new PageHelper().GetPages <ListCDM>(SuperMan_Read, search.PageIndex, where, "IsRead asc ,id desc ", "Id,SUBSTRING(Content,1,15) as Content,IsRead,CONVERT(varchar(16),PubDate, 20) as PubDate", " ClienterMessage (nolock)", SystemConst.PageSize, true)); }
/// <summary> /// 骑士端获取消息列表接口 add by caoheyang 20150615 /// </summary> /// <param name="model">参数实体</param> /// <returns></returns> public async Task <ResultModel <object> > ListC([FromBody] ListCPM model) { return(await messageProvider.ListC(model)); }
/// <summary> /// 骑士端获取消息列表接口 add by caoheyang 20150615 /// </summary> /// <param name="model">参数实体</param> /// <returns></returns> public async Task <ResultModel <object> > ListC(ListCPM model) { return(ResultModel <object> .Conclude(SystemState.Success, (await clienterMessageDao.Query(model)).Records)); }