returnrawQueryGetInt("select count(tc.content_id) from t_content as tc inner join r_project_content as rpc on tc.content_id = rpc.content_id where rpc.project_id = ? and rpc.project_content_flg = 0 and tc.content_id = ?",newString[]{""+operationId,""+contentId})>0;
returnrawQueryGetInt("select count(tc.content_id) from t_content as tc inner join r_operation_content as rpc on tc.content_id = rpc.content_id where rpc.operation_id = ? and rpc.operation_content_flg = 0 and tc.content_id = ?",newString[]{""+operationId,""+contentId})>0;
returnrawQueryGetDto("select * from r_project_content where project_content_flg = 1 AND project_id=?",newString[]{""+operationId},OperationContentDto.class);
returnrawQueryGetDto("select * from r_operation_content where operation_content_flg = 1 AND operation_id=?",newString[]{""+operationId},OperationContentDto.class);
returnrawQueryGetDtoList("select * from r_project_content where project_content_flg = 0 AND project_id=?",newString[]{""+operationId},ContentDto.class);
returnrawQueryGetDtoList("select * from r_operation_content where operation_content_flg = 0 AND operation_id=?",newString[]{""+operationId},ContentDto.class);
returnrawQueryGetDto("select * from r_project_content where project_content_flg = 1 AND content_id=?",newString[]{""+contentId},OperationContentDto.class);
returnrawQueryGetDto("select * from r_operation_content where operation_content_flg = 1 AND content_id=?",newString[]{""+contentId},OperationContentDto.class);
@@ -103,11 +103,11 @@ public class OperationDao extends AbstractDao {
}
publicList<OperationDto>getAllOperation(){
returnrawQueryGetDtoList("select tp.*, rpc.content_id from t_project AS tp left outer join r_project_content AS rpc on tp.project_id = rpc.project_id",null,OperationDto.class);
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);
}
publicList<OperationDto>getLatestOperations(){
returnrawQueryGetDtoList("select * from t_project where project_start_date <= ? order by project_start_date DESC ",newString[]{DateTimeUtil.toStringInTimeZone(DateTimeUtil.getCurrentDate(),DateTimeFormat.yyyyMMddHHmmss_hyphen,"GMT")},OperationDto.class);
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);
}
publicOperationDtogetOperation(longoperationId){
...
...
@@ -115,7 +115,7 @@ public class OperationDao extends AbstractDao {
@@ -166,10 +269,19 @@ public class ABookCheckWebViewHelper extends ABookHelper {
* @param taskKey タスクキー
* @param reportUpdateType 作業履歴タイプ
*/
// #32782 指示者テーブル関連削除 start
// TODO change
/*
private void sendTaskReportData(final ABVContentViewActivity context, final long operationId, final String taskKey, final int reportUpdateType, final boolean isDirection) {