|
@@ -35,6 +35,7 @@ public class BusinessMonitorAssessService implements IBusinessMonitorAssessServi
|
|
|
String season = businessMonitorAssess.getSeason();
|
|
|
String code = businessMonitorAssess.getCode();
|
|
|
String enterpriseName = businessMonitorAssess.getEnterpriseName();
|
|
|
+ String typeNum = businessMonitorAssess.getTypeNum();
|
|
|
//若有企业、行业过滤直接赋值进行筛选
|
|
|
if (code != null && !code.isEmpty()) {
|
|
|
dataTotal.setCode(code);
|
|
@@ -43,6 +44,10 @@ public class BusinessMonitorAssessService implements IBusinessMonitorAssessServi
|
|
|
if (enterpriseName != null && !enterpriseName.isEmpty()) {
|
|
|
dataTotal.setEnterpriseName(enterpriseName);
|
|
|
}
|
|
|
+ if (typeNum != null && !typeNum.isEmpty()) {
|
|
|
+ dataTotal.setTypeNum(typeNum);
|
|
|
+ _dataTotal.setTypeNum(typeNum);
|
|
|
+ }
|
|
|
//if趋势分析,获取上一个季度的工业产值、电力消耗、实缴税金、本季度实缴税金
|
|
|
if (year !=null && !year.isEmpty()) {
|
|
|
//精确到年份
|
|
@@ -61,10 +66,13 @@ public class BusinessMonitorAssessService implements IBusinessMonitorAssessServi
|
|
|
}
|
|
|
return list;
|
|
|
}
|
|
|
- // 无季度值,根据当前日期获取当前季度
|
|
|
+ // 无季度值,根据当前日期获取当前季度和今年的其他季度
|
|
|
Calendar now = Calendar.getInstance();
|
|
|
int currentMonth = now.get(Calendar.MONTH) + 1; // 月份从0开始,所以加1
|
|
|
- int currentQuarter = (currentMonth - 1) / 3 + 1; // 计算当前季度
|
|
|
+ int currentQuarter = 4;
|
|
|
+ if (now.get(Calendar.YEAR ) == Integer.parseInt(year)) {
|
|
|
+ currentQuarter = (currentMonth - 1) / 3 + 1; // 计算当前季度
|
|
|
+ }
|
|
|
for (int i = currentQuarter; i > 0; i--) {
|
|
|
dataTotal.setYear(year);
|
|
|
dataTotal.setSeason(String.valueOf(i));
|
|
@@ -183,6 +191,7 @@ public class BusinessMonitorAssessService implements IBusinessMonitorAssessServi
|
|
|
assess.setSeason(currentData.getSeason());
|
|
|
assess.setEnterpriseName(enterpriseName);
|
|
|
assess.setCode(currentData.getCode());
|
|
|
+ assess.setTypeNum(currentData.getTypeNum());
|
|
|
// 当前季度和上个季度交税值比较并填充返回的list(指标解耦)
|
|
|
if (currentQuarterTaxSum > previousQuarterTaxSum) {
|
|
|
//交税大于上季度
|