コード例 #1
0
 @SuppressWarnings("unchecked")
 @Override
 public List<DcSearchLogDO> querySearchLogsPage(
     DcSearchLogCondition condition, int start, int size) {
   Map<String, Object> params = condition.toMap();
   params.put("start", start);
   params.put("size", size);
   return (List<DcSearchLogDO>)
       getSqlMapClientTemplate().queryForList("DcSearchLog.querySearchLogsPage", params);
 }
コード例 #2
0
 @Override
 public Integer updateSearchLogStatus(DcSearchLogCondition condition, String status) {
   Map<String, Object> params = condition.toMap();
   params.put("status", status);
   return (Integer) getSqlMapClientTemplate().update("DcSearchLog.updateSearchLogStatus", params);
 }
コード例 #3
0
 @Override
 public Integer countSearchLogs(DcSearchLogCondition condition) {
   return (Integer)
       getSqlMapClientTemplate().queryForObject("DcSearchLog.countSearchLogs", condition.toMap());
 }