Example #1
0
 public List<SiteDO> pageByExample(SiteDO siteDO, PageInfo page) {
   Map<String, Object> params = new HashMap<String, Object>();
   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.pageByExample", params);
   return list;
 }
Example #2
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;
 }