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