|
@@ -2,7 +2,13 @@ package com.jeeplus.modules.statement.service;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
import com.jeeplus.common.service.CrudService;
|
|
import com.jeeplus.common.service.CrudService;
|
|
|
|
+import com.jeeplus.common.utils.IdGen;
|
|
import com.jeeplus.common.utils.StringUtils;
|
|
import com.jeeplus.common.utils.StringUtils;
|
|
|
|
+import com.jeeplus.modules.notifyStatement.companyLevel.dao.CompanyFilingDao;
|
|
|
|
+import com.jeeplus.modules.notifyStatement.companyLevel.dao.CompanyYearDao;
|
|
|
|
+import com.jeeplus.modules.notifyStatement.companyLevel.entity.StatementFilingInfo;
|
|
|
|
+import com.jeeplus.modules.notifyStatement.companyLevel.entity.StatementInfo;
|
|
|
|
+import com.jeeplus.modules.pojectMaterialsWarehouse.entity.ProjectMaterialCollectInfo;
|
|
import com.jeeplus.modules.statement.dao.StatementCompanyComprehensiveDao;
|
|
import com.jeeplus.modules.statement.dao.StatementCompanyComprehensiveDao;
|
|
import com.jeeplus.modules.statement.entity.ReportDataEntity;
|
|
import com.jeeplus.modules.statement.entity.ReportDataEntity;
|
|
import com.jeeplus.modules.statement.entity.StatementCompanyComprehensiveInfo;
|
|
import com.jeeplus.modules.statement.entity.StatementCompanyComprehensiveInfo;
|
|
@@ -41,6 +47,10 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
private WorkProjectNotifyService workProjectNotifyService;
|
|
private WorkProjectNotifyService workProjectNotifyService;
|
|
@Autowired
|
|
@Autowired
|
|
private OfficeService officeService;
|
|
private OfficeService officeService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private CompanyYearDao companyYearDao;
|
|
|
|
+ @Autowired
|
|
|
|
+ private CompanyFilingDao companyFilingDao;
|
|
|
|
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
@@ -502,6 +512,80 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
* @param bigDateType 状态1(0:年;1:季度;2:月份)
|
|
* @param bigDateType 状态1(0:年;1:季度;2:月份)
|
|
* @param smallDateType 状态2(针对状态1进行精确所在指定季度或者月份)
|
|
* @param smallDateType 状态2(针对状态1进行精确所在指定季度或者月份)
|
|
*/
|
|
*/
|
|
|
|
+ public void disposeFilingStatementCompany(Integer year,Integer bigDateType,Integer smallDateType){
|
|
|
|
+ Calendar cal = Calendar.getInstance();
|
|
|
|
+ //获取当前年份
|
|
|
|
+ if(null == year){
|
|
|
|
+ year = cal.get(Calendar.YEAR);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Map<String, String> dateMap = getDateNew(bigDateType, smallDateType, year);
|
|
|
|
+ //开始时间
|
|
|
|
+ String beginDate = dateMap.get("beginDate");
|
|
|
|
+ //结束时间
|
|
|
|
+ String endDate = dateMap.get("endDate");
|
|
|
|
+ String statementDate = dateMap.get("statementDate");
|
|
|
|
+
|
|
|
|
+ //参数是由 year、bigDateType、smallDateType参数设定
|
|
|
|
+ String utilNotifyId = year + "," + bigDateType + "," + smallDateType;
|
|
|
|
+
|
|
|
|
+ String titleStr = "";
|
|
|
|
+
|
|
|
|
+ //发送通知
|
|
|
|
+ switch (bigDateType){
|
|
|
|
+ //年度汇总
|
|
|
|
+ case 0:
|
|
|
|
+ titleStr = statementDate + "-报告批量归档 年报";
|
|
|
|
+ break;
|
|
|
|
+ //季度汇总
|
|
|
|
+ case 1:
|
|
|
|
+ //smallDateType 为季度时候
|
|
|
|
+ titleStr = statementDate + "-报告批量归档 季报";
|
|
|
|
+ break;
|
|
|
|
+ //月度汇总
|
|
|
|
+ case 2:
|
|
|
|
+ //smallDateType 为月度时候
|
|
|
|
+ titleStr = statementDate + "-报告批量归档 月报";
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //添加报表记录
|
|
|
|
+ StatementFilingInfo statementInfo = new StatementFilingInfo();
|
|
|
|
+ statementInfo.setId(IdGen.uuid());
|
|
|
|
+ User user = UserUtils.get("1");
|
|
|
|
+ statementInfo.setCreateBy(user);
|
|
|
|
+ statementInfo.setCreateDate(new Date());
|
|
|
|
+ statementInfo.setUpdateBy(user);
|
|
|
|
+ statementInfo.setUpdateDate(new Date());
|
|
|
|
+ statementInfo.setDelFlag("0");
|
|
|
|
+ statementInfo.setCompanyOfficeType(1);
|
|
|
|
+ statementInfo.setTitle(titleStr);
|
|
|
|
+ statementInfo.setStartDate(beginDate);
|
|
|
|
+ statementInfo.setEndDate(endDate);
|
|
|
|
+
|
|
|
|
+ switch (bigDateType){
|
|
|
|
+ //年度汇总
|
|
|
|
+ case 0:
|
|
|
|
+ statementInfo.setMonthYearType(0);
|
|
|
|
+ break;
|
|
|
|
+ //季度汇总
|
|
|
|
+ case 1:
|
|
|
|
+ //smallDateType 为季度时候
|
|
|
|
+ //statementInfo.setMonthYearType(2);
|
|
|
|
+ break;
|
|
|
|
+ //月度汇总
|
|
|
|
+ case 2:
|
|
|
|
+ //smallDateType 为月度时候
|
|
|
|
+ statementInfo.setMonthYearType(1);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ statementInfo.setNotifyDateNode(utilNotifyId);
|
|
|
|
+ companyFilingDao.deleteByTitle(titleStr);
|
|
|
|
+ companyFilingDao.insert(statementInfo);
|
|
|
|
+ System.out.println("结束");
|
|
|
|
+
|
|
|
|
+ }
|
|
public void disposeStatementCompany(Integer year,Integer bigDateType,Integer smallDateType){
|
|
public void disposeStatementCompany(Integer year,Integer bigDateType,Integer smallDateType){
|
|
Calendar cal = Calendar.getInstance();
|
|
Calendar cal = Calendar.getInstance();
|
|
//获取当前年份
|
|
//获取当前年份
|
|
@@ -533,17 +617,17 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
switch (bigDateType){
|
|
switch (bigDateType){
|
|
//年度汇总
|
|
//年度汇总
|
|
case 0:
|
|
case 0:
|
|
- companyNotification(statementDate,"年","161",utilNotifyId);
|
|
|
|
|
|
+ companyNotification(statementDate,"年","161",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
//季度汇总
|
|
//季度汇总
|
|
case 1:
|
|
case 1:
|
|
//smallDateType 为季度时候
|
|
//smallDateType 为季度时候
|
|
- companyNotification(statementDate,"季","162",utilNotifyId);
|
|
|
|
|
|
+ companyNotification(statementDate,"季","162",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
//月度汇总
|
|
//月度汇总
|
|
case 2:
|
|
case 2:
|
|
//smallDateType 为月度时候
|
|
//smallDateType 为月度时候
|
|
- companyNotification(statementDate,"月","163",utilNotifyId);
|
|
|
|
|
|
+ companyNotification(statementDate,"月","163",utilNotifyId,bigDateType);
|
|
companyReportNotification(statementDate,"月","167",utilNotifyId);
|
|
companyReportNotification(statementDate,"月","167",utilNotifyId);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -937,17 +1021,17 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
switch (bigDateType){
|
|
switch (bigDateType){
|
|
//年度汇总
|
|
//年度汇总
|
|
case 0:
|
|
case 0:
|
|
- companyNotification(statementDate,"年","161",utilNotifyId);
|
|
|
|
|
|
+ companyNotification(statementDate,"年","161",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
//季度汇总
|
|
//季度汇总
|
|
case 1:
|
|
case 1:
|
|
//smallDateType 为季度时候
|
|
//smallDateType 为季度时候
|
|
- companyNotification(statementDate,"季","162",utilNotifyId);
|
|
|
|
|
|
+ companyNotification(statementDate,"季","162",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
//月度汇总
|
|
//月度汇总
|
|
case 2:
|
|
case 2:
|
|
//smallDateType 为月度时候
|
|
//smallDateType 为月度时候
|
|
- companyNotification(statementDate,"月","163",utilNotifyId);
|
|
|
|
|
|
+ companyNotification(statementDate,"月","163",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -959,7 +1043,7 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
* @param notificationType
|
|
* @param notificationType
|
|
* @param utilNotifyId
|
|
* @param utilNotifyId
|
|
*/
|
|
*/
|
|
- public void companyNotification(String statementDate,String type,String notificationType,String utilNotifyId){
|
|
|
|
|
|
+ public void companyNotification(String statementDate,String type,String notificationType,String utilNotifyId,Integer bigDateType){
|
|
String notifyStr = statementDate + "-公司级 " + type + "报";
|
|
String notifyStr = statementDate + "-公司级 " + type + "报";
|
|
String titleStr = statementDate + "-公司级 " + type + "报";
|
|
String titleStr = statementDate + "-公司级 " + type + "报";
|
|
|
|
|
|
@@ -977,6 +1061,37 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
"待通知",
|
|
"待通知",
|
|
""));
|
|
""));
|
|
}
|
|
}
|
|
|
|
+ //添加报表记录
|
|
|
|
+ StatementInfo statementInfo = new StatementInfo();
|
|
|
|
+ statementInfo.setId(IdGen.uuid());
|
|
|
|
+ User user = UserUtils.get("1");
|
|
|
|
+ statementInfo.setCreateBy(user);
|
|
|
|
+ statementInfo.setCreateDate(new Date());
|
|
|
|
+ statementInfo.setUpdateBy(user);
|
|
|
|
+ statementInfo.setUpdateDate(new Date());
|
|
|
|
+ statementInfo.setDelFlag("0");
|
|
|
|
+ statementInfo.setCompanyOfficeType(1);
|
|
|
|
+ statementInfo.setTitle(titleStr);
|
|
|
|
+
|
|
|
|
+ switch (bigDateType){
|
|
|
|
+ //年度汇总
|
|
|
|
+ case 0:
|
|
|
|
+ statementInfo.setMonthYearType(0);
|
|
|
|
+ break;
|
|
|
|
+ //季度汇总
|
|
|
|
+ case 1:
|
|
|
|
+ //smallDateType 为季度时候
|
|
|
|
+ //statementInfo.setMonthYearType(2);
|
|
|
|
+ break;
|
|
|
|
+ //月度汇总
|
|
|
|
+ case 2:
|
|
|
|
+ //smallDateType 为月度时候
|
|
|
|
+ statementInfo.setMonthYearType(1);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ statementInfo.setNotifyDateNode(utilNotifyId);
|
|
|
|
+ companyYearDao.insert(statementInfo);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -986,7 +1101,7 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
* @param notificationType
|
|
* @param notificationType
|
|
* @param utilNotifyId
|
|
* @param utilNotifyId
|
|
*/
|
|
*/
|
|
- public void officeNotification(String statementDate,String type,String notificationType,String utilNotifyId){
|
|
|
|
|
|
+ public void officeNotification(String statementDate,String type,String notificationType,String utilNotifyId,Integer bigDateType){
|
|
|
|
|
|
//查询公司级需要通知的人员信息
|
|
//查询公司级需要通知的人员信息
|
|
//List<User> statementCompanyNotificationUserList = dao.getStatementCompanyNotificationUserList();
|
|
//List<User> statementCompanyNotificationUserList = dao.getStatementCompanyNotificationUserList();
|
|
@@ -1020,6 +1135,37 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
"待通知",
|
|
"待通知",
|
|
""));
|
|
""));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //添加报表记录
|
|
|
|
+ StatementInfo statementInfo = new StatementInfo();
|
|
|
|
+ statementInfo.setId(IdGen.uuid());
|
|
|
|
+ User user = UserUtils.get("1");
|
|
|
|
+ statementInfo.setCreateBy(user);
|
|
|
|
+ statementInfo.setCreateDate(new Date());
|
|
|
|
+ statementInfo.setUpdateBy(user);
|
|
|
|
+ statementInfo.setUpdateDate(new Date());
|
|
|
|
+ statementInfo.setDelFlag("0");
|
|
|
|
+ statementInfo.setCompanyOfficeType(2);
|
|
|
|
+ statementInfo.setTitle(titleStr);
|
|
|
|
+
|
|
|
|
+ switch (bigDateType){
|
|
|
|
+ //年度汇总
|
|
|
|
+ case 0:
|
|
|
|
+ statementInfo.setMonthYearType(0);
|
|
|
|
+ break;
|
|
|
|
+ //季度汇总
|
|
|
|
+ case 1:
|
|
|
|
+ //smallDateType 为季度时候
|
|
|
|
+ //statementInfo.setMonthYearType(2);
|
|
|
|
+ break;
|
|
|
|
+ //月度汇总
|
|
|
|
+ case 2:
|
|
|
|
+ //smallDateType 为月度时候
|
|
|
|
+ statementInfo.setMonthYearType(1);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ statementInfo.setNotifyDateNode(newUtilNotifyId);
|
|
|
|
+ companyYearDao.insert(statementInfo);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -2878,17 +3024,17 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
switch (bigDateType){
|
|
switch (bigDateType){
|
|
//年度汇总
|
|
//年度汇总
|
|
case 0:
|
|
case 0:
|
|
- officeNotification(statementDate,"年","164",utilNotifyId);
|
|
|
|
|
|
+ officeNotification(statementDate,"年","164",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
//季度汇总
|
|
//季度汇总
|
|
case 1:
|
|
case 1:
|
|
//smallDateType 为季度时候
|
|
//smallDateType 为季度时候
|
|
- officeNotification(statementDate,"季","165",utilNotifyId);
|
|
|
|
|
|
+ officeNotification(statementDate,"季","165",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
//月度汇总
|
|
//月度汇总
|
|
case 2:
|
|
case 2:
|
|
//smallDateType 为月度时候
|
|
//smallDateType 为月度时候
|
|
- officeNotification(statementDate,"月","166",utilNotifyId);
|
|
|
|
|
|
+ officeNotification(statementDate,"月","166",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -3073,10 +3219,14 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueNotRecordProjectList.size()>0){
|
|
if(overDueNotRecordProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueNotRecordProjectList) {
|
|
|
|
|
|
+
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overDueNotRecordProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overDueNotRecordProjectList);
|
|
|
|
+
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueNotRecordProjectList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overDueNotRecordProjectList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overDueNotRecordProjectList);*/
|
|
}
|
|
}
|
|
//查询电子归档超期归档项目数量(保存到数据库)
|
|
//查询电子归档超期归档项目数量(保存到数据库)
|
|
/*List<String> overDueRecordProjectIdList = dao.getOfficeOverDueRecordProject(user.getId(), beginDate, endDate);
|
|
/*List<String> overDueRecordProjectIdList = dao.getOfficeOverDueRecordProject(user.getId(), beginDate, endDate);
|
|
@@ -3106,10 +3256,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueRecordProjectList.size()>0){
|
|
if(overDueRecordProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueRecordProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overDueRecordProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overDueRecordProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueRecordProjectList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overDueRecordProjectList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overDueRecordProjectList);*/
|
|
}
|
|
}
|
|
//查询上报超期未上报项目数量(保存到数据库)
|
|
//查询上报超期未上报项目数量(保存到数据库)
|
|
/*List<String> overDueNotReportedProjectIdList = dao.getOfficeOverDueNotReportedProject(user.getId());
|
|
/*List<String> overDueNotReportedProjectIdList = dao.getOfficeOverDueNotReportedProject(user.getId());
|
|
@@ -3139,10 +3291,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueNotReportedProjectList.size()>0){
|
|
if(overDueNotReportedProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueNotReportedProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overDueNotReportedProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overDueNotReportedProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueNotReportedProjectList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overDueNotReportedProjectList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overDueNotReportedProjectList);*/
|
|
}
|
|
}
|
|
//查询上报超期上报项目数量(保存到数据库)
|
|
//查询上报超期上报项目数量(保存到数据库)
|
|
/*List<String> overDueReportedProjectIdList = dao.getOfficeOverDueReportedProject(user.getId(), beginDate, endDate);
|
|
/*List<String> overDueReportedProjectIdList = dao.getOfficeOverDueReportedProject(user.getId(), beginDate, endDate);
|
|
@@ -3172,10 +3326,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueReportedProjectList.size()>0){
|
|
if(overDueReportedProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueReportedProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overDueReportedProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overDueReportedProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueReportedProjectList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overDueReportedProjectList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overDueReportedProjectList);*/
|
|
}
|
|
}
|
|
|
|
|
|
for (ReportDataEntity reportData: getProjectPaperFilingList) {
|
|
for (ReportDataEntity reportData: getProjectPaperFilingList) {
|
|
@@ -3217,10 +3373,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(projectReportDataList.size()>0){
|
|
if(projectReportDataList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : projectReportDataList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(projectReportDataList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(projectReportDataList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : projectReportDataList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(projectReportDataList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(projectReportDataList);*/
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -3250,10 +3408,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueProjectReportDataList.size()>0){
|
|
if(overDueProjectReportDataList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueProjectReportDataList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overDueProjectReportDataList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overDueProjectReportDataList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueProjectReportDataList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overDueProjectReportDataList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overDueProjectReportDataList);*/
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
@@ -3282,10 +3442,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDuePaperFilingProjectList.size()>0){
|
|
if(overDuePaperFilingProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDuePaperFilingProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overDuePaperFilingProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overDuePaperFilingProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDuePaperFilingProjectList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overDuePaperFilingProjectList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overDuePaperFilingProjectList);*/
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
@@ -3314,10 +3476,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overPaperFilingProjectList.size()>0){
|
|
if(overPaperFilingProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overPaperFilingProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overPaperFilingProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overPaperFilingProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overPaperFilingProjectList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overPaperFilingProjectList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overPaperFilingProjectList);*/
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
@@ -3346,10 +3510,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueBatchArchiveProjectList.size()>0){
|
|
if(overDueBatchArchiveProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueBatchArchiveProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overDueBatchArchiveProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overDueBatchArchiveProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueBatchArchiveProjectList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overDueBatchArchiveProjectList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overDueBatchArchiveProjectList);*/
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
@@ -3378,10 +3544,12 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overBatchArchiveProjectList.size()>0){
|
|
if(overBatchArchiveProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overBatchArchiveProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataInfo(overBatchArchiveProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfo(overBatchArchiveProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overBatchArchiveProjectList) {
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfo(statementDataInfo);
|
|
}
|
|
}
|
|
- dao.insertOfficeStatementDataInfo(overBatchArchiveProjectList);
|
|
|
|
|
|
+ dao.insertOfficeStatementDataInfo(overBatchArchiveProjectList);*/
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -3395,6 +3563,75 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 批量新增数据信息(年报)
|
|
|
|
+ * @param list
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Transactional(readOnly = false)
|
|
|
|
+ public String insertOfficeStatementDataInfo(List<StatementDataInfo> list){
|
|
|
|
+ //分批处理
|
|
|
|
+ if(null!=list && list.size()>0){
|
|
|
|
+ int pointsDataLimit = 100;//限制条数
|
|
|
|
+ Integer size = list.size();
|
|
|
|
+ //判断是否有必要分批
|
|
|
|
+ if(pointsDataLimit<size){
|
|
|
|
+ int part = size/pointsDataLimit;//分批数
|
|
|
|
+ //
|
|
|
|
+ for (int i = 0; i < part; i++) {
|
|
|
|
+ //100条
|
|
|
|
+ List<StatementDataInfo> listPage = list.subList(0, pointsDataLimit);
|
|
|
|
+ dao.insertOfficeStatementDataInfo(listPage);
|
|
|
|
+ //剔除
|
|
|
|
+ list.subList(0, pointsDataLimit).clear();
|
|
|
|
+ }
|
|
|
|
+ if(!list.isEmpty()){
|
|
|
|
+ dao.insertOfficeStatementDataInfo(list);
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ dao.insertOfficeStatementDataInfo(list);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 批量删除数据信息(年报)
|
|
|
|
+ * @param list
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Transactional(readOnly = false)
|
|
|
|
+ public String deleteOfficeStatementDataInfo(List<StatementDataInfo> list){
|
|
|
|
+ //分批处理
|
|
|
|
+ if(null!=list && list.size()>0){
|
|
|
|
+ int pointsDataLimit = 100;//限制条数
|
|
|
|
+ Integer size = list.size();
|
|
|
|
+ //判断是否有必要分批
|
|
|
|
+ if(pointsDataLimit<size){
|
|
|
|
+ int part = size/pointsDataLimit;//分批数
|
|
|
|
+ //
|
|
|
|
+ for (int i = 0; i < part; i++) {
|
|
|
|
+ //100条
|
|
|
|
+ List<StatementDataInfo> listPage = list.subList(0, pointsDataLimit);
|
|
|
|
+ dao.deleteOfficeStatementDataOnListInfo(listPage);
|
|
|
|
+ //剔除
|
|
|
|
+ list.subList(0, pointsDataLimit).clear();
|
|
|
|
+ }
|
|
|
|
+ if(!list.isEmpty()){
|
|
|
|
+ dao.deleteOfficeStatementDataOnListInfo(list);
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ dao.deleteOfficeStatementDataOnListInfo(list);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 部门级开票记录月报/季报/年报汇总方法
|
|
* 部门级开票记录月报/季报/年报汇总方法
|
|
* @param beginDate 开始时间
|
|
* @param beginDate 开始时间
|
|
@@ -3706,7 +3943,7 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
String statementDate = "";
|
|
String statementDate = "";
|
|
for (StatementCompanyComprehensiveInfo comprehensiveInfo : list) {
|
|
for (StatementCompanyComprehensiveInfo comprehensiveInfo : list) {
|
|
statementDate = comprehensiveInfo.getStatementDate();
|
|
statementDate = comprehensiveInfo.getStatementDate();
|
|
- if("工程五部".equals(comprehensiveInfo.getOfficeName()) /*&& "1".equals(info.getType())*/){
|
|
|
|
|
|
+ /*if("工程五部".equals(comprehensiveInfo.getOfficeName()) *//*&& "1".equals(info.getType())*//*){
|
|
flag = false;
|
|
flag = false;
|
|
StatementCompanyComprehensiveInfo statementCompanyComprehensiveInfo = dao.selectAllWbByTypeByYear(comprehensiveInfo);
|
|
StatementCompanyComprehensiveInfo statementCompanyComprehensiveInfo = dao.selectAllWbByTypeByYear(comprehensiveInfo);
|
|
statementCompanyComprehensiveInfo.setYear(info.getYear());
|
|
statementCompanyComprehensiveInfo.setYear(info.getYear());
|
|
@@ -3717,29 +3954,31 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
statementCompanyComprehensiveInfo.setOfficeId(info.getOfficeId());
|
|
statementCompanyComprehensiveInfo.setOfficeId(info.getOfficeId());
|
|
|
|
|
|
list.add(statementCompanyComprehensiveInfo);
|
|
list.add(statementCompanyComprehensiveInfo);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
}
|
|
}
|
|
if(flag /*&& "1".equals(info.getType())*/){
|
|
if(flag /*&& "1".equals(info.getType())*/){
|
|
StatementCompanyComprehensiveInfo statementCompanyComprehensiveInfo = dao.selectAllWbByTypeByYear(info);
|
|
StatementCompanyComprehensiveInfo statementCompanyComprehensiveInfo = dao.selectAllWbByTypeByYear(info);
|
|
- statementCompanyComprehensiveInfo.setYear(info.getYear());
|
|
|
|
- statementCompanyComprehensiveInfo.setType(info.getType());
|
|
|
|
- statementCompanyComprehensiveInfo.setBigDateType(info.getBigDateType());
|
|
|
|
- statementCompanyComprehensiveInfo.setSmallDateType(info.getSmallDateType());
|
|
|
|
- statementCompanyComprehensiveInfo.setStatementDate(statementDate);
|
|
|
|
- Office office = officeService.getByName("工程五部");
|
|
|
|
- statementCompanyComprehensiveInfo.setOfficeId(office.getId());
|
|
|
|
- statementCompanyComprehensiveInfo.setOfficeName(office.getName());
|
|
|
|
-
|
|
|
|
- Boolean insertFlag = true;
|
|
|
|
- for(int i= 0;i< list.size(); i++){
|
|
|
|
- StatementCompanyComprehensiveInfo statementCompanyComprehensiveInfo1 = list.get(i);
|
|
|
|
- if("工程四部".equals(statementCompanyComprehensiveInfo1.getOfficeName())){
|
|
|
|
- list.add(i+1,statementCompanyComprehensiveInfo);
|
|
|
|
- insertFlag = false;
|
|
|
|
|
|
+ if(null != statementCompanyComprehensiveInfo){
|
|
|
|
+ statementCompanyComprehensiveInfo.setYear(info.getYear());
|
|
|
|
+ statementCompanyComprehensiveInfo.setType(info.getType());
|
|
|
|
+ statementCompanyComprehensiveInfo.setBigDateType(info.getBigDateType());
|
|
|
|
+ statementCompanyComprehensiveInfo.setSmallDateType(info.getSmallDateType());
|
|
|
|
+ statementCompanyComprehensiveInfo.setStatementDate(statementDate);
|
|
|
|
+ Office office = officeService.getByName("工程五部");
|
|
|
|
+ statementCompanyComprehensiveInfo.setOfficeId(office.getId());
|
|
|
|
+ statementCompanyComprehensiveInfo.setOfficeName(office.getName());
|
|
|
|
+
|
|
|
|
+ Boolean insertFlag = true;
|
|
|
|
+ for(int i= 0;i< list.size(); i++){
|
|
|
|
+ StatementCompanyComprehensiveInfo statementCompanyComprehensiveInfo1 = list.get(i);
|
|
|
|
+ if("工程四部".equals(statementCompanyComprehensiveInfo1.getOfficeName())){
|
|
|
|
+ list.add(i+1,statementCompanyComprehensiveInfo);
|
|
|
|
+ insertFlag = false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(insertFlag){
|
|
|
|
+ list.add(statementCompanyComprehensiveInfo);
|
|
}
|
|
}
|
|
- }
|
|
|
|
- if(insertFlag){
|
|
|
|
- list.add(statementCompanyComprehensiveInfo);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4265,24 +4504,24 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
|
|
|
|
//创建utilNotifyId参数
|
|
//创建utilNotifyId参数
|
|
//参数是由 year、bigDateType、smallDateType参数设定
|
|
//参数是由 year、bigDateType、smallDateType参数设定
|
|
- /*String utilNotifyId = year + "," + bigDateType + "," + smallDateType;
|
|
|
|
|
|
+ String utilNotifyId = year + "," + bigDateType + "," + smallDateType;
|
|
//发送通知
|
|
//发送通知
|
|
switch (bigDateType){
|
|
switch (bigDateType){
|
|
//年度汇总
|
|
//年度汇总
|
|
case 0:
|
|
case 0:
|
|
- officeNotification(statementDate,"年","164",utilNotifyId);
|
|
|
|
|
|
+ officeNotification(statementDate,"年","164",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
//季度汇总
|
|
//季度汇总
|
|
case 1:
|
|
case 1:
|
|
//smallDateType 为季度时候
|
|
//smallDateType 为季度时候
|
|
- officeNotification(statementDate,"季","165",utilNotifyId);
|
|
|
|
|
|
+ officeNotification(statementDate,"季","165",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
//月度汇总
|
|
//月度汇总
|
|
case 2:
|
|
case 2:
|
|
//smallDateType 为月度时候
|
|
//smallDateType 为月度时候
|
|
- officeNotification(statementDate,"月","166",utilNotifyId);
|
|
|
|
|
|
+ officeNotification(statementDate,"月","166",utilNotifyId,bigDateType);
|
|
break;
|
|
break;
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -4433,10 +4672,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueNotRecordProjectList.size()>0){
|
|
if(overDueNotRecordProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueNotRecordProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overDueNotRecordProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueNotRecordProjectList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overDueNotRecordProjectList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overDueNotRecordProjectList);
|
|
}
|
|
}
|
|
//查询电子归档超期归档项目数量(保存到数据库)
|
|
//查询电子归档超期归档项目数量(保存到数据库)
|
|
/*List<String> overDueRecordProjectIdList = dao.getOfficeOverDueRecordProject(user.getId(), beginDate, endDate);
|
|
/*List<String> overDueRecordProjectIdList = dao.getOfficeOverDueRecordProject(user.getId(), beginDate, endDate);
|
|
@@ -4466,10 +4706,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueRecordProjectList.size()>0){
|
|
if(overDueRecordProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueRecordProjectList) {
|
|
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueRecordProjectList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overDueRecordProjectList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overDueRecordProjectList);
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overDueRecordProjectList);
|
|
}
|
|
}
|
|
//查询上报超期未上报项目数量(保存到数据库)
|
|
//查询上报超期未上报项目数量(保存到数据库)
|
|
/*List<String> overDueNotReportedProjectIdList = dao.getOfficeOverDueNotReportedProject(user.getId());
|
|
/*List<String> overDueNotReportedProjectIdList = dao.getOfficeOverDueNotReportedProject(user.getId());
|
|
@@ -4499,10 +4740,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueNotReportedProjectList.size()>0){
|
|
if(overDueNotReportedProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueNotReportedProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overDueNotReportedProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueNotReportedProjectList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overDueNotReportedProjectList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overDueNotReportedProjectList);
|
|
}
|
|
}
|
|
//查询上报超期上报项目数量(保存到数据库)
|
|
//查询上报超期上报项目数量(保存到数据库)
|
|
/*List<String> overDueReportedProjectIdList = dao.getOfficeOverDueReportedProject(user.getId(), beginDate, endDate);
|
|
/*List<String> overDueReportedProjectIdList = dao.getOfficeOverDueReportedProject(user.getId(), beginDate, endDate);
|
|
@@ -4532,10 +4774,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueReportedProjectList.size()>0){
|
|
if(overDueReportedProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueReportedProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overDueReportedProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueReportedProjectList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overDueReportedProjectList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overDueReportedProjectList);
|
|
}
|
|
}
|
|
for (ReportDataEntity reportData: getProjectPaperFilingList) {
|
|
for (ReportDataEntity reportData: getProjectPaperFilingList) {
|
|
if(user.getId().equals(reportData.getUserId())){
|
|
if(user.getId().equals(reportData.getUserId())){
|
|
@@ -4576,10 +4819,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(projectReportDataList.size()>0){
|
|
if(projectReportDataList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : projectReportDataList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(projectReportDataList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : projectReportDataList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(projectReportDataList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(projectReportDataList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -4609,10 +4853,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueProjectReportDataList.size()>0){
|
|
if(overDueProjectReportDataList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueProjectReportDataList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overDueProjectReportDataList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueProjectReportDataList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overDueProjectReportDataList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overDueProjectReportDataList);
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
@@ -4641,10 +4886,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDuePaperFilingProjectList.size()>0){
|
|
if(overDuePaperFilingProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDuePaperFilingProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overDuePaperFilingProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDuePaperFilingProjectList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overDuePaperFilingProjectList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overDuePaperFilingProjectList);
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
@@ -4673,10 +4919,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overPaperFilingProjectList.size()>0){
|
|
if(overPaperFilingProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overPaperFilingProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overPaperFilingProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overPaperFilingProjectList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overPaperFilingProjectList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overPaperFilingProjectList);
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
@@ -4705,10 +4952,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overDueBatchArchiveProjectList.size()>0){
|
|
if(overDueBatchArchiveProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overDueBatchArchiveProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overDueBatchArchiveProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overDueBatchArchiveProjectList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overDueBatchArchiveProjectList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overDueBatchArchiveProjectList);
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
//查询项目未质量符合信息(保存到数据库)
|
|
@@ -4737,10 +4985,11 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
if(overBatchArchiveProjectList.size()>0){
|
|
if(overBatchArchiveProjectList.size()>0){
|
|
//每次删除之前的数据
|
|
//每次删除之前的数据
|
|
- for (StatementDataInfo statementDataInfo : overBatchArchiveProjectList) {
|
|
|
|
|
|
+ this.deleteOfficeStatementDataOnListInfoByYear(overBatchArchiveProjectList);
|
|
|
|
+ /*for (StatementDataInfo statementDataInfo : overBatchArchiveProjectList) {
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
dao.deleteOfficeStatementDataInfoByYear(statementDataInfo);
|
|
- }
|
|
|
|
- dao.insertOfficeStatementDataInfoByYear(overBatchArchiveProjectList);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ this.insertOfficeStatementDataInfoByYear(overBatchArchiveProjectList);
|
|
}
|
|
}
|
|
|
|
|
|
//数据处理并保存到数据库中
|
|
//数据处理并保存到数据库中
|
|
@@ -4754,6 +5003,72 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 批量新增数据信息(年报)
|
|
|
|
+ * @param list
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Transactional(readOnly = false)
|
|
|
|
+ public String insertOfficeStatementDataInfoByYear(List<StatementDataInfo> list){
|
|
|
|
+ //分批处理
|
|
|
|
+ if(null!=list && list.size()>0){
|
|
|
|
+ int pointsDataLimit = 100;//限制条数
|
|
|
|
+ Integer size = list.size();
|
|
|
|
+ //判断是否有必要分批
|
|
|
|
+ if(pointsDataLimit<size){
|
|
|
|
+ int part = size/pointsDataLimit;//分批数
|
|
|
|
+ //
|
|
|
|
+ for (int i = 0; i < part; i++) {
|
|
|
|
+ //100条
|
|
|
|
+ List<StatementDataInfo> listPage = list.subList(0, pointsDataLimit);
|
|
|
|
+ dao.insertOfficeStatementDataInfoByYear(listPage);
|
|
|
|
+ //剔除
|
|
|
|
+ list.subList(0, pointsDataLimit).clear();
|
|
|
|
+ }
|
|
|
|
+ if(!list.isEmpty()){
|
|
|
|
+ dao.insertOfficeStatementDataInfoByYear(list);
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ dao.insertOfficeStatementDataInfoByYear(list);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 批量删除数据信息(年报)
|
|
|
|
+ * @param list
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Transactional(readOnly = false)
|
|
|
|
+ public String deleteOfficeStatementDataOnListInfoByYear(List<StatementDataInfo> list){
|
|
|
|
+ //分批处理
|
|
|
|
+ if(null!=list && list.size()>0){
|
|
|
|
+ int pointsDataLimit = 100;//限制条数
|
|
|
|
+ Integer size = list.size();
|
|
|
|
+ //判断是否有必要分批
|
|
|
|
+ if(pointsDataLimit<size){
|
|
|
|
+ int part = size/pointsDataLimit;//分批数
|
|
|
|
+ //
|
|
|
|
+ for (int i = 0; i < part; i++) {
|
|
|
|
+ //100条
|
|
|
|
+ List<StatementDataInfo> listPage = list.subList(0, pointsDataLimit);
|
|
|
|
+ dao.deleteOfficeStatementDataOnListInfoByYear(listPage);
|
|
|
|
+ //剔除
|
|
|
|
+ list.subList(0, pointsDataLimit).clear();
|
|
|
|
+ }
|
|
|
|
+ if(!list.isEmpty()){
|
|
|
|
+ dao.deleteOfficeStatementDataOnListInfoByYear(list);
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ dao.deleteOfficeStatementDataOnListInfoByYear(list);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 部门级开票记录月报/季报/年报汇总方法
|
|
* 部门级开票记录月报/季报/年报汇总方法
|
|
* @param beginDate 开始时间
|
|
* @param beginDate 开始时间
|
|
* @param endDate 结束时间
|
|
* @param endDate 结束时间
|