時間のJava

/ ** 
*根据日期统计一天的会议
* @paramのsiteId
* @paramのstartTime
* @return
* /
パブリックINT countMeetingInSiteByDate(文字列のsiteId、日付のstartTime)
{
長いendTimeMillis = startTime.getTime()* 24 + 1000年* 60 * 60 ;
日付endTimeは=新しいDate(endTimeMillis)。

地図paramMap =新しいHashMapの(4);
paramMap.put( "のsiteId"、のsiteId)。
paramMap.put( "のstartTime"、のstartTime)。
paramMap.put( "endTimeは"、endTimeは);

StringBufferのSQLが=新規のStringBuffer(
"qmIsDelete = 0とqmSiteId =:のsiteIdとqmMeetingTime> =:のstartTimeとqmMeetingTime <:endTimeは")。
countBySql(sql.toString()、paramMap)を返します。

}

おすすめ

転載: www.cnblogs.com/zzl0916/p/10969415.html