瀏覽代碼

新增相机时去掉开始里程和结束里程的大小判断

gao.qiang 1 年之前
父節點
當前提交
5e486e9c6f

+ 0 - 5
hazard-admin/src/main/java/com/ozs/web/controller/accountmanagment/BaseCameraManagementController.java

@@ -395,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());