双重预防项目-国泰新华二开定制版
16639036659
2024-06-19 fbb309a90ce4184cfad6c439cc5a6515a085e44b
src/main/java/com/ruoyi/project/tr/specialCheck/controller/TBSpecialCheckScoreAndDangerLogController.java
@@ -66,8 +66,24 @@
    {
        ResultVO<List<TbSpecialCheckScoreAndDangerLog>> resultVO = scoreAndDangerDangerLogService.selectSpecialCheckScoreAndDangerLogPage(scoreAndDangerLogBO);
        List<TbSpecialCheckScoreAndDangerLogRespDTO> data = (List<TbSpecialCheckScoreAndDangerLogRespDTO>) resultVO.getData();
        List<TbSpecialCheckScoreAndDangerLog> scoreList = (List<TbSpecialCheckScoreAndDangerLog>) resultVO.getData();
        List<TbSpecialCheckScoreAndDangerLogDTO> tbSpecialCheckScoreAndDangerLogDTOS = BeanCopyUtils.copyBeanList(data, TbSpecialCheckScoreAndDangerLogDTO.class);
        for (TbSpecialCheckScoreAndDangerLogDTO score : tbSpecialCheckScoreAndDangerLogDTOS) {
            for (TbSpecialCheckScoreAndDangerLog datum : scoreList) {
                if (datum.getId().equals(score.getId())){
                    Instant checkDate = datum.getCheckDate().atZone(ZoneId.systemDefault()).toInstant();
                    score.setCheckDate(Date.from(checkDate));
                    Instant createDate = datum.getCreateDate().atZone(ZoneId.systemDefault()).toInstant();
                    score.setCreateDate(Date.from(createDate));
                    Instant updateDate = datum.getUpdateDate().atZone(ZoneId.systemDefault()).toInstant();
                    score.setUpdateDate(Date.from(updateDate));
                }
            }
        }
        TableDataInfo dataTable = getDataTable(tbSpecialCheckScoreAndDangerLogDTOS);
        dataTable.setTotal(resultVO.getCount());