sqlserver :
日期:
2011/08/03
if(createDT != null && !"".equals(createDT.trim())){
hqlStr.append(" AND convert(varchar(10),s.createDT,120) = :createDT ");countStr.append(" AND convert(varchar(10),s.createDT,120) = :createDT ");
map.put("createDT", createDT);
}
oracle :
if(endDT != null && !"".equals(endDT.trim())){
hqlStr.append(" AND to_char(c.createDT,'yyyy-MM-dd') <= :endDT ");
countStr.append(" AND to_char(c.createDT,'yyyy-MM-dd') <= :endDT ");
map.put("endDT", endDT);
}