| | |
| | | import com.ycl.platform.mapper.TMonitorMapper; |
| | | import com.ycl.platform.service.ICheckIndexVideoService; |
| | | import constant.ApiConstants; |
| | | import constant.CheckThreadConstants; |
| | | import constant.RedisConstant; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | archiveParam.put("allFiles", stats.allFiles); |
| | | archiveParam.put("todayFiles", stats.todayFiles); |
| | | BigDecimal archivesRate = archivesRate(archiveParam); |
| | | //如果档案考核比低于0.9不得分 |
| | | if (new BigDecimal(CheckThreadConstants.Check_Video_Archive).compareTo(archivesRate) <= 0) { |
| | | checkIndexVideo.setArchivesRate(archivesRate); |
| | | } else { |
| | | checkIndexVideo.setArchivesRate(BigDecimal.ZERO); |
| | | } |
| | | |
| | | return checkIndexVideo; |
| | | } |