|
@@ -14,6 +14,7 @@ import com.github.zuihou.business.externalApi.entity.AgvHikOrderDetailInfo;
|
|
|
import com.github.zuihou.business.externalApi.entity.AgvHikOrderInfo;
|
|
|
import com.github.zuihou.business.externalApi.service.AgvHikOrderDetailInfoService;
|
|
|
import com.github.zuihou.business.externalApi.service.AgvHikOrderInfoService;
|
|
|
+import com.github.zuihou.business.util.MsgUtil;
|
|
|
import com.github.zuihou.common.constant.BizConstant;
|
|
|
import com.github.zuihou.common.constant.CacheKey;
|
|
|
import com.github.zuihou.common.constant.ParameterKey;
|
|
@@ -57,6 +58,8 @@ public class AgvHikOrderInfoServiceImpl extends SuperCacheServiceImpl<AgvHikOrde
|
|
|
private RestTemplate restTemplate;
|
|
|
@Autowired
|
|
|
private AgvHikOrderDetailInfoService agvHikOrderDetailInfoService;
|
|
|
+ @Autowired
|
|
|
+ private MsgUtil msgUtil;
|
|
|
|
|
|
@Override
|
|
|
protected String getRegion() {
|
|
@@ -142,9 +145,8 @@ public class AgvHikOrderInfoServiceImpl extends SuperCacheServiceImpl<AgvHikOrde
|
|
|
jsonObject.put("taskCode",taskCode);
|
|
|
HttpEntity<String> addAgvTaskRequest = new HttpEntity<String>(jsonObject.toJSONString(), headers);
|
|
|
|
|
|
- String agvCallbackUrl = parameterService.getValue(ParameterKey.AGVCALLBACKURL, null);
|
|
|
-
|
|
|
-
|
|
|
+ String agvCallbackUrl = (null == msgUtil.redis_get(ParameterKey.PARAMETERS)? "": ((Map<String,String>)msgUtil.redis_get(ParameterKey.PARAMETERS)).get(ParameterKey.AGVCALLBACKURL).toString());
|
|
|
+// String agvCallbackUrl = parameterService.getValue(ParameterKey.AGVCALLBACKURL, null);
|
|
|
agvHikOrderDetailInfoService.asyncCallbackTask(jsonObject.toJSONString(),agvCallbackUrl);
|
|
|
// ResponseEntity<String> addAgvTaskEntity = restTemplate.postForEntity(addAgvTaskUrl, addAgvTaskRequest, String.class);
|
|
|
|