コード例 #1
0
 public List<ArticleDO> listByRelation(ArticleRelationDO articleRelationDO) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("relation", articleRelationDO.getRelation());
   params.put("relatedType", articleRelationDO.getRelatedType());
   params.put("relatedId", articleRelationDO.getRelatedId());
   List<ArticleDO> list = getSqlMapClientTemplate().queryForList("Article.listByRelation", params);
   return list;
 }
コード例 #2
0
 public List<QuestionDO> listByRelation(QuestionRelationDO questionRelationDO) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("relation", questionRelationDO.getRelation());
   params.put("relatedType", questionRelationDO.getRelatedType());
   params.put("relatedId", questionRelationDO.getRelatedId());
   List<QuestionDO> list =
       getSqlMapClientTemplate().queryForList("Question.listByRelation", params);
   return list;
 }
コード例 #3
0
 public List<ArticleDO> pageByExample(ArticleDO articleDO, PageInfo page) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("id", articleDO.getId());
   params.put("gmtCreate", articleDO.getGmtCreate());
   params.put("gmtModify", articleDO.getGmtModify());
   params.put("creatorId", articleDO.getCreatorId());
   params.put("modifierId", articleDO.getModifierId());
   params.put("title", articleDO.getTitle());
   params.put("contentId", articleDO.getContentId());
   params.put("type", articleDO.getType());
   params.put("pageStart", page.getPageStart());
   params.put("pageSize", page.getPageSize());
   List<ArticleDO> list = getSqlMapClientTemplate().queryForList("Article.pageByExample", params);
   return list;
 }
コード例 #4
0
 public List<ArticleDO> pageByRelation(ArticleRelationDO articleRelationDO, PageInfo page) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("relation", articleRelationDO.getRelation());
   params.put("relatedType", articleRelationDO.getRelatedType());
   params.put("relatedId", articleRelationDO.getRelatedId());
   params.put("pageStart", page.getPageStart());
   params.put("pageSize", page.getPageSize());
   List<ArticleDO> list = getSqlMapClientTemplate().queryForList("Article.pageByRelation", params);
   return list;
 }
コード例 #5
0
 public List<ArticleDO> listByRelationAndExample(
     ArticleRelationDO articleRelationDO, ArticleDO articleDO) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("relation", articleRelationDO.getRelation());
   params.put("relatedType", articleRelationDO.getRelatedType());
   params.put("relatedId", articleRelationDO.getRelatedId());
   params.put("id", articleDO.getId());
   params.put("gmtCreate", articleDO.getGmtCreate());
   params.put("gmtModify", articleDO.getGmtModify());
   params.put("creatorId", articleDO.getCreatorId());
   params.put("modifierId", articleDO.getModifierId());
   params.put("title", articleDO.getTitle());
   params.put("contentId", articleDO.getContentId());
   params.put("type", articleDO.getType());
   List<ArticleDO> list =
       getSqlMapClientTemplate().queryForList("Article.listByRelationAndExample", params);
   return list;
 }
コード例 #6
0
 public List<SiteDO> pageByRelationAndExample(
     SiteRelationDO siteRelationDO, SiteDO siteDO, PageInfo page) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("relation", siteRelationDO.getRelation());
   params.put("relatedType", siteRelationDO.getRelatedType());
   params.put("relatedId", siteRelationDO.getRelatedId());
   params.put("id", siteDO.getId());
   params.put("gmtCreate", siteDO.getGmtCreate());
   params.put("gmtModify", siteDO.getGmtModify());
   params.put("creatorId", siteDO.getCreatorId());
   params.put("modifierId", siteDO.getModifierId());
   params.put("title", siteDO.getTitle());
   params.put("description", siteDO.getDescription());
   params.put("status", siteDO.getStatus());
   params.put("type", siteDO.getType());
   params.put("pageStart", page.getPageStart());
   params.put("pageSize", page.getPageSize());
   List<SiteDO> list =
       getSqlMapClientTemplate().queryForList("Site.pageByRelationAndExample", params);
   return list;
 }
コード例 #7
0
 public List<TermRelationDO> pageByExample(TermRelationDO termRelationDO, PageInfo page) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("id", termRelationDO.getId());
   params.put("gmtCreate", termRelationDO.getGmtCreate());
   params.put("gmtModify", termRelationDO.getGmtModify());
   params.put("creatorId", termRelationDO.getCreatorId());
   params.put("modifierId", termRelationDO.getModifierId());
   params.put("relatedId", termRelationDO.getRelatedId());
   params.put("termId", termRelationDO.getTermId());
   params.put("relation", termRelationDO.getRelation());
   params.put("relatedType", termRelationDO.getRelatedType());
   params.put("relationData", termRelationDO.getRelationData());
   params.put("pageStart", page.getPageStart());
   params.put("pageSize", page.getPageSize());
   List<TermRelationDO> list =
       getSqlMapClientTemplate().queryForList("TermRelation.pageByExample", params);
   return list;
 }
コード例 #8
0
 public List<QuestionDO> pageByRelationAndExample(
     QuestionRelationDO questionRelationDO, QuestionDO questionDO, PageInfo page) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("relation", questionRelationDO.getRelation());
   params.put("relatedType", questionRelationDO.getRelatedType());
   params.put("relatedId", questionRelationDO.getRelatedId());
   params.put("id", questionDO.getId());
   params.put("gmtCreate", questionDO.getGmtCreate());
   params.put("gmtModify", questionDO.getGmtModify());
   params.put("creatorId", questionDO.getCreatorId());
   params.put("modifierId", questionDO.getModifierId());
   params.put("title", questionDO.getTitle());
   params.put("content", questionDO.getContent());
   params.put("type", questionDO.getType());
   params.put("pageStart", page.getPageStart());
   params.put("pageSize", page.getPageSize());
   List<QuestionDO> list =
       getSqlMapClientTemplate().queryForList("Question.pageByRelationAndExample", params);
   return list;
 }