Beispiel #1
0
 public List<SiteDO> listByRelation(SiteRelationDO siteRelationDO) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("relation", siteRelationDO.getRelation());
   params.put("relatedType", siteRelationDO.getRelatedType());
   params.put("relatedId", siteRelationDO.getRelatedId());
   List<SiteDO> list = getSqlMapClientTemplate().queryForList("Site.listByRelation", params);
   return list;
 }
Beispiel #2
0
 public List<SiteDO> pageByRelation(SiteRelationDO siteRelationDO, 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("pageStart", page.getPageStart());
   params.put("pageSize", page.getPageSize());
   List<SiteDO> list = getSqlMapClientTemplate().queryForList("Site.pageByRelation", params);
   return list;
 }
Beispiel #3
0
 public List<SiteDO> listByRelationAndExample(SiteRelationDO siteRelationDO, SiteDO siteDO) {
   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());
   List<SiteDO> list =
       getSqlMapClientTemplate().queryForList("Site.listByRelationAndExample", params);
   return list;
 }