From cbfb409a11b7cb064624cb60f188b1f64a52c894 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Wed, 11 May 2022 18:05:46 +0800 Subject: [PATCH] 1 --- .../com/hisense/monitormanage/mapper/CameraChannelMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java b/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java index be4c053..2d65fe4 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java @@ -15,7 +15,7 @@ public interface CameraChannelMapper extends BaseMapper { List selectAll(CameraChannel cameraChannel,@Param("page") Integer page,@Param("pageSize") Integer pageSize); - @Select("select cc.*,cp.pic_url from t_camera_channel cc JOIN t_channel_picture cp ON cc.channel_code=cp.channel_code where cc.channel_id = #{channelId}") + @Select("select cc.*,cp.pic_url from t_camera_channel cc LEFT JOIN t_channel_picture cp ON cc.channel_code=cp.channel_code where cc.channel_id = #{channelId}") List selectByChannelId(@Param("channelId") String channelId); @Select("select * from t_camera_channel where parent_id = #{parentId}")