| | |
| | | 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); |
| | |
| | | if(lockInf.getScreenFlag()!=null){ |
| | | wrapper.set("screen_flag",lockInf.getScreenFlag()); |
| | | } |
| | | |
| | | if(lockInf.getLongitude()!=null){ |
| | | wrapper.set("longitude",lockInf.getLongitude()); |
| | | } |
| | |
| | | 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); |
| | | } |
| | | |