| | |
| | | url = "http://10.163.4.56:8088"+TMSContants.InterfacePath.driverStart[0]; |
| | | TmsBaseResponse<TmsDriveTaskInfoResponse > response = sendHttpRequest(url,TMSContants.InterfacePath.driverStart[1],JSONObject.toJSONString(param) |
| | | ,new TypeReference< TmsBaseResponse<TmsDriveTaskInfoResponse>>(){}); |
| | | if(response ==null || response.getData() == null || !StringUtils.equals(response.getCode(),"0")){ |
| | | if(response ==null || !StringUtils.equals(response.getCode(),"0")){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对不起,任务到货提交失败,请稍后重试!"); |
| | | } |
| | | return true; |
| | |
| | | url = "http://10.163.4.56:8088"+TMSContants.InterfacePath.driverArrival[0]; |
| | | TmsBaseResponse<TmsDriveTaskInfoResponse > response = sendHttpRequest(url,TMSContants.InterfacePath.driverArrival[1],JSONObject.toJSONString(param) |
| | | ,new TypeReference< TmsBaseResponse<TmsDriveTaskInfoResponse>>(){}); |
| | | if(response ==null || response.getData() == null ||!StringUtils.equals(response.getCode(),"0")){ |
| | | if(response ==null ||!StringUtils.equals(response.getCode(),"0")){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对不起,任务到货提交失败,请稍后重试!"); |
| | | } |
| | | return true; |