Esempio n. 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;
 }
Esempio n. 2
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;
 }
Esempio n. 3
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;
 }