|
@@ -2,19 +2,28 @@ package com.xunmei.core.reportForms.resumption.controller;
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateTime;
|
|
import cn.hutool.core.date.DateTime;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
|
|
+import com.xunmei.common.core.constant.SecurityConstants;
|
|
|
import com.xunmei.common.core.web.domain.AjaxResult;
|
|
import com.xunmei.common.core.web.domain.AjaxResult;
|
|
|
|
|
+import com.xunmei.common.log.annotation.Log;
|
|
|
|
|
+import com.xunmei.common.log.enums.BusinessType;
|
|
|
import com.xunmei.common.security.annotation.RequiresPermissions;
|
|
import com.xunmei.common.security.annotation.RequiresPermissions;
|
|
|
import com.xunmei.core.reportForms.resumption.dto.ResumptionDTO;
|
|
import com.xunmei.core.reportForms.resumption.dto.ResumptionDTO;
|
|
|
import com.xunmei.core.reportForms.resumption.service.ResumptionReportService;
|
|
import com.xunmei.core.reportForms.resumption.service.ResumptionReportService;
|
|
|
import com.xunmei.core.reportForms.resumption.vo.IntrusionTestReportVO;
|
|
import com.xunmei.core.reportForms.resumption.vo.IntrusionTestReportVO;
|
|
|
import com.xunmei.core.reportForms.resumption.vo.ResumptionDayVO;
|
|
import com.xunmei.core.reportForms.resumption.vo.ResumptionDayVO;
|
|
|
|
|
+import com.xunmei.system.api.RemoteOrgService;
|
|
|
|
|
+import com.xunmei.system.api.domain.SysOrg;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
+import java.io.IOException;
|
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -27,10 +36,19 @@ import java.util.List;
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/resumptionReport")
|
|
@RequestMapping("/resumptionReport")
|
|
|
public class ResumptionReportController {
|
|
public class ResumptionReportController {
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private RemoteOrgService remoteOrgService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ResumptionReportService resumptionReportService;
|
|
private ResumptionReportService resumptionReportService;
|
|
|
private static final String TITLE = "title";
|
|
private static final String TITLE = "title";
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "履职报表导出")
|
|
|
|
|
+ @RequiresPermissions("core:resumptionReport:export")
|
|
|
|
|
+ @Log(title = "履职报表导出", businessType = BusinessType.EXPORT)
|
|
|
|
|
+ @PostMapping("/export")
|
|
|
|
|
+ public void export(ResumptionDTO request, HttpServletResponse response) throws IOException {
|
|
|
|
|
+ resumptionReportService.export(request, response);
|
|
|
|
|
+ }
|
|
|
@ApiOperation(value = "每日安全保卫履职-日报表")
|
|
@ApiOperation(value = "每日安全保卫履职-日报表")
|
|
|
@RequiresPermissions("core:resumptionReport:list")
|
|
@RequiresPermissions("core:resumptionReport:list")
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
@@ -51,9 +69,16 @@ public class ResumptionReportController {
|
|
|
} else {
|
|
} else {
|
|
|
ajaxResult.put(TITLE, "营业网点安全保卫履职情况表(" + resumptionDTO.getSearchTime() + ")");
|
|
ajaxResult.put(TITLE, "营业网点安全保卫履职情况表(" + resumptionDTO.getSearchTime() + ")");
|
|
|
}
|
|
}
|
|
|
|
|
+ SysOrg sysOrg = remoteOrgService.selectSysOrgById(resumptionDTO.getOrgId(), SecurityConstants.INNER);
|
|
|
|
|
+ ajaxResult.put("orgName", sysOrg.getShortName());
|
|
|
return ajaxResult;
|
|
return ajaxResult;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ @ApiOperation(value = "报警测试报表导出")
|
|
|
|
|
+ @RequiresPermissions("core:resumptionReport:export")
|
|
|
|
|
+ @PostMapping("/intrusionTestExport")
|
|
|
|
|
+ public void intrusionTestExport(ResumptionDTO request, HttpServletResponse response) throws IOException {
|
|
|
|
|
+ resumptionReportService.intrusionTestExport(request, response);
|
|
|
|
|
+ }
|
|
|
@ApiOperation(value = "报警测试报表")
|
|
@ApiOperation(value = "报警测试报表")
|
|
|
@RequiresPermissions("core:resumptionReport:list")
|
|
@RequiresPermissions("core:resumptionReport:list")
|
|
|
@GetMapping("/intrusionTest")
|
|
@GetMapping("/intrusionTest")
|
|
@@ -68,7 +93,12 @@ public class ResumptionReportController {
|
|
|
ajaxResult.put(TITLE, "报警测试报表(" + resumptionDTO.getSearchTime() + ")");
|
|
ajaxResult.put(TITLE, "报警测试报表(" + resumptionDTO.getSearchTime() + ")");
|
|
|
return ajaxResult;
|
|
return ajaxResult;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ @ApiOperation(value = "备用电源报表导出")
|
|
|
|
|
+ @RequiresPermissions("core:resumptionReport:export")
|
|
|
|
|
+ @PostMapping("/standbyPowerExport")
|
|
|
|
|
+ public void standbyPowerExport(ResumptionDTO request, HttpServletResponse response) throws IOException {
|
|
|
|
|
+ resumptionReportService.standbyPowerExport(request, response);
|
|
|
|
|
+ }
|
|
|
@ApiOperation(value = "备用电源维护报表")
|
|
@ApiOperation(value = "备用电源维护报表")
|
|
|
@RequiresPermissions("core:resumptionReport:list")
|
|
@RequiresPermissions("core:resumptionReport:list")
|
|
|
@GetMapping("/standbyPower")
|
|
@GetMapping("/standbyPower")
|
|
@@ -92,9 +122,16 @@ public class ResumptionReportController {
|
|
|
List<IntrusionTestReportVO> intrusionTestReportVOList = resumptionReportService.standbyPower(resumptionDTO);
|
|
List<IntrusionTestReportVO> intrusionTestReportVOList = resumptionReportService.standbyPower(resumptionDTO);
|
|
|
ajaxResult.put(AjaxResult.DATA_TAG, intrusionTestReportVOList);
|
|
ajaxResult.put(AjaxResult.DATA_TAG, intrusionTestReportVOList);
|
|
|
ajaxResult.put(TITLE, "备用电源维护报表(" + time + ")");
|
|
ajaxResult.put(TITLE, "备用电源维护报表(" + time + ")");
|
|
|
|
|
+ SysOrg sysOrg = remoteOrgService.selectSysOrgById(resumptionDTO.getOrgId(), SecurityConstants.INNER);
|
|
|
|
|
+ ajaxResult.put("orgName", sysOrg.getShortName());
|
|
|
return ajaxResult;
|
|
return ajaxResult;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ @ApiOperation(value = "离行式自助银行巡检报表导出")
|
|
|
|
|
+ @RequiresPermissions("core:resumptionReport:export")
|
|
|
|
|
+ @PostMapping("/serviceBankExport")
|
|
|
|
|
+ public void serviceBankExport(ResumptionDTO request, HttpServletResponse response) throws IOException {
|
|
|
|
|
+ resumptionReportService.serviceBankExport(request, response);
|
|
|
|
|
+ }
|
|
|
@ApiOperation(value = "离行式自助银行巡检报表")
|
|
@ApiOperation(value = "离行式自助银行巡检报表")
|
|
|
@RequiresPermissions("core:resumptionReport:list")
|
|
@RequiresPermissions("core:resumptionReport:list")
|
|
|
@GetMapping("/serviceBank")
|
|
@GetMapping("/serviceBank")
|
|
@@ -107,6 +144,8 @@ public class ResumptionReportController {
|
|
|
List<IntrusionTestReportVO> intrusionTestReportVOList = resumptionReportService.serviceBank(resumptionDTO);
|
|
List<IntrusionTestReportVO> intrusionTestReportVOList = resumptionReportService.serviceBank(resumptionDTO);
|
|
|
ajaxResult.put(AjaxResult.DATA_TAG, intrusionTestReportVOList);
|
|
ajaxResult.put(AjaxResult.DATA_TAG, intrusionTestReportVOList);
|
|
|
ajaxResult.put(TITLE, "离行式自助银行巡检报表(" + resumptionDTO.getSearchTime() + ")");
|
|
ajaxResult.put(TITLE, "离行式自助银行巡检报表(" + resumptionDTO.getSearchTime() + ")");
|
|
|
|
|
+ SysOrg sysOrg = remoteOrgService.selectSysOrgById(resumptionDTO.getOrgId(), SecurityConstants.INNER);
|
|
|
|
|
+ ajaxResult.put("orgName", sysOrg.getShortName());
|
|
|
return ajaxResult;
|
|
return ajaxResult;
|
|
|
}
|
|
}
|
|
|
|
|
|