fei.wang
2025-04-16 c386374de5ff4a65904124ef839e6862518d27fa
src/main/java/com/hxzkmonitor/service/impl/TbEvrydayweiyi2024ServiceImpl.java
@@ -373,16 +373,21 @@
            String dated = DateUtil.formatDate4(calendar.getTime(), "yyyy-MM-dd");
            int i1 = (Integer.parseInt(dated.split("-")[2])-1) ;
            String s = dated.split("-")[0] + "-" + dated.split("-")[1] + "-" + i1;
            if (tbEvrydayweiyi2024Mapper.getweiyi(datey, tagid.split(",")[i], s)!=null){
                hd[i] = tbEvrydayweiyi2024Mapper.getweiyi(datey, tagid.split(",")[i], s).getTdmm();
                ed[i] = tbEvrydayweiyi2024Mapper.getweiyi(datey, tagid.split(",")[i], s).getEdmm();
                nd[i] =tbEvrydayweiyi2024Mapper.getweiyi(datey, tagid.split(",")[i], s).getNdmm();
                x[i] = tbEvrydayweiyi2024Mapper.getweiyi(datey, tagid.split(",")[i], s).getFilename();
            QueryWrapper queryWrapper = new QueryWrapper<>();
            queryWrapper.eq("tagid", tagid.split(",")[i]);
            TbEquipment tbEquipment = tbEquipmentMapper.selectOne(queryWrapper);
            if (tbEquipment!=null){
                hd[i] = tbEquipment.getHdmm();
                ed[i] = tbEquipment.getEdmm();
                nd[i] =tbEquipment.getNdmm();
//                x[i] = tbEvrydayweiyi2024Mapper.getweiyi(datey, tagid.split(",")[i], s).getFilename();
            }else{
                hd[i] = "0";
                ed[i] = "0";
                nd[i] ="0";
                x[i] = "0";
//                x[i] = "0";
            }
        }
        result.put("ed", ed);