From 7666113e060747cce6be99e0deb68485b4283161 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期一, 20 十月 2025 10:38:41 +0800
Subject: [PATCH] 钥匙柜 电信大屏 配置文件
---
server/system_service/src/main/java/com/doumee/service/business/impl/third/TmsServiceImpl.java | 47 ++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 40 insertions(+), 7 deletions(-)
diff --git a/server/system_service/src/main/java/com/doumee/service/business/impl/third/TmsServiceImpl.java b/server/system_service/src/main/java/com/doumee/service/business/impl/third/TmsServiceImpl.java
index f12f323..c4a95c9 100644
--- a/server/system_service/src/main/java/com/doumee/service/business/impl/third/TmsServiceImpl.java
+++ b/server/system_service/src/main/java/com/doumee/service/business/impl/third/TmsServiceImpl.java
@@ -30,7 +30,6 @@
@Service
@Slf4j
public class TmsServiceImpl implements TmsService {
-
@Autowired
private SystemDictDataBiz systemDictDataBiz;
@Autowired
@@ -47,12 +46,10 @@
public TmsBaseResponse<List<TmsLockStatusQueryResponse>> lockStatusQuery(TmsLockStatusQueryRequest param){
String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode()
+ TMSContants.InterfacePath.getElecByContractNumberList[0];
-
TmsBaseResponse<List<TmsLockStatusQueryResponse>> response = sendHttpRequest(url,TMSContants.InterfacePath.getElecByContractNumberList[1],JSONObject.toJSONString(param)
,new TypeReference< TmsBaseResponse<List<TmsLockStatusQueryResponse>>>(){});
return response;
}
-
/**
* 杩愯緭鍗昰is杞ㄨ抗
* 鏍规嵁鍖哄煙ID闆嗗悎+绛涢�夋潯浠讹紙鍚堝悓鍙枫�佸埗鍗曞紑濮嬫棩鏈熴�佸埗鍗曠粨鏉熸棩鏈熴�佸彂璐у湴銆佸埌璐у湴銆佺渷浠斤紝闈為渶瑕侊級锛岃繑鍥炲悎鍚屽垪琛ㄤ俊鎭紝鎸夌収鏃堕棿鍊掑簭灞曠ず锛�
@@ -288,12 +285,12 @@
public TmsEmployeeListResponse getEmployeeList(TmsEmployeeListRequest param){
String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode()
+TMSContants.InterfacePath.getEmployeeList[0];
- TmsBaseResponse<TmsEmployeeListResponse > response = sendHttpRequest(url,TMSContants.InterfacePath.getEmployeeList[1],JSONObject.toJSONString(param)
- ,new TypeReference< TmsBaseResponse<TmsEmployeeListResponse>>(){});
- if(response ==null || response.getData() == null){
+ TmsBaseResponse<List<TmsEmployeeListResponse>> response = sendHttpRequest(url,TMSContants.InterfacePath.getEmployeeList[1],JSONObject.toJSONString(param)
+ ,new TypeReference< TmsBaseResponse<List<TmsEmployeeListResponse>>>(){});
+ if(response ==null || response.getData() == null || response.getData().size() ==0){
return new TmsEmployeeListResponse();
}
- return response.getData();
+ return response.getData().get(0);
}
/**
* 鍑哄簱鑳藉姏缁熻
@@ -309,6 +306,22 @@
,new TypeReference< TmsBaseResponse<TmsOutboundCapabilityResponse>>(){});
if(response ==null || response.getData() == null){
return new TmsOutboundCapabilityResponse();
+ }
+ return response.getData();
+ }
+ /**
+ * 鍑哄簱鑳藉姏姹囨�绘帴鍙�
+ * @param param 鍙傛暟
+ * @return TmsBaseResponse
+ */
+ @Override
+ public TmsGetOutCapabilityResponse getOutCapacity(TmsFacrotyCodeListRequest param){
+ String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode()
+ +TMSContants.InterfacePath.getOutCapacity[0];
+ TmsBaseResponse<TmsGetOutCapabilityResponse > response = sendHttpRequest(url,TMSContants.InterfacePath.getOutboundCapability[1],JSONObject.toJSONString(param)
+ ,new TypeReference< TmsBaseResponse<TmsGetOutCapabilityResponse>>(){});
+ if(response ==null || response.getData() == null){
+ return new TmsGetOutCapabilityResponse();
}
return response.getData();
}
@@ -357,8 +370,28 @@
TmsCircleStatusListRequest p1 = new TmsCircleStatusListRequest();
p1.setContractNumber(param.getContractNumber());
result.setCicleStatusList(getCicleStatusList(p1));
+ result.setStartTransportDate(getStartTransportDateByList(result.getCicleStatusList()));
return result;
}
+
+ private String getStartTransportDateByList(List<TmsCircleStatusResultListResponse> cicleStatusList) {
+ if(cicleStatusList!=null){
+ for(TmsCircleStatusResultListResponse m :cicleStatusList){
+ if(Constants.equalsInteger(m.getKey(),TMSContants.TopStatusLevel.clysz.getKey())){
+ if(m.getSecondList()!=null){
+ for(TmsCircleStatusListResponse c :m.getSecondList()){
+ if(Constants.equalsInteger(c.getOrderStatus(),TMSContants.ChildStatusLevel.clqdapp.getOrderStatus())){
+ return c.getRecordDate();
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return null;
+ }
+
/**
* 鍏ㄥ浗鍒拌揣鍦板垎甯冩煡璇㈡煡璇�
* @param param 鍙傛暟
--
Gitblit v1.9.3