From 728e60ce8431fe5a70e44a1da2d4835425ce83a5 Mon Sep 17 00:00:00 2001 From: pei <ayp199645aabb@qq.com> Date: 星期五, 29 三月 2024 11:55:44 +0800 Subject: [PATCH] 处理可能会出现的空指针异常 --- src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java index d51f3f9..08f67ba 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java @@ -106,4 +106,17 @@ " </script>") int deleteList(List<CloudRecordItem> cloudRecordItemIdList); + @Select(" <script>" + + "select *" + + " from wvp_cloud_record " + + "where call_id = #{callId}" + + " </script>") + List<CloudRecordItem> getListByCallId(@Param("callId") String callId); + + @Select(" <script>" + + "select *" + + " from wvp_cloud_record " + + "where id = #{id}" + + " </script>") + CloudRecordItem queryOne(@Param("id") Integer id); } -- Gitblit v1.8.0