|
|
@@ -1,6 +1,5 @@
|
|
|
package com.xunmei.core.reportForms.resumption.service.impl;
|
|
|
|
|
|
-import com.xunmei.common.core.constant.ErrorMsgConstants;
|
|
|
import com.xunmei.common.core.constant.SecurityConstants;
|
|
|
import com.xunmei.common.security.utils.SecurityUtils;
|
|
|
import com.xunmei.core.reportForms.monitor.mapper.MonitorAccessReportMapper;
|
|
|
@@ -11,7 +10,6 @@ import com.xunmei.core.reportForms.resumption.vo.IntrusionTestReportVO;
|
|
|
import com.xunmei.core.reportForms.resumption.vo.ResumptionDayVO;
|
|
|
import com.xunmei.system.api.RemoteOrgService;
|
|
|
import com.xunmei.system.api.domain.SysOrg;
|
|
|
-import com.xunmei.system.api.function.RemoteCallHandlerExecutor;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -19,6 +17,7 @@ import org.springframework.stereotype.Service;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Calendar;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -48,7 +47,7 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
|
|
|
} else if (sysOrg.getType() == 3) {
|
|
|
sysOrgs = orgService.selectSysOrgByPathAndType(sysOrg.getPath(), 4, SecurityConstants.INNER);
|
|
|
} else {
|
|
|
- return null;
|
|
|
+ return Collections.emptyList();
|
|
|
}
|
|
|
List<ResumptionDayVO> resumptionDayVOS = new ArrayList<>();
|
|
|
sysOrgs.forEach(o -> {
|
|
|
@@ -120,7 +119,7 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
|
|
|
} else if (sysOrg.getType() == 3) {
|
|
|
sysOrgs = orgService.selectSysOrgByPathAndType(sysOrg.getPath(), 4, SecurityConstants.INNER);
|
|
|
} else {
|
|
|
- return null;
|
|
|
+ return Collections.emptyList();
|
|
|
}
|
|
|
List<IntrusionTestReportVO> intrusionTestReportVOList = new ArrayList<>(16);
|
|
|
sysOrgs.forEach(o -> {
|
|
|
@@ -154,7 +153,7 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
|
|
|
} else if (sysOrg.getType() == 3) {
|
|
|
sysOrgs = orgService.selectSysOrgByPathAndType(sysOrg.getPath(), 4, SecurityConstants.INNER);
|
|
|
} else {
|
|
|
- return null;
|
|
|
+ return Collections.emptyList();
|
|
|
}
|
|
|
List<IntrusionTestReportVO> intrusionTestReportVOList = new ArrayList<>(16);
|
|
|
sysOrgs.forEach(o->{
|
|
|
@@ -204,7 +203,7 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
|
|
|
} else if (sysOrg.getType() == 3) {
|
|
|
sysOrgs = orgService.selectSysOrgByPathAndType(sysOrg.getPath(), 4, SecurityConstants.INNER);
|
|
|
} else {
|
|
|
- return null;
|
|
|
+ return Collections.emptyList();
|
|
|
}
|
|
|
List<IntrusionTestReportVO> intrusionTestReportVOList = new ArrayList<>(16);
|
|
|
sysOrgs.forEach(o -> {
|
|
|
@@ -232,7 +231,7 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
|
|
|
|
|
|
Date date;
|
|
|
|
|
|
- String day_last;
|
|
|
+ String dayLast;
|
|
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
|
@@ -250,9 +249,9 @@ public class ResumptionReportServiceImpl implements ResumptionReportService {
|
|
|
|
|
|
calendar.add(Calendar.DATE, -1); //再减一天即为上个月最后一天
|
|
|
|
|
|
- day_last = format.format(calendar.getTime());
|
|
|
+ dayLast = format.format(calendar.getTime());
|
|
|
|
|
|
- return day_last;
|
|
|
+ return dayLast;
|
|
|
|
|
|
}
|
|
|
}
|