完善通道数据类型的保存与展示

This commit is contained in:
648540858
2024-12-24 23:35:01 +08:00
parent e82213b466
commit 081bb6de18
10 changed files with 41 additions and 59 deletions

View File

@@ -367,7 +367,7 @@ public class GbChannelServiceImpl implements IGbChannelService {
log.warn("[重置国标通道] 未找到对应Id的通道: id: {}", id);
throw new ControllerException(ErrorCode.ERROR400);
}
if (channel.getDataType() == ChannelDataType.GB28181.value) {
if (channel.getDataType() != ChannelDataType.GB28181.value) {
log.warn("[重置国标通道] 非国标下级通道无法重置: id: {}", id);
throw new ControllerException(ErrorCode.ERROR100.getCode(), "非国标下级通道无法重置");
}