| | |
| | | int lockId=0; |
| | | if(sinf!=null){ |
| | | stationId=sinf.getStationId(); |
| | | //根据锁名判断机房下是否存在同名锁 |
| | | QueryWrapper wrapper1=new QueryWrapper(); |
| | | wrapper1.eq("station_id",stationId); |
| | | wrapper1.eq("lock_name",lockInf.getLockName()); |
| | | wrapper1.last("limit 1"); |
| | | LockInf judgeLock=mapper.selectOne(wrapper1); |
| | | if (judgeLock!=null){ |
| | | return new Response().set(1,false,"当前机房下已经存在同名锁"); |
| | | } |
| | | //获取当前最大的锁 |
| | | lockId=getMaxLockId(stationId); |
| | | if(lockId==0){ |
| | |
| | | <if test="logDto.endTime!=null"> |
| | | and tb_lock_ctl_log.ctl_time<=#{logDto.endTime} |
| | | </if> |
| | | |
| | | and tb_lock_ctl_log.lock_id in( |
| | | select distinct lock_id from plus_user.tb_baojigroup_lock,plus_user.tb_baojigroup_usr |
| | | <where> |