| | |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ImageResourceSecurity imageResourceSecurity) |
| | | { |
| | | startPage(); |
| | | List<ImageResourceSecurity> list = imageResourceSecurityService.selectImageResourceSecurityList(imageResourceSecurity); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | } |
| | | // 获取字典值-总数 |
| | | 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); |
| | | } |
| | |
| | | </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> |