Esempio n. 1
0
  /**
   * 不保存搜索条件直接搜索
   *
   * @param pageNo
   */
  private static List<MessageIndexDto> doDirectAdvanceSearch(int pageNo, CommonSearchDto cs) {
    MessageIndexCnd cnd = new MessageIndexCnd();
    cnd.newsSource = cs.newsSource;
    cnd.newsClassify = cs.newsClassify;
    cnd.bulletinClassify = cs.bulletinClassify;
    cnd.bulletinPlateTree = cs.reportPlateTree;
    cnd.reportClassify = cs.reportClassify;
    cnd.reportOrg = cs.reportOrg;
    cnd.reportPlateTree = cs.reportPlateTree;
    cnd.advanceType = cs.advanceType;
    List<BulletinClassify> bulletinList = bulletinClassifies;
    if (cs == null) {
      cs = new CommonSearchDto();
    }
    List<MessageIndexDto> messageIndexDtoList = null;
    if (cs.advanceId != 0) {
      messageIndexDtoList = doAdvanceInfoSearch(cs.advanceId, cs, pageNo);
    } else {
      messageIndexDtoList = MessageIndexService.doAdvanceSearch(cnd, bulletinList, pageNo, cs);
    }

    /* UserComposeInfo uci = fetchUserComposeInfo();
    List<UserTemplate> utList = TemplateService.fetchUserTemplateList(uci, TemplateService.TemplateType.messageIndex);
    int moreType = MoreType.directSearch.type;*/
    return messageIndexDtoList;
    // render("@messageIndex", messageIndexDtoList, cs, utList, moreType);
  }
Esempio n. 2
0
 public static void moreDirectAdvanceSearch(int pageNo, CommonSearchDto cs) {
   List<BulletinClassify> bulletinList = bulletinClassifies;
   MessageIndexCnd cnd = new MessageIndexCnd();
   cnd.newsSource = cs.newsSource;
   cnd.newsClassify = cs.newsClassify;
   cnd.bulletinClassify = cs.bulletinClassify;
   cnd.bulletinPlateTree = cs.reportPlateTree;
   cnd.reportClassify = cs.reportClassify;
   cnd.reportOrg = cs.reportOrg;
   cnd.reportPlateTree = cs.reportPlateTree;
   cnd.advanceType = cs.advanceType;
   if (cs == null) {
     cs = new CommonSearchDto();
   }
   List<MessageIndexDto> messageIndexDtoList = null;
   if (cs.advanceId != 0) {
     messageIndexDtoList = doAdvanceInfoSearch(cs.advanceId, cs, pageNo);
   } else {
     messageIndexDtoList = MessageIndexService.doAdvanceSearch(cnd, bulletinList, pageNo, cs);
   }
   render("@moreMessage", messageIndexDtoList, cnd, pageNo, cs);
 }