| | |
| | | String sessionId = (String) LogInResult.get("sessionId"); |
| | | |
| | | String finalSyURL = syURL; |
| | | Thread passwordThread = new Thread(syURL){ |
| | | Thread passwordThread = new Thread(){ |
| | | @Override |
| | | public void run() { |
| | | List<ArdTankLock> ardTankLockResult = ardTankLockMapper.selectArdTankLockWithPassword(); |
| | |
| | | } |
| | | }; |
| | | //lockThread.start(); |
| | | PositionContainer.getCarLockProcessThreadMap().get(ardTankLock.getCarId()).get(ardTankLock.getLockNum()).put("lockPassword",lockThread); |
| | | if(PositionContainer.getCarLockProcessThreadMap().get(ardTankLock.getCarId()).get(ardTankLock.getLockNum()).get("lockPassword") == null){ |
| | | PositionContainer.getCarLockProcessThreadMap().get(ardTankLock.getCarId()).get(ardTankLock.getLockNum()).put("lockPassword",lockThread); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public int updateLockEnableByCarId(Map<String, Object> para) { |
| | | String carId = (String) para.get("carId"); |
| | | String enable = String.valueOf((Boolean) para.get("enable")); |
| | | int result = ardTankLockMapper.updateLockEnableByCarId(carId, enable); |
| | | return result; |
| | | } |
| | | |
| | | /*@Override |
| | | public void getAlarm(String syUserId,String syPassword) { |
| | | List<SysConfig> syURLResult = sysConfigMapper.selectByType("syCarPT"); |