This commit is contained in:
648540858
2022-03-16 17:46:24 +08:00
parent 4a0fd9ead3
commit c8f9f19c38
3 changed files with 3 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ public interface GbStreamMapper {
"mediaServerId=#{mediaServerId}," +
"status=${status} " +
"WHERE app=#{app} AND stream=#{stream}")
int updateByallAndStream(GbStream gbStream);
int updateByAppAndStream(GbStream gbStream);
@Update("UPDATE gb_stream " +
"SET app=#{app}," +

View File

@@ -772,7 +772,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
try {
if (streamProxyMapper.update(streamProxyItem) > 0) {
if (!StringUtils.isEmpty(streamProxyItem.getGbId())) {
if (gbStreamMapper.updateByallAndStream(streamProxyItem) > 0) {
if (gbStreamMapper.updateByAppAndStream(streamProxyItem) == 0) {
//事务回滚
dataSourceTransactionManager.rollback(transactionStatus);
return false;