|
|
@@ -18,6 +18,7 @@ import com.xunmei.common.core.utils.JacksonUtils;
|
|
|
import com.xunmei.mediator.api.host.service.IIotDeviceService;
|
|
|
import com.xunmei.mediator.api.host.service.IIotDvrChannelService;
|
|
|
import com.xunmei.mediator.api.north.service.NorthErrorService;
|
|
|
+import com.xunmei.mediator.api.server.service.IotServerInfoService;
|
|
|
import com.xunmei.mediator.api.video.mapper.VideoIntegrityCheckMapper;
|
|
|
import com.xunmei.mediator.api.video.service.IVideoDaysCheckService;
|
|
|
import com.xunmei.mediator.api.video.service.IVideoIntegrityCheckService;
|
|
|
@@ -76,6 +77,9 @@ public class VideoIntegrityCheckServiceImpl extends ServiceImpl<VideoIntegrityCh
|
|
|
@Resource
|
|
|
IIotDvrChannelService dvrChannelService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ IotServerInfoService iotServerInfoService;
|
|
|
+
|
|
|
@Override
|
|
|
public String routerKey() {
|
|
|
StringJoiner result = new StringJoiner(",");
|
|
|
@@ -86,6 +90,8 @@ public class VideoIntegrityCheckServiceImpl extends ServiceImpl<VideoIntegrityCh
|
|
|
@Override
|
|
|
public Object execute(WebsocketExecuteReq req) {
|
|
|
VideoIntegrityCheckDto checkDto = transform(req.getData());
|
|
|
+ SysOrg sysOrg = iotServerInfoService.selectOrgByToken(req.getToken());
|
|
|
+ checkDto.setOrganizationGuid(sysOrg.getCode());
|
|
|
this.saveData(checkDto,"");
|
|
|
return "";
|
|
|
}
|
|
|
@@ -105,11 +111,10 @@ public class VideoIntegrityCheckServiceImpl extends ServiceImpl<VideoIntegrityCh
|
|
|
|
|
|
@Override
|
|
|
public VideoIntegrityCheckDto transform(Object data) {
|
|
|
- VideoIntegrityCheckReq req = JSON.parseObject(JSON.toJSONString(data), VideoIntegrityCheckReq.class);
|
|
|
+ VideoIntegrityCheckReq req = (VideoIntegrityCheckReq)data;
|
|
|
VideoIntegrityCheckDto dst = new VideoIntegrityCheckDto();
|
|
|
dst.setEquipmentCode(req.getDvsCode());
|
|
|
dst.setChannelCode(req.getIndex());
|
|
|
- dst.setEquipmentCode(req.getDvsCode());
|
|
|
dst.setRecordDate(req.getRecordDate());
|
|
|
dst.setLoseSpan(req.getLoseSpan());
|
|
|
dst.setCheckSpan(req.getCheckSpan());
|