修复推流流注册时写入服务ID
parent
785da6d5ef
commit
c2fb892f2a
|
@ -82,7 +82,7 @@ public interface StreamPushMapper {
|
||||||
@Update("UPDATE wvp_stream_push " +
|
@Update("UPDATE wvp_stream_push " +
|
||||||
"SET pushing=#{pushing}, server_id=#{serverId} " +
|
"SET pushing=#{pushing}, server_id=#{serverId} " +
|
||||||
"WHERE id=#{id}")
|
"WHERE id=#{id}")
|
||||||
int updatePushStatus(@Param("id") int id, @Param("pushing") boolean pushing);
|
int updatePushStatus(@Param("id") int id, @Param("pushing") boolean pushing, @Param("serverId") String serverId);
|
||||||
|
|
||||||
@Select("<script> "+
|
@Select("<script> "+
|
||||||
"SELECT st.*, st.id as data_device_id, wdc.*, wdc.id as gb_id FROM wvp_stream_push st LEFT join wvp_device_channel wdc on wdc.data_type = 2 and st.id = wdc.data_device_id " +
|
"SELECT st.*, st.id as data_device_id, wdc.*, wdc.id as gb_id FROM wvp_stream_push st LEFT join wvp_device_channel wdc on wdc.data_type = 2 and st.id = wdc.data_device_id " +
|
||||||
|
|
|
@ -505,8 +505,7 @@ public class StreamPushServiceImpl implements IStreamPushService {
|
||||||
streamPush.setGbStatus(pushIng?"ON":"OFF");
|
streamPush.setGbStatus(pushIng?"ON":"OFF");
|
||||||
}
|
}
|
||||||
streamPush.setPushTime(DateUtil.getNow());
|
streamPush.setPushTime(DateUtil.getNow());
|
||||||
streamPush.setServerId(userSetting.getServerId());
|
streamPushMapper.updatePushStatus(streamPush.getId(), pushIng, userSetting.getServerId());
|
||||||
streamPushMapper.updatePushStatus(streamPush.getId(), pushIng);
|
|
||||||
if (ObjectUtils.isEmpty(streamPush.getGbDeviceId())) {
|
if (ObjectUtils.isEmpty(streamPush.getGbDeviceId())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue