@@ -152,74 +152,70 @@ public class RoutineTaskReportDao extends AbstractDao {
...
@@ -152,74 +152,70 @@ public class RoutineTaskReportDao extends AbstractDao {
returnrawQueryGetDto("select * from t_inspect_task_report where task_key=? and task_report_id=? and datetime(report_start_date)=datetime(?, 'utc')",newString[]{taskKey,""+taskReportId,reportStartDate},RoutineTaskReportDto.class);
returnrawQueryGetDto("select * from t_inspect_task_report where task_key=? and task_report_id=? and datetime(report_start_date)=datetime(?, 'utc')",newString[]{taskKey,""+taskReportId,reportStartDate},RoutineTaskReportDto.class);
// return rawQueryGetString("select local_attached_file_name from t_inspect_task_report where task_key=? and task_report_id=? and datetime(report_start_date)=datetime(?)", new String[]{ taskKey, "" + taskReportId, reportStartDate });
returnrawQueryGetString("select local_attached_file_name from t_inspect_task_report where task_key=? and task_report_id=? and datetime(report_start_date)=datetime(?)",newString[]{taskKey,""+taskReportId,reportStartDate});
returnrawQueryGetDto("select * from t_task_report where task_key=? AND task_report_level",newString[]{""+taskKey,""+taskReportLevel},TaskReportDto.class);
returnrawQueryGetDto("select * from t_task_report where task_key=? AND task_report_level=?",newString[]{""+taskKey,""+taskReportLevel},TaskReportDto.class);
}
}
publicbooleanupdate(TaskReportDtodto){
publicbooleanupdate(TaskReportDtodto){
...
@@ -114,44 +117,44 @@ public class TaskReportDao extends AbstractDao {
...
@@ -114,44 +117,44 @@ public class TaskReportDao extends AbstractDao {
@@ -201,20 +204,16 @@ public class TaskReportDao extends AbstractDao {
...
@@ -201,20 +204,16 @@ public class TaskReportDao extends AbstractDao {
returnrawQueryGetString("select local_attached_file_name from t_task_report where task_key=? AND task_report_level=?",newString[]{""+taskKey,""+taskReportLevel});
returnrawQueryGetString("select local_attached_file_name from t_task_report where task_key=? AND task_report_level=?",newString[]{""+taskKey,""+taskReportLevel});
returnrawQueryGetDtoList("select * from t_task_report where task_key=?",newString[]{taskKey},TaskReportDto.class);
returnrawQueryGetDtoList("select * from t_task_report where task_key=? and task_report_level",newString[]{""+taskKey,""+taskReportLevel},TaskReportDto.class);
}
}
publicList<TaskReportDto>selectAll(){
publicList<TaskReportDto>selectAll(){
returnrawQueryGetDtoList("select * from t_task_report",null,TaskReportDto.class);
returnrawQueryGetDtoList("select * from t_task_report",null,TaskReportDto.class);
}
}
publicvoiddeleteAll(){
delete("t_task_report",null,null);
}
/**
/**
*
* データの存在チェック
* @param taskKey
* @param taskKey
* @param taskReportLevel
* @param taskReportLevel
* @return
* @return
...
@@ -222,4 +221,146 @@ public class TaskReportDao extends AbstractDao {
...
@@ -222,4 +221,146 @@ public class TaskReportDao extends AbstractDao {
delete("t_task_report","task_key=? and task_report_level=? task_report_id=? and datetime(report_start_date)=datetime(?, 'utc')",newString[]{dto.taskKey,""+dto.taskReportLevel,""+dto.taskReportId,DateTimeUtil.toString(dto.reportStartDate,DateTimeFormat.yyyyMMddHHmmss_hyphen)});
returnrawQueryGetDto("select * from t_inspect_task_report where task_key=? and task_report_id=? and datetime(report_start_date)=datetime(?, 'utc')",newString[]{taskKey,""+taskReportId,reportStartDate},TaskReportDto.class);
returnrawQueryGetString("select local_attached_file_name from t_inspect_task_report where task_key=? and task_report_id=? and datetime(report_start_date)=datetime(?)",newString[]{taskKey,""+taskReportId,reportStartDate});
private void sendTaskReportData(final ABVContentViewActivity context, final long operationId, final String taskKey, final int enableReportHistory, final boolean isDirection) {