示例#1
0
 /// <summary>
 /// 获取标签列表
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public List <dynamic> GetTagMstrList(TagMstrQuery query)
 {
     return(_sqlQuery.Select(@"
         TAG_MSTR_CODE,
         TAG_NAME")
            .Filter("CREATE_ORG_NO", query.CREATE_ORG_NO)
            .Filter("DEL_FLAG", 1)
            .OrderBy("UPDATE_DATE desc")
            .GetList <dynamic>(@"TAG_MSTR", Context.Database.GetDbConnection()));
 }
示例#2
0
 public ActionResult GetTagMstrList(TagMstrQuery query)
 {
     try
     {
         var result = _tagMstrRepository.GetTagMstrList(query);
         return(Success("获取成功", result));
     }
     catch (Exception ex)
     {
         return(Fail(ex.Message));
     }
 }
示例#3
0
 public ActionResult GetTagMstrPageList(TagMstrQuery query)
 {
     try
     {
         var result = _tagMstrRepository.GetTagMstrPageList(query);
         return(Page(result.Data, result.Page));
     }
     catch (Exception ex)
     {
         return(Fail(ex.Message));
     }
 }
示例#4
0
 /// <summary>
 /// 获取标签分页列表
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public PagerList <dynamic> GetTagMstrPageList(TagMstrQuery query)
 {
     return(_sqlQuery.Select(@"
         TAG_MSTR_CODE,
         TAG_NAME,
         TAG_MSTR_DESC,
         CREATE_DATE,
         CASE TAG_STATUS
         WHEN 1 THEN
         '是'
         ELSE
         '否'
         END TAG_STATUS")
            .Filter("TAG_NAME", query.TAG_NAME, Operator.Contains)
            .Filter("CREATE_ORG_NO", AbpSession.ORG_NO)
            .Filter("DEL_FLAG", 1)
            .OrderBy("UPDATE_DATE desc")
            .GetPageList <dynamic>(@"TAG_MSTR", Context.Database.GetDbConnection(), query));
 }