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;
 }
 public List<QuestionDO> pageByRelation(QuestionRelationDO questionRelationDO, 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("pageStart", page.getPageStart());
   params.put("pageSize", page.getPageSize());
   List<QuestionDO> list =
       getSqlMapClientTemplate().queryForList("Question.pageByRelation", params);
   return list;
 }
 public List<QuestionDO> listByRelationAndExample(
     QuestionRelationDO questionRelationDO, QuestionDO questionDO) {
   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());
   List<QuestionDO> list =
       getSqlMapClientTemplate().queryForList("Question.listByRelationAndExample", params);
   return list;
 }