| | |
| | | import com.ruoyi.common.core.domain.entity.SysConfig; |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | | import com.ruoyi.sy.domain.ArdSyUser; |
| | | import com.ruoyi.sy.domain.ArdTankLockState; |
| | | import com.ruoyi.sy.mapper.ArdSyUserMapper; |
| | | import com.ruoyi.sy.mapper.ArdTankWallLockMapper; |
| | | import com.ruoyi.sy.mapper.ArdTankWallLockTemporaryMapper; |
| | |
| | | }else{ |
| | | map.put("onlineTime",ardTankLock.getOnlineTime()); |
| | | } |
| | | if(ardTankLock.getArdTankLockState() != null){//电磁锁状态 |
| | | map.put("ardTankLockState",ardTankLock.getArdTankLockState()); |
| | | }else{ |
| | | ArdTankLockState ardTankLockState = new ArdTankLockState(); |
| | | ardTankLockState.setId(""); |
| | | ardTankLockState.setLockId(""); |
| | | ardTankLockState.setLockNum(""); |
| | | ardTankLockState.setLockState(""); |
| | | ardTankLockState.setLockPositionState(""); |
| | | ardTankLockState.setLockShellState(""); |
| | | ardTankLockState.setRestartState(""); |
| | | ardTankLockState.setBatterVoltage(""); |
| | | ardTankLockState.setPowerVoltage(""); |
| | | ardTankLockState.setUploadTime(""); |
| | | ardTankLockState.setUniqueMark(""); |
| | | ardTankLockState.setLockStateMark(false); |
| | | map.put("ardTankLockState",ardTankLockState); |
| | | } |
| | | Map<String,Object> carMap = ((List<Map<String,Object>>)syResult.get("list")).get(0); |
| | | map.put("carPlate",carMap.get("carPlate")); |
| | | result.add(map); |
| | |
| | | List<ArdTankLock> result = ardTankLockMapper.getAll(); |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public void sendLockState(String userId, String syUserId, String syPassword) { |
| | | |
| | | |
| | | |
| | | /*List<SysConfig> syURLResult = sysConfigMapper.selectByType("syCarPT"); |
| | | String syURL = ""; |
| | | if(syURLResult.size() != 0){ |
| | | syURL = syURLResult.get(0).getConfigValue(); |
| | | }else{ |
| | | return; |
| | | } |
| | | String passwordMd5 = DigestUtils.md5Hex(syPassword); |
| | | Map<String, Object> LogInResult = sYClient.logIn(syURL, passwordMd5, syUserId); |
| | | String sessionId = (String) LogInResult.get("sessionId"); |
| | | List<ArdTankLock> ardTankLockList = ardTankLockMapper.getLockByCarId(carId); |
| | | Map<String,Object> syResult = sYClient.getCarNearPositionByCarId(syURL, carId, ardSyUser.getUserId(), sessionId);*/ |
| | | } |
| | | } |