@@ -104,18 +99,18 @@ public class OperationDao extends AbstractDao {
}
publicList<OperationDto>getAllOperation(){
returnrawQueryGetDtoList("select tp.*, rpc.content_id from t_project AS tp left outer join r_operation_content AS rpc on tp.operation_id = rpc.operation_id",null,OperationDto.class);
returnrawQueryGetDtoList("select tp.*, rpc.content_id from t_operation AS tp left outer join r_operation_content AS rpc on tp.operation_id = rpc.operation_id",null,OperationDto.class);
}
publicList<OperationDto>getLatestOperations(){
returnrawQueryGetDtoList("select * from t_project where operation_start_date <= ? order by operation_start_date DESC ",newString[]{DateTimeUtil.toStringInTimeZone(DateTimeUtil.getCurrentDate(),DateTimeFormat.yyyyMMddHHmmss_hyphen,"GMT")},OperationDto.class);
returnrawQueryGetDtoList("select * from t_operation where operation_start_date <= ? order by operation_start_date DESC ",newString[]{DateTimeUtil.toStringInTimeZone(DateTimeUtil.getCurrentDate(),DateTimeFormat.yyyyMMddHHmmss_hyphen,"GMT")},OperationDto.class);
returnrawQueryGetInt("select COUNT(*) from t_task_report where task_key=? AND task_report_level=? AND task_report_id=? AND report_start_date=?",newString[]{""+taskKey,""+taskReportLevel,""+taskReportId,""+reportStartDate})>0;