代码如下.
public String PlatSource() {
userPlatTypeStats =  userPlatTypeStatService.getUserPlatTypeStats(
StatType, mindate, maxdate, PlatType);
                return PageCode.USER_PLATSOURCE;
}
public List<UserPlatTypeStat> getUserPlatTypeStats(char StatType,
Date mindate, Date maxdate, String PlatType) {
mindate = MetherUtil.getMinDay(mindate);
maxdate = MetherUtil.getMaxDay(maxdate);
String sql = "from UserPlatTypeStat U where U.StatType=? and U.StatDay>=? and U.StatDay<=?";
Query query = sessionFactory.getCurrentSession().createQuery(sql);
query.setParameter(0, StatType);
query.setParameter(1, mindate);
query.setParameter(2, maxdate);
//query.setParameter(3, PlatType);

return query.list();
}
出现的效果如下
服务器 zen-game facebook
2010-09-01
2010-09-01  17
2010-09-01  9
2010-09-02  32
2010-09-02  9 我想要的效果是. 在同一个日期的在同一行显示..  谢谢.急需,坐等