|
@@ -150,6 +150,12 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
public Page<RuralProjectRecords> findPage(Page<RuralProjectRecords> page, RuralProjectRecords projectRecords) {
|
|
public Page<RuralProjectRecords> findPage(Page<RuralProjectRecords> page, RuralProjectRecords projectRecords) {
|
|
//查询超期时间天数
|
|
//查询超期时间天数
|
|
List<MainDictDetail> adventCount = DictUtils.getMainDictListOnProjectAdvent("advent_count");
|
|
List<MainDictDetail> adventCount = DictUtils.getMainDictListOnProjectAdvent("advent_count");
|
|
|
|
+ //查询超期时间天数(电子归档)
|
|
|
|
+ List<MainDictDetail> adventRecordCount = DictUtils.getMainDictListOnProjectAdvent("advent_record_count");
|
|
|
|
+ //查询超期时间天数(A类纸质归档)
|
|
|
|
+ List<MainDictDetail> adventRecordACount = DictUtils.getMainDictListOnProjectAdvent("advent_record_A_count");
|
|
|
|
+ //查询超期时间天数(B类纸质归档)
|
|
|
|
+ List<MainDictDetail> adventRecordBCount = DictUtils.getMainDictListOnProjectAdvent("advent_record_B_count");
|
|
if(adventCount.size()>0){
|
|
if(adventCount.size()>0){
|
|
//获取超期时间天数转int
|
|
//获取超期时间天数转int
|
|
Integer endingCount = Integer.parseInt(adventCount.get(0).getLabel());
|
|
Integer endingCount = Integer.parseInt(adventCount.get(0).getLabel());
|
|
@@ -237,6 +243,22 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
List<WorkProjectNotify> paperProjectNotifyList = workProjectNotifyService.findList(workProjectNotify);*/
|
|
List<WorkProjectNotify> paperProjectNotifyList = workProjectNotifyService.findList(workProjectNotify);*/
|
|
|
|
|
|
|
|
|
|
|
|
+ Integer endingAdventRecordCount = 0;
|
|
|
|
+ if(adventRecordCount.size()>0){
|
|
|
|
+ //获取超期时间天数(电子归档)转int
|
|
|
|
+ endingAdventRecordCount = Integer.parseInt(adventRecordCount.get(0).getLabel());
|
|
|
|
+ }
|
|
|
|
+ Integer endingAdventRecordACount = 0;
|
|
|
|
+ if(adventRecordACount.size()>0){
|
|
|
|
+ //获取超期时间天数(A类纸质归档)转int
|
|
|
|
+ endingAdventRecordACount = Integer.parseInt(adventRecordACount.get(0).getLabel());
|
|
|
|
+ }
|
|
|
|
+ Integer endingAdventRecordBCount = 0;
|
|
|
|
+ if(adventRecordBCount.size()>0){
|
|
|
|
+ //获取超期时间天数(A类纸质归档)转int
|
|
|
|
+ endingAdventRecordBCount = Integer.parseInt(adventRecordBCount.get(0).getLabel());
|
|
|
|
+ }
|
|
|
|
+
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
//查询负责人信息
|
|
//查询负责人信息
|
|
@@ -253,6 +275,21 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
Long date2TimeLong = date2.getTime();
|
|
Long date2TimeLong = date2.getTime();
|
|
//计算未归档天数
|
|
//计算未归档天数
|
|
Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordCount;
|
|
|
|
+ records.setNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }else if (null != records.getPrdAuditDate() && (5 == records.getProjectReportRecordStatus()
|
|
|
|
+ || 7 == records.getProjectReportRecordStatus()) && null != records.getProjectReportRecordAuditDate()) {
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(records.getPrdAuditDate());
|
|
|
|
+ //获取电子归档审核通过时间
|
|
|
|
+ Long dateTimeLong = records.getProjectReportRecordAuditDate().getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong) / (24 * 60 * 60 * 1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordCount;
|
|
records.setNoArchivedDays(endTime.toString());
|
|
records.setNoArchivedDays(endTime.toString());
|
|
} catch (ParseException e) {
|
|
} catch (ParseException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -269,10 +306,27 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
Long date2TimeLong = date2.getTime();
|
|
Long date2TimeLong = date2.getTime();
|
|
//计算未归档天数
|
|
//计算未归档天数
|
|
Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordBCount;
|
|
|
|
+ records.setPaperNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }else if(null != records.getPrdAuditDate()
|
|
|
|
+ && (5 == records.getFilingProjectStatus()
|
|
|
|
+ || 7 == records.getFilingProjectStatus()) && null != records.getFilingBatchAuditPassDate()) {
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(records.getPrdAuditDate());
|
|
|
|
+ //获取电子归档审核通过时间
|
|
|
|
+ Long dateTimeLong = records.getFilingBatchAuditPassDate().getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong) / (24 * 60 * 60 * 1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordBCount;
|
|
records.setPaperNoArchivedDays(endTime.toString());
|
|
records.setPaperNoArchivedDays(endTime.toString());
|
|
} catch (ParseException e) {
|
|
} catch (ParseException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
} else if ("2".equals(records.getSubmitMoney())){
|
|
} else if ("2".equals(records.getSubmitMoney())){
|
|
//设置电子未归档天数
|
|
//设置电子未归档天数
|
|
@@ -284,6 +338,21 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
Long date2TimeLong = date2.getTime();
|
|
Long date2TimeLong = date2.getTime();
|
|
//计算未归档天数
|
|
//计算未归档天数
|
|
Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordCount;
|
|
|
|
+ records.setNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }else if (null != records.getTwoAuditPassDate() && (5 == records.getProjectReportRecordStatus()
|
|
|
|
+ || 7 == records.getProjectReportRecordStatus()) && null != records.getProjectReportRecordAuditDate()) {
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(records.getTwoAuditPassDate());
|
|
|
|
+ //获取电子归档审核通过时间
|
|
|
|
+ Long dateTimeLong = records.getProjectReportRecordAuditDate().getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong) / (24 * 60 * 60 * 1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordCount;
|
|
records.setNoArchivedDays(endTime.toString());
|
|
records.setNoArchivedDays(endTime.toString());
|
|
} catch (ParseException e) {
|
|
} catch (ParseException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -300,6 +369,21 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
Long date2TimeLong = date2.getTime();
|
|
Long date2TimeLong = date2.getTime();
|
|
//计算未归档天数
|
|
//计算未归档天数
|
|
Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordACount;
|
|
|
|
+ records.setPaperNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }else if (null != records.getTwoAuditPassDate() && (5 == records.getProjectReportRecordStatus()
|
|
|
|
+ || 7 == records.getProjectReportRecordStatus()) && null != records.getPaperFilingAuditPassDate()) {
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(records.getTwoAuditPassDate());
|
|
|
|
+ //获取电子归档审核通过时间
|
|
|
|
+ Long dateTimeLong = records.getPaperFilingAuditPassDate().getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong) / (24 * 60 * 60 * 1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordACount;
|
|
records.setPaperNoArchivedDays(endTime.toString());
|
|
records.setPaperNoArchivedDays(endTime.toString());
|
|
} catch (ParseException e) {
|
|
} catch (ParseException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -1225,6 +1309,12 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
public List<RuralProjectRecordsExport> findExportList(Page<RuralProjectRecords> page, RuralProjectRecords projectRecords) {
|
|
public List<RuralProjectRecordsExport> findExportList(Page<RuralProjectRecords> page, RuralProjectRecords projectRecords) {
|
|
//查询超期时间天数
|
|
//查询超期时间天数
|
|
List<MainDictDetail> adventCount = DictUtils.getMainDictListOnProjectAdvent("advent_count");
|
|
List<MainDictDetail> adventCount = DictUtils.getMainDictListOnProjectAdvent("advent_count");
|
|
|
|
+ //查询超期时间天数(电子归档)
|
|
|
|
+ List<MainDictDetail> adventRecordCount = DictUtils.getMainDictListOnProjectAdvent("advent_record_count");
|
|
|
|
+ //查询超期时间天数(A类纸质归档)
|
|
|
|
+ List<MainDictDetail> adventRecordACount = DictUtils.getMainDictListOnProjectAdvent("advent_record_A_count");
|
|
|
|
+ //查询超期时间天数(B类纸质归档)
|
|
|
|
+ List<MainDictDetail> adventRecordBCount = DictUtils.getMainDictListOnProjectAdvent("advent_record_B_count");
|
|
if(adventCount.size()>0){
|
|
if(adventCount.size()>0){
|
|
//获取超期时间天数转int
|
|
//获取超期时间天数转int
|
|
Integer endingCount = Integer.parseInt(adventCount.get(0).getLabel());
|
|
Integer endingCount = Integer.parseInt(adventCount.get(0).getLabel());
|
|
@@ -1239,6 +1329,26 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
page.setCountFlag(false);
|
|
page.setCountFlag(false);
|
|
projectRecords.setPage(page);
|
|
projectRecords.setPage(page);
|
|
List<RuralProjectRecordsExport> recordsList = dao.findExportList(projectRecords);
|
|
List<RuralProjectRecordsExport> recordsList = dao.findExportList(projectRecords);
|
|
|
|
+
|
|
|
|
+ Integer endingAdventRecordCount = 0;
|
|
|
|
+ if(adventRecordCount.size()>0){
|
|
|
|
+ //获取超期时间天数(电子归档)转int
|
|
|
|
+ endingAdventRecordCount = Integer.parseInt(adventRecordCount.get(0).getLabel());
|
|
|
|
+ }
|
|
|
|
+ Integer endingAdventRecordACount = 0;
|
|
|
|
+ if(adventRecordACount.size()>0){
|
|
|
|
+ //获取超期时间天数(A类纸质归档)转int
|
|
|
|
+ endingAdventRecordACount = Integer.parseInt(adventRecordACount.get(0).getLabel());
|
|
|
|
+ }
|
|
|
|
+ Integer endingAdventRecordBCount = 0;
|
|
|
|
+ if(adventRecordBCount.size()>0){
|
|
|
|
+ //获取超期时间天数(A类纸质归档)转int
|
|
|
|
+ endingAdventRecordBCount = Integer.parseInt(adventRecordBCount.get(0).getLabel());
|
|
|
|
+ }
|
|
|
|
+ SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
+ Date date = new Date();
|
|
|
|
+
|
|
|
|
+
|
|
if(null != recordsList && recordsList.size()>0){
|
|
if(null != recordsList && recordsList.size()>0){
|
|
|
|
|
|
//查询报告文件、依据性文件、其他文件必填列表以及数据
|
|
//查询报告文件、依据性文件、其他文件必填列表以及数据
|
|
@@ -1266,6 +1376,134 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //判断是A类还是B类 2是A类1是B类
|
|
|
|
+ if ("1".equals(info.getSubmitMoney())){
|
|
|
|
+ //设置电子未归档天数
|
|
|
|
+ if (null != info.getPrdAuditDate() && 5 != info.getProjectReportRecordStatus()
|
|
|
|
+ && 7!= info.getProjectReportRecordStatus()){
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(info.getPrdAuditDate());
|
|
|
|
+ Long dateTimeLong = date.getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordCount;
|
|
|
|
+ info.setNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }else if (null != info.getPrdAuditDate() && (5 == info.getProjectReportRecordStatus()
|
|
|
|
+ || 7 == info.getProjectReportRecordStatus()) && null != info.getProjectReportRecordAuditDate()) {
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(info.getPrdAuditDate());
|
|
|
|
+ //获取电子归档审核通过时间
|
|
|
|
+ Long dateTimeLong = info.getProjectReportRecordAuditDate().getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong) / (24 * 60 * 60 * 1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordCount;
|
|
|
|
+ info.setNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //设置纸质未归档天数
|
|
|
|
+ if (null != info.getPrdAuditDate()
|
|
|
|
+ && !"5".equals(info.getPaperFilingStatus())
|
|
|
|
+ && !"7".equals(info.getPaperFilingStatus()) && !"10".equals(info.getPaperFilingStatus())){
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(info.getPrdAuditDate());
|
|
|
|
+ Long dateTimeLong = date.getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordBCount;
|
|
|
|
+ info.setPaperNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }else if(null != info.getPrdAuditDate()
|
|
|
|
+ && ("5".equals(info.getPaperFilingStatus())
|
|
|
|
+ || "10".equals(info.getPaperFilingStatus())) && null != info.getFilingBatchAuditPassDate()) {
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(info.getPrdAuditDate());
|
|
|
|
+ //获取电子归档审核通过时间
|
|
|
|
+ Long dateTimeLong = info.getFilingBatchAuditPassDate().getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong) / (24 * 60 * 60 * 1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordBCount;
|
|
|
|
+ info.setPaperNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ } else if ("2".equals(info.getSubmitMoney())){
|
|
|
|
+ //设置电子未归档天数
|
|
|
|
+ if (null != info.getTwoAuditPassDate() && 5 != info.getProjectReportRecordStatus()
|
|
|
|
+ && 7!= info.getProjectReportRecordStatus()){
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(info.getTwoAuditPassDate());
|
|
|
|
+ Long dateTimeLong = date.getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordCount;
|
|
|
|
+ info.setNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }else if (null != info.getTwoAuditPassDate() && (5 == info.getProjectReportRecordStatus()
|
|
|
|
+ || 7 == info.getProjectReportRecordStatus()) && null != info.getProjectReportRecordAuditDate()) {
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(info.getTwoAuditPassDate());
|
|
|
|
+ //获取电子归档审核通过时间
|
|
|
|
+ Long dateTimeLong = info.getProjectReportRecordAuditDate().getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong) / (24 * 60 * 60 * 1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordCount;
|
|
|
|
+ info.setNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //设置纸质未归档天数
|
|
|
|
+ if (null != info.getTwoAuditPassDate()
|
|
|
|
+ && !"5".equals(info.getPaperFilingStatus()) &&
|
|
|
|
+ !"7".equals(info.getPaperFilingStatus()) && !"10".equals(info.getPaperFilingStatus())){
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(info.getTwoAuditPassDate());
|
|
|
|
+ Long dateTimeLong = date.getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong)/(24*60*60*1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordACount;
|
|
|
|
+ info.setPaperNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }else if (null != info.getTwoAuditPassDate() && (5 == info.getProjectReportRecordStatus()
|
|
|
|
+ || 7 == info.getProjectReportRecordStatus()) && null != info.getPaperFilingAuditPassDate()) {
|
|
|
|
+ try {
|
|
|
|
+ Date date2 = format.parse(info.getTwoAuditPassDate());
|
|
|
|
+ //获取电子归档审核通过时间
|
|
|
|
+ Long dateTimeLong = info.getPaperFilingAuditPassDate().getTime();
|
|
|
|
+ Long date2TimeLong = date2.getTime();
|
|
|
|
+ //计算未归档天数
|
|
|
|
+ Long endTime = (dateTimeLong - date2TimeLong) / (24 * 60 * 60 * 1000);
|
|
|
|
+ endTime = endTime - endingAdventRecordACount;
|
|
|
|
+ info.setPaperNoArchivedDays(endTime.toString());
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return recordsList;
|
|
return recordsList;
|