| | |
| | | * @return TmsBaseResponse |
| | | */ |
| | | @Override |
| | | public List<TmsOrderNoFinishListResponse> getNotFinishOrderList(TmsFacrotyCodeListRequest param){ |
| | | public TmsBasePageResponse<TmsOrderNoFinishListResponse> getNotFinishOrderList(TmsOrderNoFinishListRequest param){ |
| | | String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode() |
| | | +TMSContants.InterfacePath.getNotFinishOrderList[0]; |
| | | TmsBaseResponse<List<TmsOrderNoFinishListResponse> > response = sendHttpRequest(url,TMSContants.InterfacePath.getNotFinishOrderList[1],JSONObject.toJSONString(param) |
| | | ,new TypeReference< TmsBaseResponse<List<TmsOrderNoFinishListResponse>> >(){}); |
| | | 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 ArrayList<>(); |
| | | return new TmsBasePageResponse<>(); |
| | | } |
| | | return response.getData(); |
| | | |
| | | } |
| | | /** |
| | | * 出库能力统计 |
| | | * 查询某个厂/全部厂的今日计划量、今日出库量、今日未出库量数据。 |
| | | * @param param 参数 |
| | | * @return TmsBaseResponse |
| | | */ |
| | | @Override |
| | | public TmsOutboundCapabilityResponse getOutboundCapability(TmsFacrotyCodeListRequest param){ |
| | | String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode() |
| | | +TMSContants.InterfacePath.getOutboundCapability[0]; |
| | | TmsBaseResponse<TmsOutboundCapabilityResponse > response = sendHttpRequest(url,TMSContants.InterfacePath.getOutboundCapability[1],JSONObject.toJSONString(param) |
| | | ,new TypeReference< TmsBaseResponse<TmsOutboundCapabilityResponse>>(){}); |
| | | if(response ==null || response.getData() == null){ |
| | | return new TmsOutboundCapabilityResponse(); |
| | | } |
| | | return response.getData(); |
| | | } |
| | | /** |
| | | * 合同列表接口 |
| | | * 根据区域ID集合+筛选条件(合同号、制单开始日期、制单结束日期、发货地、到货地、省份,非需要),返回合同列表信息,按照时间倒序展示; |
| | | * @param param 参数 |