|
@@ -322,11 +322,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
baseCameraManagement.setEndMile(end.multiply(BigDecimal.valueOf(1000)).intValue());
|
|
|
}
|
|
|
}
|
|
|
- if (!ObjectUtils.isEmpty(baseCameraManagement.getEndMiles()) && !ObjectUtils.isEmpty(baseCameraManagement.getBeginMiles())) {
|
|
|
- if (baseCameraManagement.getBeginMile() > baseCameraManagement.getEndMile()) {
|
|
|
- return error("监控范围开始里程位置不能大于监控范围结束里程位置");
|
|
|
- }
|
|
|
- }
|
|
|
baseCameraManagement.setCreateBy(getUserId());
|
|
|
baseCameraManagement.setUpdateBy(getUserId());
|
|
|
BaseDeviceDynamicManagement baseDynamicManagement = new BaseDeviceDynamicManagement();
|
|
@@ -400,11 +395,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}else {
|
|
|
baseCameraManagement.setEndMile(null);
|
|
|
}
|
|
|
- if (!ObjectUtils.isEmpty(baseCameraManagement.getEndMiles())&&!ObjectUtils.isEmpty(baseCameraManagement.getBeginMiles())) {
|
|
|
- if (baseCameraManagement.getBeginMile() > baseCameraManagement.getEndMile()) {
|
|
|
- return error("监控范围开始里程位置不能大于监控范围结束里程位置");
|
|
|
- }
|
|
|
- }
|
|
|
BaseCameraManagement management = baseCameraManagementService.getById(baseCameraManagement.getId());
|
|
|
baseCameraManagement.setUpdateBy(getUserId());
|
|
|
baseCameraManagement.setCreateBy(management.getCreateBy());
|