whyclxw
2025-04-24 60baa6e8904bf8ecfac0a0abbc3050ea21b92b25
锁改IP
1个文件已修改
8 ■■■■■ 已修改文件
src/main/java/com/whyc/service/LockInfService.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/LockInfService.java
@@ -128,6 +128,7 @@
        linf.setLastUpdateTime(new Date());
        linf.setModel(0);
        linf.setLockOpenCount(0);
        linf.setLockIp(lockInf.getLockIp());
        int flag=mapper.insert(linf);
        if(flag==1){//添加成功(包机组操作)
            insertInbaoji(stationId,lockId);
@@ -235,6 +236,7 @@
        if(lockInf.getScreenFlag()!=null){
            wrapper.set("screen_flag",lockInf.getScreenFlag());
        }
        if(lockInf.getLongitude()!=null){
            wrapper.set("longitude",lockInf.getLongitude());
        }
@@ -242,6 +244,12 @@
            wrapper.set("latitude",lockInf.getLatitude());
        }
        mapper.update((LockInf) ActionUtil.objeNull,wrapper);
        if(lockInf.getLockIp()!=null){
            UpdateWrapper wrapper1=new UpdateWrapper();
            wrapper1.set("lock_ip",lockInf.getLockIp());
            wrapper1.eq("lock_id",lockInf.getLockId());
            mapper.update((LockInf) ActionUtil.objeNull,wrapper1);
        }
        return new Response().set(1,true);
    }