| | |
| | | } |
| | | |
| | | @Override |
| | | public Results getAll(String usersId) { |
| | | //public Results List<Map<String,Object>> getAll(String usersId) { |
| | | public List<Map<String,Object>> getAll(String usersId) { |
| | | ArdSyUser ardSyUser = ardSyUserMapper.userById(usersId); |
| | | if(ardSyUser == null){ |
| | | /*if(ardSyUser == null){ |
| | | return Results.error("没有挂接三一车辆用户"); |
| | | } |
| | | }*/ |
| | | List<SysConfig> syURLResult = sysConfigMapper.selectByType("syCarPT"); |
| | | String syURL = ""; |
| | | if(syURLResult.size() != 0){ |
| | | syURL = syURLResult.get(0).getConfigValue(); |
| | | }else{ |
| | | }/*else{ |
| | | return Results.error("三一车辆地址未录入"); |
| | | } |
| | | }*/ |
| | | String passwordMd5 = DigestUtils.md5Hex(ardSyUser.getPassword()); |
| | | Map<String, Object> LogInResult = sYClient.logIn(syURL, passwordMd5, ardSyUser.getUserId()); |
| | | String sessionId = (String) LogInResult.get("sessionId"); |
| | |
| | | } |
| | | } |
| | | } |
| | | return Results.succeed(result0); |
| | | //return Results.succeed(result0); |
| | | return result0; |
| | | } |
| | | } |