| | |
| | | } |
| | | |
| | | /** |
| | | * 未完成订单列表接口 |
| | | * 根据区域ID集合+筛选条件(合同号、制单开始日期、制单结束日期、发货地、到货地、省份,非需要),返回合同列表信息,按照时间倒序展示; |
| | | * @param param 参数 |
| | | * @return TmsBaseResponse |
| | | */ |
| | | @Override |
| | | public TmsBasePageResponse<TmsOrderNoFinishListResponse> getNotFinishOrderList(TmsOrderNoFinishListRequest param){ |
| | | String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode() |
| | | +TMSContants.InterfacePath.getNotFinishOrderList[0]; |
| | | TmsBaseResponse<TmsBasePageResponse<TmsOrderNoFinishListResponse> > response = sendHttpRequest(url,TMSContants.InterfacePath.getNotFinishOrderList[1],JSONObject.toJSONString(param) |
| | | ,new TypeReference< TmsBaseResponse<TmsBasePageResponse<TmsOrderNoFinishListResponse>> >(){}); |
| | | if(response ==null || response.getData() == null){ |
| | | return new TmsBasePageResponse<>(); |
| | | } |
| | | return response.getData(); |
| | | |
| | | } |
| | | /** |
| | | * 合同列表接口 |
| | | * 根据区域ID集合+筛选条件(合同号、制单开始日期、制单结束日期、发货地、到货地、省份,非需要),返回合同列表信息,按照时间倒序展示; |
| | | * @param param 参数 |
| | |
| | | @Override |
| | | public List<TmsDistributionOfDeliveryLocResponse> getDistributionOfDeliveryLocations(TmsFacrotyCodeListRequest param){ |
| | | List<TmsDistributionOfDeliveryLocResponse> result = new ArrayList<>(); |
| | | if( param.getFacrotyCodeList() == null || param.getFacrotyCodeList().size() == 0){ |
| | | param.setFacrotyCodeList(new ArrayList<>()); |
| | | param.getFacrotyCodeList().add("0"); |
| | | } |
| | | // if( param.getFacrotyCodeList() == null || param.getFacrotyCodeList().size() == 0){ |
| | | // param.setFacrotyCodeList(new ArrayList<>()); |
| | | // param.getFacrotyCodeList().add("0"); |
| | | // } |
| | | String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode() |
| | | +TMSContants.InterfacePath.getDistributionOfDeliveryLocations[0]; |
| | | TmsBaseResponse< List<TmsDistributionOfDeliveryLocResponse>> response = sendHttpRequest(url,TMSContants.InterfacePath.getDistributionOfDeliveryLocations[1], |
| | |
| | | return result; |
| | | } |
| | | /** |
| | | * 近7日到货情况(含明细) |
| | | * @return TmsBaseResponse |
| | | */ |
| | | @Override |
| | | public List<TmsSevenArrivalStatusAndDetailsResponse> getSevenArrivalStatusAndDetails(TmsSevenArrivalDetailsRequest param ){ |
| | | List<TmsSevenArrivalStatusAndDetailsResponse> result = new ArrayList<>(); |
| | | String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode() |
| | | +TMSContants.InterfacePath.getSevenArrivalStatusAndDetails[0]; |
| | | TmsBaseResponse< List<TmsSevenArrivalStatusAndDetailsResponse>> response = sendHttpRequest(url,TMSContants.InterfacePath.getSevenArrivalStatusAndDetails[1] |
| | | ,JSONObject.toJSONString(param) |
| | | ,new TypeReference< TmsBaseResponse< List<TmsSevenArrivalStatusAndDetailsResponse>>>(){}); |
| | | if(response!=null && response.getData()!=null){ |
| | | result =response.getData(); |
| | | } |
| | | return result; |
| | | } |
| | | /** |
| | | * 指定时间范围内累计出库量 |
| | | * @return TmsBaseResponse |
| | | */ |
| | |
| | | return result; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 发起 tms接口请求 |
| | | * @param url |