|
@@ -5,6 +5,7 @@ import com.enteprise.benefit_monitor_assess.domain.BenefitMonitorAssess;
|
|
|
import com.enteprise.benefit_monitor_assess.domain.IndustrySummary;
|
|
|
import com.enteprise.benefit_monitor_assess.service.IBusinessMonitorAssessService;
|
|
|
import com.enteprise.industry_run.domain.EnterpriseBaseDataTotal;
|
|
|
+import com.enteprise.industry_run.mapper.EnterpriseBaseDataTotalMapper;
|
|
|
import com.enteprise.industry_run.service.IEnterpriseBaseDataTotalService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -18,7 +19,7 @@ import java.util.stream.Collectors;
|
|
|
public class BusinessMonitorAssessService implements IBusinessMonitorAssessService {
|
|
|
|
|
|
@Autowired
|
|
|
- IEnterpriseBaseDataTotalService service;
|
|
|
+ EnterpriseBaseDataTotalMapper mapper;
|
|
|
|
|
|
private static final Logger LOGGER = Logger.getLogger(BusinessMonitorAssessService.class.getName());
|
|
|
@Override
|
|
@@ -48,10 +49,10 @@ public class BusinessMonitorAssessService implements IBusinessMonitorAssessServi
|
|
|
if (season != null && !season.isEmpty()) {
|
|
|
//精确到季度
|
|
|
setDataWithYearAndSeason(year, season, dataTotal);
|
|
|
- currentDataTotal = service.selectEnterpriseBaseDataTotalList(dataTotal);
|
|
|
+ currentDataTotal = mapper.selectWithType(dataTotal);
|
|
|
getPreviousQuarter(businessMonitorAssess, dataTotal);
|
|
|
- previousDataTotal = service.selectEnterpriseBaseDataTotalList(dataTotal);
|
|
|
- _previousDataTotal = service.selectEnterpriseBaseDataTotalList(_dataTotal);
|
|
|
+ previousDataTotal = mapper.selectWithType(dataTotal);
|
|
|
+ _previousDataTotal = mapper.selectWithType(_dataTotal);
|
|
|
//判断分析方式
|
|
|
if (businessMonitorAssess.getMode().equals("trendAnalysis")) {
|
|
|
compareTrendAnalysis(currentDataTotal, previousDataTotal, list);
|
|
@@ -69,7 +70,7 @@ public class BusinessMonitorAssessService implements IBusinessMonitorAssessServi
|
|
|
dataTotal.setSeason(String.valueOf(i));
|
|
|
_dataTotal.setYear(year);
|
|
|
_dataTotal.setSeason(String.valueOf(i));
|
|
|
- currentDataTotal = service.selectEnterpriseBaseDataTotalList(dataTotal);
|
|
|
+ currentDataTotal = mapper.selectWithType(dataTotal);
|
|
|
if (i==1){
|
|
|
//第一季度特殊处理
|
|
|
int _year = Integer.parseInt(year) - 1;
|
|
@@ -81,8 +82,8 @@ public class BusinessMonitorAssessService implements IBusinessMonitorAssessServi
|
|
|
dataTotal.setSeason(String.valueOf(i - 1));
|
|
|
_dataTotal.setSeason(String.valueOf(i - 1));
|
|
|
}
|
|
|
- previousDataTotal = service.selectEnterpriseBaseDataTotalList(dataTotal);
|
|
|
- _previousDataTotal = service.selectEnterpriseBaseDataTotalList(_dataTotal);
|
|
|
+ previousDataTotal = mapper.selectWithType(dataTotal);
|
|
|
+ _previousDataTotal = mapper.selectWithType(_dataTotal);
|
|
|
//判断分析方式
|
|
|
if (businessMonitorAssess.getMode().equals("trendAnalysis")) {
|
|
|
compareTrendAnalysis(currentDataTotal, previousDataTotal, list);
|