From fca21112fb7ee51087c428297a008b0a7fd1c2a9 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 27 八月 2024 13:37:33 +0800 Subject: [PATCH] feat:图像资源计算定时任务完善 --- ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml | 2 +- ycl-server/src/main/java/com/ycl/platform/controller/ImageResourceSecurityController.java | 1 - ycl-server/src/main/java/com/ycl/task/ImageResourceSecurityTask.java | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/ImageResourceSecurityController.java b/ycl-server/src/main/java/com/ycl/platform/controller/ImageResourceSecurityController.java index 91d5731..295fc53 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/ImageResourceSecurityController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/ImageResourceSecurityController.java @@ -35,7 +35,6 @@ @GetMapping("/list") public TableDataInfo list(ImageResourceSecurity imageResourceSecurity) { - startPage(); List<ImageResourceSecurity> list = imageResourceSecurityService.selectImageResourceSecurityList(imageResourceSecurity); return getDataTable(list); } diff --git a/ycl-server/src/main/java/com/ycl/task/ImageResourceSecurityTask.java b/ycl-server/src/main/java/com/ycl/task/ImageResourceSecurityTask.java index 0d20d78..01111d5 100644 --- a/ycl-server/src/main/java/com/ycl/task/ImageResourceSecurityTask.java +++ b/ycl-server/src/main/java/com/ycl/task/ImageResourceSecurityTask.java @@ -61,7 +61,7 @@ } // 鑾峰彇瀛楀吀鍊�-鎬绘暟 int onlineAssetsTotal = Integer.parseInt(DictUtils.getDictValue("online_assets_total", checkIndexVideo.getDeptName())); - imageResourceSecurity.setRiskProperty(BigDecimal.valueOf((count * 100L) / onlineAssetsTotal)); + imageResourceSecurity.setRiskProperty(BigDecimal.valueOf(count / onlineAssetsTotal)); imageResourceSecurity.setCreateTime(DateUtils.getNowDate()); imageResourceSecurities.add(imageResourceSecurity); } diff --git a/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml index 58327b0..97b345f 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml @@ -28,7 +28,7 @@ </sql> <select id="selectImageResourceSecurityList" resultType="com.ycl.platform.domain.entity.ImageResourceSecurity"> - select id, a.dept_id, dept_name, platform_online, property_accuracy, weak_password, risk_property, boundary_integrity from t_image_resource_security a + select id, a.dept_id, area AS deptName, platform_online, property_accuracy, weak_password, risk_property, boundary_integrity from t_image_resource_security a LEFT JOIN sys_dept b ON a.dept_id = b.dept_id AND b.del_flag = 0 <where> <if test="platformOnline != null ">and platform_online = #{platformOnline}</if> -- Gitblit v1.8.0