Bladeren bron

处理snapId实体类数据类型(long)与传参数据类型不对应(String)问题

tianye 2 jaren geleden
bovenliggende
commit
1477dfe157

+ 1 - 1
warning-web/src/main/java/com/gyee/wisdom/alarm/sharding/service/AlarmCountService.java

@@ -395,7 +395,7 @@ public class AlarmCountService extends ServiceImpl<AlarmCountMapper, AlarmCount>
         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
         Date begindate = sdf.parse(startDate);
         Date enddate = sdf.parse(endDate);
-        AlarmSnap alarmSnap = alarmSnapService.getById(snapId);
+        AlarmSnap alarmSnap = alarmSnapService.getById(Long.valueOf(snapId));
         if (alarmSnap == null)
             return new HashMap<>();