|
@@ -139,7 +139,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
BaseDeviceDynamicManagement deviceDynamicManagement = baseDeviceDynamicManagementService.getOne(new LambdaQueryWrapper<BaseDeviceDynamicManagement>()
|
|
BaseDeviceDynamicManagement deviceDynamicManagement = baseDeviceDynamicManagementService.getOne(new LambdaQueryWrapper<BaseDeviceDynamicManagement>()
|
|
.eq(BaseDeviceDynamicManagement::getCameraCode, cameraCode));
|
|
.eq(BaseDeviceDynamicManagement::getCameraCode, cameraCode));
|
|
baseCameraManagement.setIsDisable(deviceDynamicManagement.getIsDisable());
|
|
baseCameraManagement.setIsDisable(deviceDynamicManagement.getIsDisable());
|
|
- baseCameraManagement.setElectricity(deviceDynamicManagement.getElectricity()+"%");
|
|
|
|
|
|
+ baseCameraManagement.setElectricity(deviceDynamicManagement.getElectricity() + "%");
|
|
List<MqLog> list = mqLogService.list(new LambdaQueryWrapper<MqLog>()
|
|
List<MqLog> list = mqLogService.list(new LambdaQueryWrapper<MqLog>()
|
|
.eq(MqLog::getCameraCode, cameraCode));
|
|
.eq(MqLog::getCameraCode, cameraCode));
|
|
if (!ObjectUtils.isEmpty(list)) {
|
|
if (!ObjectUtils.isEmpty(list)) {
|
|
@@ -190,7 +190,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
BaseDeviceDynamicManagement deviceDynamicManagement = baseDeviceDynamicManagementService.getOne(new LambdaQueryWrapper<BaseDeviceDynamicManagement>()
|
|
BaseDeviceDynamicManagement deviceDynamicManagement = baseDeviceDynamicManagementService.getOne(new LambdaQueryWrapper<BaseDeviceDynamicManagement>()
|
|
.eq(BaseDeviceDynamicManagement::getCameraCode, cameraCode));
|
|
.eq(BaseDeviceDynamicManagement::getCameraCode, cameraCode));
|
|
msgAlarmResp.setIsDisable(deviceDynamicManagement.getIsDisable());
|
|
msgAlarmResp.setIsDisable(deviceDynamicManagement.getIsDisable());
|
|
- msgAlarmResp.setElectricity(deviceDynamicManagement.getElectricity()+"%");
|
|
|
|
|
|
+ msgAlarmResp.setElectricity(deviceDynamicManagement.getElectricity() + "%");
|
|
List<MqLog> list = mqLogService.list(new LambdaQueryWrapper<MqLog>()
|
|
List<MqLog> list = mqLogService.list(new LambdaQueryWrapper<MqLog>()
|
|
.eq(MqLog::getCameraCode, cameraCode));
|
|
.eq(MqLog::getCameraCode, cameraCode));
|
|
if (!ObjectUtils.isEmpty(list)) {
|
|
if (!ObjectUtils.isEmpty(list)) {
|
|
@@ -395,7 +395,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
BigDecimal begin = new BigDecimal(baseCameraManagement.getBeginMiles());
|
|
BigDecimal begin = new BigDecimal(baseCameraManagement.getBeginMiles());
|
|
baseCameraManagement.setBeginMile(begin.multiply(BigDecimal.valueOf(1000)).intValue());
|
|
baseCameraManagement.setBeginMile(begin.multiply(BigDecimal.valueOf(1000)).intValue());
|
|
}
|
|
}
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
baseCameraManagement.setBeginMile(null);
|
|
baseCameraManagement.setBeginMile(null);
|
|
}
|
|
}
|
|
if (!baseCameraManagement.getInstallMiles().matches(PATTERN)) {
|
|
if (!baseCameraManagement.getInstallMiles().matches(PATTERN)) {
|
|
@@ -411,7 +411,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
BigDecimal end = new BigDecimal(baseCameraManagement.getEndMiles());
|
|
BigDecimal end = new BigDecimal(baseCameraManagement.getEndMiles());
|
|
baseCameraManagement.setEndMile(end.multiply(BigDecimal.valueOf(1000)).intValue());
|
|
baseCameraManagement.setEndMile(end.multiply(BigDecimal.valueOf(1000)).intValue());
|
|
}
|
|
}
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
baseCameraManagement.setEndMile(null);
|
|
baseCameraManagement.setEndMile(null);
|
|
}
|
|
}
|
|
BaseCameraManagement management = baseCameraManagementService.getById(baseCameraManagement.getId());
|
|
BaseCameraManagement management = baseCameraManagementService.getById(baseCameraManagement.getId());
|
|
@@ -428,8 +428,8 @@ public class BaseCameraManagementController extends BaseController {
|
|
}
|
|
}
|
|
one.setCameraCode(baseCameraManagement.getCameraCode());
|
|
one.setCameraCode(baseCameraManagement.getCameraCode());
|
|
LambdaUpdateWrapper<BaseCameraManagement> wrapper = new LambdaUpdateWrapper<>();
|
|
LambdaUpdateWrapper<BaseCameraManagement> wrapper = new LambdaUpdateWrapper<>();
|
|
- wrapper.eq(BaseCameraManagement::getId,baseCameraManagement.getId());
|
|
|
|
- if (baseCameraManagementService.update(baseCameraManagement,wrapper) && baseDeviceDynamicManagementService.updateById(one)) {
|
|
|
|
|
|
+ wrapper.eq(BaseCameraManagement::getId, baseCameraManagement.getId());
|
|
|
|
+ if (baseCameraManagementService.update(baseCameraManagement, wrapper) && baseDeviceDynamicManagementService.updateById(one)) {
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
}
|
|
}
|
|
return AjaxResult.error();
|
|
return AjaxResult.error();
|
|
@@ -554,19 +554,19 @@ public class BaseCameraManagementController extends BaseController {
|
|
ExcelUtil<BaseCameraManagementVos> util = new ExcelUtil<BaseCameraManagementVos>(BaseCameraManagementVos.class);
|
|
ExcelUtil<BaseCameraManagementVos> util = new ExcelUtil<BaseCameraManagementVos>(BaseCameraManagementVos.class);
|
|
ExcelUtil<String> utils = new ExcelUtil<String>(String.class);
|
|
ExcelUtil<String> utils = new ExcelUtil<String>(String.class);
|
|
InputStream resourceAsStream = this.getClass().getResourceAsStream("/template/baseCameraManagement.xlsx");
|
|
InputStream resourceAsStream = this.getClass().getResourceAsStream("/template/baseCameraManagement.xlsx");
|
|
- List<String> accountManage = utils.importExcels(StringUtils.EMPTY, file.getInputStream(),0);
|
|
|
|
- List<String> accountManageLists = utils.importExcels(StringUtils.EMPTY, resourceAsStream,0);
|
|
|
|
|
|
+ List<String> accountManage = utils.importExcels(StringUtils.EMPTY, file.getInputStream(), 0);
|
|
|
|
+ List<String> accountManageLists = utils.importExcels(StringUtils.EMPTY, resourceAsStream, 0);
|
|
boolean stats = accountManage.stream().sorted().collect(Collectors.joining())
|
|
boolean stats = accountManage.stream().sorted().collect(Collectors.joining())
|
|
.equals(accountManageLists.stream().sorted().collect(Collectors.joining()));
|
|
.equals(accountManageLists.stream().sorted().collect(Collectors.joining()));
|
|
if (stats) {
|
|
if (stats) {
|
|
- accountManageList = util.importExcel(file.getInputStream());
|
|
|
|
- }else {
|
|
|
|
|
|
+ accountManageList = util.importExcel(file.getInputStream());
|
|
|
|
+ } else {
|
|
return AjaxResult.error("表头格式不正确,请按照模板样式编写");
|
|
return AjaxResult.error("表头格式不正确,请按照模板样式编写");
|
|
}
|
|
}
|
|
String message = baseCameraManagementService.importBaseAccountManagement(accountManageList, updateSupport, getUserId());
|
|
String message = baseCameraManagementService.importBaseAccountManagement(accountManageList, updateSupport, getUserId());
|
|
return AjaxResult.success(message);
|
|
return AjaxResult.success(message);
|
|
} catch (Exception exception) {
|
|
} catch (Exception exception) {
|
|
- return AjaxResult.error(exception.getMessage());
|
|
|
|
|
|
+ return AjaxResult.error(exception.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -682,7 +682,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
public AjaxResult apiRecordsList(@RequestBody
|
|
public AjaxResult apiRecordsList(@RequestBody
|
|
@NotNull(message = "相机编码不能为空")
|
|
@NotNull(message = "相机编码不能为空")
|
|
- List<String> cameraCodes) {
|
|
|
|
|
|
+ List<String> cameraCodes) {
|
|
List<String> list = new ArrayList<>();
|
|
List<String> list = new ArrayList<>();
|
|
for (String cameraCode : cameraCodes) {
|
|
for (String cameraCode : cameraCodes) {
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
@@ -761,7 +761,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
children.sort(new Comparator<CameraTree>() {
|
|
children.sort(new Comparator<CameraTree>() {
|
|
@Override
|
|
@Override
|
|
public int compare(CameraTree o1, CameraTree o2) {
|
|
public int compare(CameraTree o1, CameraTree o2) {
|
|
- if (!ObjectUtils.isEmpty(o1.getNumber())&& !ObjectUtils.isEmpty(o2.getNumber())) {
|
|
|
|
|
|
+ if (!ObjectUtils.isEmpty(o1.getNumber()) && !ObjectUtils.isEmpty(o2.getNumber())) {
|
|
int mileageDiff = o1.getNumber() - o2.getNumber();
|
|
int mileageDiff = o1.getNumber() - o2.getNumber();
|
|
if (mileageDiff == 0) {
|
|
if (mileageDiff == 0) {
|
|
String name1 = ChineseToPingyin.convertHanziToPinyin(o1.getRailwayName());
|
|
String name1 = ChineseToPingyin.convertHanziToPinyin(o1.getRailwayName());
|
|
@@ -772,7 +772,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
} else {
|
|
} else {
|
|
return mileageDiff;
|
|
return mileageDiff;
|
|
}
|
|
}
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
String name1 = ChineseToPingyin.convertHanziToPinyin(o1.getRailwayName());
|
|
String name1 = ChineseToPingyin.convertHanziToPinyin(o1.getRailwayName());
|
|
String substring1 = name1.substring(0, 1);
|
|
String substring1 = name1.substring(0, 1);
|
|
String name2 = ChineseToPingyin.convertHanziToPinyin(o2.getRailwayName());
|
|
String name2 = ChineseToPingyin.convertHanziToPinyin(o2.getRailwayName());
|
|
@@ -798,7 +798,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
cameraTreeList.sort(new Comparator<CameraTree>() {
|
|
cameraTreeList.sort(new Comparator<CameraTree>() {
|
|
@Override
|
|
@Override
|
|
public int compare(CameraTree o1, CameraTree o2) {
|
|
public int compare(CameraTree o1, CameraTree o2) {
|
|
- int mileageDiff = o1.getMileage() - o2.getMileage();
|
|
|
|
|
|
+ int mileageDiff = o1.getMileage() - o2.getMileage();
|
|
// 如果里程相同,则比较方向
|
|
// 如果里程相同,则比较方向
|
|
if (mileageDiff == 0) {
|
|
if (mileageDiff == 0) {
|
|
String[] split1 = o1.getName().split("-");
|
|
String[] split1 = o1.getName().split("-");
|
|
@@ -872,7 +872,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
return success();
|
|
return success();
|
|
}
|
|
}
|
|
return error();
|
|
return error();
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
return error("已自动开启录制,关闭按钮已失效");
|
|
return error("已自动开启录制,关闭按钮已失效");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -905,7 +905,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
} else {
|
|
} else {
|
|
return error("开启视频录制失败");
|
|
return error("开启视频录制失败");
|
|
}
|
|
}
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
return error("已自动开启录制,无需按钮再次开启录制");
|
|
return error("已自动开启录制,无需按钮再次开启录制");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -968,17 +968,17 @@ public class BaseCameraManagementController extends BaseController {
|
|
BeanUtils.copyProperties(baseCameraManagement, msgAlarmResp);
|
|
BeanUtils.copyProperties(baseCameraManagement, msgAlarmResp);
|
|
msgAlarmResp.setRailwayName(baseRailwayManagement.getRailwayName());
|
|
msgAlarmResp.setRailwayName(baseRailwayManagement.getRailwayName());
|
|
msgAlarmResp.setDeptId(baseCameraManagement.getDeptId());
|
|
msgAlarmResp.setDeptId(baseCameraManagement.getDeptId());
|
|
- if (!ObjectUtils.isEmpty(baseCameraManagement.getEndMile())&&!ObjectUtils.isEmpty(baseCameraManagement.getBeginMile())) {
|
|
|
|
|
|
+ if (!ObjectUtils.isEmpty(baseCameraManagement.getEndMile()) && !ObjectUtils.isEmpty(baseCameraManagement.getBeginMile())) {
|
|
String begin = AppendUtils.stringAppend(baseCameraManagement.getBeginMile());
|
|
String begin = AppendUtils.stringAppend(baseCameraManagement.getBeginMile());
|
|
String end = AppendUtils.stringAppend(baseCameraManagement.getEndMile());
|
|
String end = AppendUtils.stringAppend(baseCameraManagement.getEndMile());
|
|
- String endMile = begin + "~" + end ;
|
|
|
|
|
|
+ String endMile = begin + "~" + end;
|
|
msgAlarmResp.setBeginMile(endMile);
|
|
msgAlarmResp.setBeginMile(endMile);
|
|
}
|
|
}
|
|
String mile = AppendUtils.stringAppend(baseCameraManagement.getInstallMile());
|
|
String mile = AppendUtils.stringAppend(baseCameraManagement.getInstallMile());
|
|
msgAlarmResp.setAlarmMile(mile);
|
|
msgAlarmResp.setAlarmMile(mile);
|
|
- if (!ObjectUtils.isEmpty(baseCameraManagement.getInstallLongitude())&&!ObjectUtils.isEmpty(baseCameraManagement.getInstallLatitude())) {
|
|
|
|
|
|
+ if (!ObjectUtils.isEmpty(baseCameraManagement.getInstallLongitude()) && !ObjectUtils.isEmpty(baseCameraManagement.getInstallLatitude())) {
|
|
msgAlarmResp.setInstallLongitude(baseCameraManagement.getInstallLongitude() + "," + baseCameraManagement.getInstallLatitude());
|
|
msgAlarmResp.setInstallLongitude(baseCameraManagement.getInstallLongitude() + "," + baseCameraManagement.getInstallLatitude());
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
msgAlarmResp.setInstallLongitude(null);
|
|
msgAlarmResp.setInstallLongitude(null);
|
|
}
|
|
}
|
|
msgAlarmResp.setLineDir(baseCameraManagement.getLineDir());
|
|
msgAlarmResp.setLineDir(baseCameraManagement.getLineDir());
|
|
@@ -1004,9 +1004,9 @@ public class BaseCameraManagementController extends BaseController {
|
|
}
|
|
}
|
|
String recordUrl = CameraUtil.getRecordUrl(one.getCameraCode(), one.getChannel(), vo.getStartTime(), vo.getEntTime());
|
|
String recordUrl = CameraUtil.getRecordUrl(one.getCameraCode(), one.getChannel(), vo.getStartTime(), vo.getEntTime());
|
|
if (recordUrl.contains("当前相机暂无回放视频")) {
|
|
if (recordUrl.contains("当前相机暂无回放视频")) {
|
|
- return AjaxResult.error(recordUrl);
|
|
|
|
- }else {
|
|
|
|
- return AjaxResult.success("ok",recordUrl);
|
|
|
|
|
|
+ return AjaxResult.error(recordUrl);
|
|
|
|
+ } else {
|
|
|
|
+ return AjaxResult.success("ok", recordUrl);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1030,37 +1030,39 @@ public class BaseCameraManagementController extends BaseController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("/removePrice")
|
|
@GetMapping("/removePrice")
|
|
- public AjaxResult removePrice(@RequestParam("number") Integer number,@RequestParam("path") String path) {
|
|
|
|
|
|
+ public AjaxResult removePrice(@RequestParam("number") Integer number, @RequestParam("path") String path) {
|
|
log.info("-----------------------removePrice");
|
|
log.info("-----------------------removePrice");
|
|
- log.info("-----------------------removePrice"+"--number-----"+number);
|
|
|
|
- log.info("-----------------------removePrice"+"--path-----"+path);
|
|
|
|
- cameraUtil.removePrice(number,path);
|
|
|
|
|
|
+ log.info("-----------------------removePrice" + "--number-----" + number);
|
|
|
|
+ log.info("-----------------------removePrice" + "--path-----" + path);
|
|
|
|
+ cameraUtil.removePrice(number, path);
|
|
return success();
|
|
return success();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 夜视
|
|
* 夜视
|
|
|
|
+ *
|
|
* @param deviceStateResp
|
|
* @param deviceStateResp
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("/nightVision/{code}/{mode}")
|
|
@GetMapping("/nightVision/{code}/{mode}")
|
|
- public AjaxResult nightVision(@PathVariable String code,Integer mode){
|
|
|
|
|
|
+ public AjaxResult nightVision(@PathVariable String code, Integer mode) {
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
.eq(BaseCameraManagement::getCameraCode, code));
|
|
.eq(BaseCameraManagement::getCameraCode, code));
|
|
- PublishClient.configFrameRate(baseCameraManagement,mode);
|
|
|
|
|
|
+ PublishClient.configFrameRate(baseCameraManagement, mode);
|
|
return success();
|
|
return success();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 切换帧率
|
|
* 切换帧率
|
|
|
|
+ *
|
|
* @param code
|
|
* @param code
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("/switchFrameRate")
|
|
@GetMapping("/switchFrameRate")
|
|
- public AjaxResult switchFrameRate(@RequestParam("code") String code,@RequestParam("fps") String fps){
|
|
|
|
|
|
+ public AjaxResult switchFrameRate(@RequestParam("code") String code, @RequestParam("fps") String fps) {
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
.eq(BaseCameraManagement::getCameraCode, code));
|
|
.eq(BaseCameraManagement::getCameraCode, code));
|
|
- PublishClient.confidenceCoefficient(baseCameraManagement,fps);
|
|
|
|
|
|
+ PublishClient.confidenceCoefficient(baseCameraManagement, fps);
|
|
return success();
|
|
return success();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1115,15 +1117,16 @@ public class BaseCameraManagementController extends BaseController {
|
|
public AjaxResult getMalfunctionAndLowCameraManagement() {
|
|
public AjaxResult getMalfunctionAndLowCameraManagement() {
|
|
HashMap<String, Integer> map = new HashMap<>();
|
|
HashMap<String, Integer> map = new HashMap<>();
|
|
DeviceStateResp deviceStateResp1 = new DeviceStateResp();
|
|
DeviceStateResp deviceStateResp1 = new DeviceStateResp();
|
|
- DeviceStateResp deviceStateResp = (DeviceStateResp) dataScoreUtil.setDataScore(getUserId(),deviceStateResp1);
|
|
|
|
|
|
+ DeviceStateResp deviceStateResp = (DeviceStateResp) dataScoreUtil.setDataScore(getUserId(), deviceStateResp1);
|
|
List<DeviceStateResp> deviceStateRespList = baseCameraManagementService.deviceStateRespList(deviceStateResp);
|
|
List<DeviceStateResp> deviceStateRespList = baseCameraManagementService.deviceStateRespList(deviceStateResp);
|
|
- List<DeviceStateResp> isDisable = deviceStateRespList.stream().filter(f -> f.getIsDisable().equals("2")).collect(Collectors.toList());
|
|
|
|
|
|
+ log.info("getMalfunctionAndLowCameraManagement------------------------" + deviceStateRespList.toString());
|
|
|
|
+ List<DeviceStateResp> isDisable = deviceStateRespList.stream().filter(f -> f.getIsDisable().equals(2)).collect(Collectors.toList());
|
|
map.put("isDisable", isDisable.size());
|
|
map.put("isDisable", isDisable.size());
|
|
LambdaQueryWrapper<BaseDeviceDynamicManagement> queryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<BaseDeviceDynamicManagement> queryWrapper = new LambdaQueryWrapper<>();
|
|
- List<DeviceStateResp> electricity = deviceStateRespList.stream().filter(f -> f.getElectricity()<=10).collect(Collectors.toList());
|
|
|
|
|
|
+ List<DeviceStateResp> electricity = deviceStateRespList.stream().filter(f -> f.getElectricity() <= 10).collect(Collectors.toList());
|
|
map.put("electricity", electricity.size());
|
|
map.put("electricity", electricity.size());
|
|
map.put("count", isDisable.size() + electricity.size());
|
|
map.put("count", isDisable.size() + electricity.size());
|
|
- map.put("readCount", isDisable.size()+electricity.size());
|
|
|
|
|
|
+ map.put("readCount", isDisable.size() + electricity.size());
|
|
return AjaxResult.success(map);
|
|
return AjaxResult.success(map);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1146,24 +1149,28 @@ public class BaseCameraManagementController extends BaseController {
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 首页设备状态
|
|
* 首页设备状态
|
|
|
|
+ *
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("cameraStateTotal")
|
|
@GetMapping("cameraStateTotal")
|
|
public AjaxResult cameraStateTotal() {
|
|
public AjaxResult cameraStateTotal() {
|
|
- return baseCameraManagementService.cameraStateTotal();
|
|
|
|
|
|
+ BaseCameraManagementVo baseCameraManagementVo = new BaseCameraManagementVo();
|
|
|
|
+ BaseCameraManagementVo baseCameraManagementVos = (BaseCameraManagementVo) dataScoreUtil.setDataScore(getUserId(), baseCameraManagementVo);
|
|
|
|
+ return baseCameraManagementService.cameraStateTotal(baseCameraManagementVos);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 首页设备状态列表
|
|
* 首页设备状态列表
|
|
|
|
+ *
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("cameraStateList")
|
|
@GetMapping("cameraStateList")
|
|
public AjaxResult cameraStateList() {
|
|
public AjaxResult cameraStateList() {
|
|
- return baseCameraManagementService.cameraStateList();
|
|
|
|
|
|
+ BaseCameraManagementVo baseCameraManagementVo = new BaseCameraManagementVo();
|
|
|
|
+ BaseCameraManagementVo baseCameraManagementVos = (BaseCameraManagementVo) dataScoreUtil.setDataScore(getUserId(), baseCameraManagementVo);
|
|
|
|
+ return baseCameraManagementService.cameraStateList(baseCameraManagementVos);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|