Browse Source

代码修改

gao.qiang 1 year ago
parent
commit
af4aa32148

+ 2 - 1
hazard-admin/src/main/java/com/ozs/web/controller/accountmanagment/BaseCameraManagementController.java

@@ -375,9 +375,10 @@ public class BaseCameraManagementController extends BaseController {
         if (baseCameraManagement.getBeginMile() > baseCameraManagement.getEndMile()) {
             return error("监控范围开始里程位置不能大于监控范围结束里程位置");
         }
+        BaseCameraManagement management = baseCameraManagementService.getById(baseCameraManagement.getId());
         baseCameraManagement.setUpdateBy(getUserId());
+        baseCameraManagement.setCreateBy(management.getCreateBy());
         LambdaQueryWrapper<BaseDeviceDynamicManagement> queryWrapper = new LambdaQueryWrapper<BaseDeviceDynamicManagement>();
-        BaseCameraManagement management = baseCameraManagementService.getById(baseCameraManagement.getId());
         if (!ObjectUtils.isEmpty(management.getCameraCode())) {
             queryWrapper.eq(BaseDeviceDynamicManagement::getCameraCode, management.getCameraCode());
         }