|
@@ -23,8 +23,10 @@ import org.jeecg.modules.Index.entity.pojo.ContractAmount;
|
|
|
import org.jeecg.modules.Index.entity.vo.*;
|
|
|
import org.jeecg.modules.Index.service.IndexService;
|
|
|
import org.jeecg.modules.Index.util.CommonMethod;
|
|
|
+import org.jeecg.modules.comContractInfoExchangeNew.mapper.ComContractInfoExchangeNewMapper;
|
|
|
import org.jeecg.modules.dataSourceSwitch.annotation.TargetDataSource;
|
|
|
import org.jeecg.modules.kyTaskInfo.service.IKyTaskInfoService;
|
|
|
+import org.jeecg.modules.kyTaskInfoNew.service.IKyTaskInfoNewService;
|
|
|
import org.jeecg.modules.projectCost.entity.ProjectCost;
|
|
|
import org.jeecg.modules.projectCost.mapper.ProjectCostMapper;
|
|
|
import org.jeecg.modules.projectCost.service.IProjectCostService;
|
|
@@ -109,6 +111,20 @@ public class IndexServiceImpl implements IndexService {
|
|
|
private IKyTaskInfoService kyTaskInfoService;
|
|
|
|
|
|
/**
|
|
|
+ * 导入的科研任务信息表
|
|
|
+ */
|
|
|
+ @Autowired
|
|
|
+ @SuppressWarnings("all")
|
|
|
+ private IKyTaskInfoNewService kyTaskInfoNewService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导入的合同收款基础数据表
|
|
|
+ */
|
|
|
+ @Autowired
|
|
|
+ @SuppressWarnings("all")
|
|
|
+ private ComContractInfoExchangeNewMapper exchangeNewMapper;
|
|
|
+
|
|
|
+ /**
|
|
|
* 项目成本信息表
|
|
|
*/
|
|
|
@Autowired
|
|
@@ -194,9 +210,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
//根据年份和当前部门对应的任务号查询,部门当前年的年收入
|
|
|
BigDecimal currentYearTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- currentYearTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //currentYearTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ currentYearTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
- currentYearTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //currentYearTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ currentYearTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(currentYearTotal)) currentYearTotal = BigDecimal.valueOf(0);
|
|
|
return currentYearTotal;
|
|
@@ -216,9 +238,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
CompletableFuture<BigDecimal> lastYearTqTotalFuture = CompletableFuture.supplyAsync(() -> {
|
|
|
BigDecimal lastYearTqTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- lastYearTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastYearTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastYearTqTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
- lastYearTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastYearTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastYearTqTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(lastYearTqTotal)) lastYearTqTotal = BigDecimal.valueOf(0);
|
|
|
return lastYearTqTotal;
|
|
@@ -235,9 +263,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
CompletableFuture<BigDecimal> currentMonthTotalFuture = CompletableFuture.supplyAsync(() -> {
|
|
|
BigDecimal currentMonthTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- currentMonthTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //currentMonthTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ currentMonthTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
- currentMonthTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //currentMonthTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ currentMonthTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(currentMonthTotal)) currentMonthTotal = BigDecimal.valueOf(0);
|
|
|
return currentMonthTotal;
|
|
@@ -254,9 +288,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
CompletableFuture<BigDecimal> lastMothTqTotalFuture = CompletableFuture.supplyAsync(() -> {
|
|
|
BigDecimal lastMothTqTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- lastMothTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastMothTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastMothTqTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
- lastMothTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastMothTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastMothTqTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(lastMothTqTotal)) lastMothTqTotal = BigDecimal.valueOf(0);
|
|
|
return lastMothTqTotal;
|
|
@@ -274,9 +314,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
CompletableFuture<BigDecimal> lastYearMonthTqTotalFuture = CompletableFuture.supplyAsync(() -> {
|
|
|
BigDecimal lastYearMonthTqTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- lastYearMonthTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastYearMonthTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastYearMonthTqTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRange(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
- lastYearMonthTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastYearMonthTqTotal = exchangeMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastYearMonthTqTotal = exchangeNewMapper.getIncomeYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(lastYearMonthTqTotal)) lastYearMonthTqTotal = BigDecimal.valueOf(0);
|
|
|
return lastYearMonthTqTotal;
|
|
@@ -378,13 +424,19 @@ public class IndexServiceImpl implements IndexService {
|
|
|
tasknoList.addAll(ZrbmTasknoList);
|
|
|
tasknoList.addAll(XdbmTasknoList);
|
|
|
if (tasknoList.isEmpty()) return comContractInfoExchangeList;
|
|
|
- comContractInfoExchangeList = exchangeMapper.getIncomeDetailByTasknoListAndByQsrqRange(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //comContractInfoExchangeList = exchangeMapper.getIncomeDetailByTasknoListAndByQsrqRange(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ comContractInfoExchangeList = exchangeNewMapper.getIncomeDetailByTasknoListAndByQsrqRange(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (depart == null) {
|
|
|
depart = "Boss";
|
|
|
- comContractInfoExchangeList = exchangeMapper.getIncomeDetailByTasknoListAndByQsrqRangeIfBoss(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //comContractInfoExchangeList = exchangeMapper.getIncomeDetailByTasknoListAndByQsrqRangeIfBoss(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ comContractInfoExchangeList = exchangeNewMapper.getIncomeDetailByTasknoListAndByQsrqRangeIfBoss(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
}
|
|
|
return comContractInfoExchangeList;
|
|
|
}
|
|
@@ -463,9 +515,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
|
|
|
BigDecimal currentYearTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- currentYearTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //currentYearTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ currentYearTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
- currentYearTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //currentYearTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ currentYearTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentYearBeginDate, currentYearEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(currentYearTotal)) currentYearTotal = BigDecimal.valueOf(0);
|
|
|
return currentYearTotal;
|
|
@@ -484,9 +542,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
CompletableFuture<BigDecimal> lastYearTqTotalFuture = CompletableFuture.supplyAsync(() -> {
|
|
|
BigDecimal lastYearTqTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- lastYearTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastYearTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastYearTqTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
- lastYearTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastYearTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastYearTqTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastYearBeginDate, LastTqEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(lastYearTqTotal)) lastYearTqTotal = BigDecimal.valueOf(0);
|
|
|
return lastYearTqTotal;
|
|
@@ -502,9 +566,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
CompletableFuture<BigDecimal> currentMonthTotalFuture = CompletableFuture.supplyAsync(() -> {
|
|
|
BigDecimal currentMonthTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- currentMonthTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //currentMonthTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ currentMonthTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
- currentMonthTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //currentMonthTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ currentMonthTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(currentMonthTotal)) currentMonthTotal = BigDecimal.valueOf(0);
|
|
|
return currentMonthTotal;
|
|
@@ -521,9 +591,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
CompletableFuture<BigDecimal> lastMothTqTotalFuture = CompletableFuture.supplyAsync(() -> {
|
|
|
BigDecimal lastMothTqTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- lastMothTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastMothTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastMothTqTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
+ /** 采集的合同信息表 */
|
|
|
lastMothTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastMothTqTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, LastMothTqBeginDate, LastMothTqEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(lastMothTqTotal)) lastMothTqTotal = BigDecimal.valueOf(0);
|
|
|
return lastMothTqTotal;
|
|
@@ -541,9 +617,15 @@ public class IndexServiceImpl implements IndexService {
|
|
|
CompletableFuture<BigDecimal> lastYearMonthTqTotalFuture = CompletableFuture.supplyAsync(() -> {
|
|
|
BigDecimal lastYearMonthTqTotal = null;
|
|
|
if (AuthMark.DEPT_LEADER.equals(finalRole)) {
|
|
|
- lastYearMonthTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //lastYearMonthTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastYearMonthTqTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRange(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
} else if (AuthMark.BOSS.equals(finalRole)) {
|
|
|
+ /** 采集的合同信息表 */
|
|
|
lastYearMonthTqTotal = exchangeMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ lastYearMonthTqTotal = exchangeNewMapper.getReceivedYearTotalByTasknoListAndByQsrqRangeIfBoss(tasknoList, lastYearMonthTqBeginDate, lastYearMonthTqEndDate);
|
|
|
}
|
|
|
if (ObjectUtils.isEmpty(lastYearMonthTqTotal)) lastYearMonthTqTotal = BigDecimal.valueOf(0);
|
|
|
return lastYearMonthTqTotal;
|
|
@@ -648,12 +730,18 @@ public class IndexServiceImpl implements IndexService {
|
|
|
tasknoList.addAll(XdbmTasknoList);
|
|
|
if (tasknoList.isEmpty()) return comContractInfoExchangeList;
|
|
|
|
|
|
- comContractInfoExchangeList = exchangeMapper.getReceivedDetailByTasknoListAndByQsrqRange(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //comContractInfoExchangeList = exchangeMapper.getReceivedDetailByTasknoListAndByQsrqRange(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ comContractInfoExchangeList = exchangeNewMapper.getReceivedDetailByTasknoListAndByQsrqRange(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
|
|
|
}
|
|
|
if (depart == null) {
|
|
|
depart = "Boss";
|
|
|
- comContractInfoExchangeList = exchangeMapper.getReceivedDetailByTasknoListAndByQsrqRangeIfBoss(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //comContractInfoExchangeList = exchangeMapper.getReceivedDetailByTasknoListAndByQsrqRangeIfBoss(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ comContractInfoExchangeList = exchangeNewMapper.getReceivedDetailByTasknoListAndByQsrqRangeIfBoss(page, tasknoList, currentMothBginDate, currentMothEndDate);
|
|
|
}
|
|
|
return comContractInfoExchangeList;
|
|
|
}
|
|
@@ -786,15 +874,27 @@ public class IndexServiceImpl implements IndexService {
|
|
|
List<ContractAmount> contractAmountList;
|
|
|
if (YEAR.equals(Time)) {
|
|
|
if (AuthMark.DEPT_LEADER.equals(role)) {
|
|
|
- contractAmountList = exchangeMapper.getContractAmountandNumByYear(tasknoList, beginDate, endDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //contractAmountList = exchangeMapper.getContractAmountandNumByYear(tasknoList, beginDate, endDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ contractAmountList = exchangeNewMapper.getContractAmountandNumByYear(tasknoList, beginDate, endDate);
|
|
|
} else {
|
|
|
- contractAmountList = exchangeMapper.getContractAmountandNumByYearIfBoss(tasknoList, beginDate, endDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //contractAmountList = exchangeMapper.getContractAmountandNumByYearIfBoss(tasknoList, beginDate, endDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ contractAmountList = exchangeNewMapper.getContractAmountandNumByYearIfBoss(tasknoList, beginDate, endDate);
|
|
|
}
|
|
|
} else {
|
|
|
if (AuthMark.DEPT_LEADER.equals(role)) {
|
|
|
- contractAmountList = exchangeMapper.getContractAmountandNumByMonth(tasknoList, beginDate, endDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //contractAmountList = exchangeMapper.getContractAmountandNumByMonth(tasknoList, beginDate, endDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ contractAmountList = exchangeNewMapper.getContractAmountandNumByMonth(tasknoList, beginDate, endDate);
|
|
|
} else {
|
|
|
- contractAmountList = exchangeMapper.getContractAmountandNumByMonthIfBoss(tasknoList, beginDate, endDate);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //contractAmountList = exchangeMapper.getContractAmountandNumByMonthIfBoss(tasknoList, beginDate, endDate);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ contractAmountList = exchangeNewMapper.getContractAmountandNumByMonthIfBoss(tasknoList, beginDate, endDate);
|
|
|
}
|
|
|
}
|
|
|
ContractChartInfoVo newResVo = new ContractChartInfoVo();
|
|
@@ -985,19 +1085,24 @@ public class IndexServiceImpl implements IndexService {
|
|
|
List<String> taskNoList1 = new ArrayList<>();
|
|
|
switch (timeStatus) {
|
|
|
case "0"://当年的所有任务
|
|
|
- taskNoList1 = kyTaskInfoService.getKyTaskNoByNameCurrYear(sysDepartName);
|
|
|
+ //taskNoList1 = kyTaskInfoService.getKyTaskNoByNameCurrYear(sysDepartName);
|
|
|
+ taskNoList1 = kyTaskInfoNewService.getKyTaskNoByNameCurrYear(sysDepartName);
|
|
|
break;
|
|
|
case "1"://上一年的所有任务
|
|
|
- taskNoList1 = kyTaskInfoService.getKyTaskNoByNameLastYear(sysDepartName);
|
|
|
+ //taskNoList1 = kyTaskInfoService.getKyTaskNoByNameLastYear(sysDepartName);
|
|
|
+ taskNoList1 = kyTaskInfoNewService.getKyTaskNoByNameLastYear(sysDepartName);
|
|
|
break;
|
|
|
case "2"://当月的所有任务
|
|
|
- taskNoList1 = kyTaskInfoService.getKyTaskNoByNameCurrMonth(sysDepartName);
|
|
|
+ //taskNoList1 = kyTaskInfoService.getKyTaskNoByNameCurrMonth(sysDepartName);
|
|
|
+ taskNoList1 = kyTaskInfoNewService.getKyTaskNoByNameCurrMonth(sysDepartName);
|
|
|
break;
|
|
|
case "3"://上个月的所有任务
|
|
|
- taskNoList1 = kyTaskInfoService.getKyTaskNoByNameLastMonth(sysDepartName);
|
|
|
+ //taskNoList1 = kyTaskInfoService.getKyTaskNoByNameLastMonth(sysDepartName);
|
|
|
+ taskNoList1 = kyTaskInfoNewService.getKyTaskNoByNameLastMonth(sysDepartName);
|
|
|
break;
|
|
|
case "4"://上一年同月的所有任务
|
|
|
- taskNoList1 = kyTaskInfoService.getKyTaskNoByNameTqMonth(sysDepartName);
|
|
|
+ //taskNoList1 = kyTaskInfoService.getKyTaskNoByNameTqMonth(sysDepartName);
|
|
|
+ taskNoList1 = kyTaskInfoNewService.getKyTaskNoByNameTqMonth(sysDepartName);
|
|
|
break;
|
|
|
default:
|
|
|
System.out.println("默认没有任务");
|
|
@@ -1033,19 +1138,24 @@ public class IndexServiceImpl implements IndexService {
|
|
|
List<String> taskNoList = new ArrayList<>();
|
|
|
switch (timeStatus) {
|
|
|
case "0"://当年的所有任务
|
|
|
- taskNoList = kyTaskInfoService.getKyTaskNoByCurrYear();
|
|
|
+ //taskNoList = kyTaskInfoService.getKyTaskNoByCurrYear();
|
|
|
+ taskNoList = kyTaskInfoNewService.getKyTaskNoByCurrYear();
|
|
|
break;
|
|
|
case "1"://上一年的所有任务
|
|
|
- taskNoList = kyTaskInfoService.getKyTaskNoByLastYear();
|
|
|
+ //taskNoList = kyTaskInfoService.getKyTaskNoByLastYear();
|
|
|
+ taskNoList = kyTaskInfoNewService.getKyTaskNoByLastYear();
|
|
|
break;
|
|
|
case "2"://当月的所有任务
|
|
|
- taskNoList = kyTaskInfoService.getKyTaskNoByCurrMonth();
|
|
|
+ //taskNoList = kyTaskInfoService.getKyTaskNoByCurrMonth();
|
|
|
+ taskNoList = kyTaskInfoNewService.getKyTaskNoByCurrMonth();
|
|
|
break;
|
|
|
case "3"://上个月的所有任务
|
|
|
- taskNoList = kyTaskInfoService.getKyTaskNoByLastMonth();
|
|
|
+ //taskNoList = kyTaskInfoService.getKyTaskNoByLastMonth();
|
|
|
+ taskNoList = kyTaskInfoNewService.getKyTaskNoByLastMonth();
|
|
|
break;
|
|
|
case "4"://上一年同月的所有任务
|
|
|
- taskNoList = kyTaskInfoService.getKyTaskNoByTqMonth();
|
|
|
+ //taskNoList = kyTaskInfoService.getKyTaskNoByTqMonth();
|
|
|
+ taskNoList = kyTaskInfoNewService.getKyTaskNoByTqMonth();
|
|
|
break;
|
|
|
default:
|
|
|
System.out.println("默认没有任务");
|
|
@@ -1074,10 +1184,12 @@ public class IndexServiceImpl implements IndexService {
|
|
|
List<String> taskNoList1 = new ArrayList<>();
|
|
|
switch (timeType) {
|
|
|
case "year"://某年的所有任务
|
|
|
- taskNoList1 = kyTaskInfoService.getKyTaskNoByYear(sysDepartName, timeRange);
|
|
|
+ //taskNoList1 = kyTaskInfoService.getKyTaskNoByYear(sysDepartName, timeRange);
|
|
|
+ taskNoList1 = kyTaskInfoNewService.getKyTaskNoByYear(sysDepartName, timeRange);
|
|
|
break;
|
|
|
case "month"://某月的所有任务
|
|
|
- taskNoList1 = kyTaskInfoService.getKyTaskNoByMonth(sysDepartName, timeRange);
|
|
|
+ //taskNoList1 = kyTaskInfoService.getKyTaskNoByMonth(sysDepartName, timeRange);
|
|
|
+ taskNoList1 = kyTaskInfoNewService.getKyTaskNoByMonth(sysDepartName, timeRange);
|
|
|
break;
|
|
|
default:
|
|
|
System.out.println("默认没有任务");
|
|
@@ -1109,10 +1221,12 @@ public class IndexServiceImpl implements IndexService {
|
|
|
List<String> taskNoList = new ArrayList<>();
|
|
|
switch (timeType) {
|
|
|
case "year"://某年的所有任务
|
|
|
- taskNoList = kyTaskInfoService.getKyTaskNoByYear2(timeRange);
|
|
|
+ //taskNoList = kyTaskInfoService.getKyTaskNoByYear2(timeRange);
|
|
|
+ taskNoList = kyTaskInfoNewService.getKyTaskNoByYear2(timeRange);
|
|
|
break;
|
|
|
case "month"://某月的所有任务
|
|
|
- taskNoList = kyTaskInfoService.getKyTaskNoByMonth2(timeRange);
|
|
|
+ //taskNoList = kyTaskInfoService.getKyTaskNoByMonth2(timeRange);
|
|
|
+ taskNoList = kyTaskInfoNewService.getKyTaskNoByMonth2(timeRange);
|
|
|
break;
|
|
|
default:
|
|
|
System.out.println("默认没有任务");
|
|
@@ -1449,13 +1563,19 @@ public class IndexServiceImpl implements IndexService {
|
|
|
for (String timeRange2 : timeRangeList) {
|
|
|
//根据日期和当前部门对应的任务号查询,部门某年或某月的年收入
|
|
|
if (timeType.equals("year")) {
|
|
|
- BigDecimal yearTotal = exchangeMapper.getReceivedByYear(tasknoList, timeRange2);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //BigDecimal yearTotal = exchangeMapper.getReceivedByYear(tasknoList, timeRange2);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ BigDecimal yearTotal = exchangeNewMapper.getReceivedByYear(tasknoList, timeRange2);
|
|
|
if (yearTotal == null) {
|
|
|
yearTotal = initValue;
|
|
|
}
|
|
|
seriesDataList2.add(yearTotal);
|
|
|
} else if (timeType.equals("month")) {
|
|
|
- BigDecimal yearTotal = exchangeMapper.getReceivedByYMonth(tasknoList, timeRange2);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //BigDecimal yearTotal = exchangeMapper.getReceivedByYMonth(tasknoList, timeRange2);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ BigDecimal yearTotal = exchangeNewMapper.getReceivedByYMonth(tasknoList, timeRange2);
|
|
|
if (yearTotal == null) {
|
|
|
yearTotal = initValue;
|
|
|
}
|
|
@@ -1521,13 +1641,19 @@ public class IndexServiceImpl implements IndexService {
|
|
|
for (String timeRange2 : timeRangeList) {
|
|
|
//根据日期和当前部门对应的任务号查询,部门某年或某月的年收入
|
|
|
if (timeType.equals("year")) {
|
|
|
- BigDecimal yearTotal = exchangeMapper.getReceivedByYear(tasknoList, timeRange2);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //BigDecimal yearTotal = exchangeMapper.getReceivedByYear(tasknoList, timeRange2);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ BigDecimal yearTotal = exchangeNewMapper.getReceivedByYear(tasknoList, timeRange2);
|
|
|
if (yearTotal == null) {
|
|
|
yearTotal = initValue;
|
|
|
}
|
|
|
seriesDataList2.add(yearTotal);
|
|
|
} else if (timeType.equals("month")) {
|
|
|
- BigDecimal yearTotal = exchangeMapper.getReceivedByYMonth(tasknoList, timeRange2);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //BigDecimal yearTotal = exchangeMapper.getReceivedByYMonth(tasknoList, timeRange2);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ BigDecimal yearTotal = exchangeNewMapper.getReceivedByYMonth(tasknoList, timeRange2);
|
|
|
if (yearTotal == null) {
|
|
|
yearTotal = initValue;
|
|
|
}
|
|
@@ -2266,7 +2392,10 @@ public class IndexServiceImpl implements IndexService {
|
|
|
//4.计算该时间列表中某年或某月对应的总收款
|
|
|
List<ReceivedByDate> receivedByDates = new ArrayList<>();
|
|
|
if (timeType.equals("year")) {
|
|
|
- receivedByDates = exchangeMapper.getReceivedAllByYear(startString, endString);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //receivedByDates = exchangeMapper.getReceivedAllByYear(startString, endString);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ receivedByDates = exchangeNewMapper.getReceivedAllByYear(startString, endString);
|
|
|
// System.out.println("已收款二层按年查询结果:");
|
|
|
// for(ReceivedByDate receivedByDate:receivedByDates){
|
|
|
// System.out.println(receivedByDate.getDate());
|
|
@@ -2275,7 +2404,10 @@ public class IndexServiceImpl implements IndexService {
|
|
|
// System.out.println(receivedByDates);
|
|
|
|
|
|
} else if (timeType.equals("month")) {
|
|
|
- receivedByDates = exchangeMapper.getReceivedAllByYMonth(startString, endString);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //receivedByDates = exchangeMapper.getReceivedAllByYMonth(startString, endString);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ receivedByDates = exchangeNewMapper.getReceivedAllByYMonth(startString, endString);
|
|
|
// System.out.println("已收款二层按月查询结果:");
|
|
|
// for(ReceivedByDate receivedByDate:receivedByDates){
|
|
|
// System.out.println(receivedByDate.getDate());
|
|
@@ -2423,7 +2555,10 @@ public class IndexServiceImpl implements IndexService {
|
|
|
//4.计算该时间列表中某年或某月对应的总收款
|
|
|
List<ReceivedByDate> receivedByDates = new ArrayList<>();
|
|
|
if (timeType.equals("year")) {
|
|
|
- receivedByDates = exchangeMapper.getReceivedByYear2(sysDepartNames, startString, endString);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //receivedByDates = exchangeMapper.getReceivedByYear2(sysDepartNames, startString, endString);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ receivedByDates = exchangeNewMapper.getReceivedByYear2(sysDepartNames, startString, endString);
|
|
|
System.out.println("部门领导已收款二层按年查询结果:");
|
|
|
for (ReceivedByDate receivedByDate : receivedByDates) {
|
|
|
System.out.println(receivedByDate.getDate());
|
|
@@ -2432,7 +2567,10 @@ public class IndexServiceImpl implements IndexService {
|
|
|
System.out.println(receivedByDates);
|
|
|
|
|
|
} else if (timeType.equals("month")) {
|
|
|
- receivedByDates = exchangeMapper.getReceivedByYMonth2(sysDepartNames, startString, endString);
|
|
|
+ /** 采集的合同信息表 */
|
|
|
+ //receivedByDates = exchangeMapper.getReceivedByYMonth2(sysDepartNames, startString, endString);
|
|
|
+ /** 导入的合同信息表 */
|
|
|
+ receivedByDates = exchangeNewMapper.getReceivedByYMonth2(sysDepartNames, startString, endString);
|
|
|
System.out.println("部门领导已收款二层按月查询结果:");
|
|
|
for (ReceivedByDate receivedByDate : receivedByDates) {
|
|
|
System.out.println(receivedByDate.getDate());
|