|
@@ -96,8 +96,6 @@ public class MsgAlarmController extends BaseController {
|
|
private BaseUserService baseUserService;
|
|
private BaseUserService baseUserService;
|
|
@Autowired
|
|
@Autowired
|
|
private ISysDeptService deptService;
|
|
private ISysDeptService deptService;
|
|
- @Autowired
|
|
|
|
- private BaseCameraVersionMapper baseCameraVersionMapper;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* web更多消息-总数,已读数
|
|
* web更多消息-总数,已读数
|
|
@@ -480,15 +478,14 @@ public class MsgAlarmController extends BaseController {
|
|
msgAlarmResp.setAlarmAttrName(stringBuilder);
|
|
msgAlarmResp.setAlarmAttrName(stringBuilder);
|
|
msgAlarmResp.setCardNum(baseCameraManagement.getCardNum());
|
|
msgAlarmResp.setCardNum(baseCameraManagement.getCardNum());
|
|
msgAlarmResp.setCameraSn(baseCameraManagement.getCameraSn());
|
|
msgAlarmResp.setCameraSn(baseCameraManagement.getCameraSn());
|
|
- BaseCameraVersion baseCameraVersion = baseCameraVersionMapper.selectById(baseCameraManagement.getId());
|
|
|
|
- if (!ObjectUtils.isEmpty(baseCameraVersion)) {
|
|
|
|
- if (!StringUtils.isEmpty(baseCameraVersion.getVersionName())) {
|
|
|
|
- msgAlarmResp.setVersionName(baseCameraVersion.getVersionName());
|
|
|
|
|
|
+ if (!ObjectUtils.isEmpty(baseCameraManagement)) {
|
|
|
|
+ if (!StringUtils.isEmpty(baseCameraManagement.getVersionName())) {
|
|
|
|
+ msgAlarmResp.setVersionName(baseCameraManagement.getVersionName());
|
|
}else {
|
|
}else {
|
|
msgAlarmResp.setVersionName(" ");
|
|
msgAlarmResp.setVersionName(" ");
|
|
}
|
|
}
|
|
- if (!StringUtils.isEmpty(baseCameraVersion.getVersionNum())) {
|
|
|
|
- msgAlarmResp.setVersionNum(baseCameraVersion.getVersionNum());
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(baseCameraManagement.getVersionNum())) {
|
|
|
|
+ msgAlarmResp.setVersionNum(baseCameraManagement.getVersionNum());
|
|
}else {
|
|
}else {
|
|
msgAlarmResp.setVersionNum(" ");
|
|
msgAlarmResp.setVersionNum(" ");
|
|
}
|
|
}
|