萤石设备修改
This commit is contained in:
parent
0ada098ac2
commit
8c0a68714b
@ -71,10 +71,11 @@ public class VideoItemServiceImpl extends ServiceImpl<VideoItemMapper, VideoItem
|
||||
if (projectVideoConfig.getVideoType() != 2) {
|
||||
QueryWrapper<VideoItem> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.lambda().eq(VideoItem::getVideoId, videoItem.getVideoId())
|
||||
.eq(VideoItem::getSerialNumber, videoItem.getSerialNumber());
|
||||
.eq(VideoItem::getSerialNumber, videoItem.getSerialNumber())
|
||||
.eq(VideoItem::getVerificationCode, videoItem.getVerificationCode());
|
||||
int count = videoItemMapper.selectCount(queryWrapper);
|
||||
if (count > 0) {
|
||||
throw new OpenAlertException(MessageUtil.get("serialNumberExistErr"));
|
||||
throw new OpenAlertException(MessageUtil.get("serialNumberAndCodeExistErr"));
|
||||
}
|
||||
}
|
||||
// TODO 此处直接添加成功,暂时不需要添加萤石设备 用户使用此功能前需要先在萤石添加好自己需要的设备,之后在智慧工地平台添加
|
||||
|
||||
@ -68,6 +68,7 @@ userNotExist=用户不存在
|
||||
appKeyNotExist=appKey不存在
|
||||
videoTypeEnableErr=该视频类型未启用
|
||||
serialNumberExistErr=设备序列号已存在
|
||||
serialNumberAndCodeExistErr=设备序列号下通道已存在
|
||||
keyAndSecretMatchErr=appkey和appSecret不匹配
|
||||
closeClientErr=请在萤石客户端关闭终端绑定
|
||||
workerTypeNameExistErr=工种名称已存在
|
||||
|
||||
@ -68,6 +68,7 @@ userNotExist=user does not exist
|
||||
appKeyNotExist=Appkey does not exist
|
||||
videoTypeEnableErr=The video type is not enabled
|
||||
serialNumberExistErr=Device serial number already exists
|
||||
serialNumberAndCodeExistErr=The channel under the device serial number already exists
|
||||
keyAndSecretMatchErr=Appkey and appsecret do not match
|
||||
closeClientErr=Please turn off terminal binding in fluorite client
|
||||
workerTypeNameExistErr=Job name already exists
|
||||
|
||||
@ -68,6 +68,7 @@ userNotExist=用户不存在
|
||||
appKeyNotExist=appKey不存在
|
||||
videoTypeEnableErr=该视频类型未启用
|
||||
serialNumberExistErr=设备序列号已存在
|
||||
serialNumberAndCodeExistErr=设备序列号下通道已存在
|
||||
keyAndSecretMatchErr=appkey和appSecret不匹配
|
||||
closeClientErr=请在萤石客户端关闭终端绑定
|
||||
workerTypeNameExistErr=工种名称已存在
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user