Commit 7b40993d by zhiheng.zhang

门店返回对象不能为空

parent b1cabb08
...@@ -932,10 +932,10 @@ public class OrderServiceImpl implements Orderservice { ...@@ -932,10 +932,10 @@ public class OrderServiceImpl implements Orderservice {
Integer totalSumTime = 0; Integer totalSumTime = 0;
String progress = "0" ; //进度 String progress = "0" ; //进度
Integer orderProgressBarStatus = 2; Integer orderProgressBarStatus = 2;
if(null != storeResponseDto){ try{
String configurationStr = storeResponseDto.getConfiguration(); if(null != storeResponseDto){
if(StringUtils.isNotEmpty(configurationStr)) { String configurationStr = storeResponseDto.getConfiguration();
try{ if(StringUtils.isNotEmpty(configurationStr)) {
StoreResponse.Configuration configuration = JSONObject.parseObject(configurationStr).toJavaObject(StoreResponse.Configuration.class); StoreResponse.Configuration configuration = JSONObject.parseObject(configurationStr).toJavaObject(StoreResponse.Configuration.class);
if (null != configuration) { if (null != configuration) {
orderProgressBarStatus = configuration.getOrderProgressBarStatus(); orderProgressBarStatus = configuration.getOrderProgressBarStatus();
...@@ -978,10 +978,10 @@ public class OrderServiceImpl implements Orderservice { ...@@ -978,10 +978,10 @@ public class OrderServiceImpl implements Orderservice {
} }
} }
} }
}catch (Exception e){
log.error("get returnWords error :{},StoreResponse.Configuration:{}", e.getMessage(), configurationStr);
} }
} }
}catch (Exception e){
log.error("get returnWords error :{},storeResponseDto:{}", e.getMessage(), JSONObject.toJSON(storeResponseDto));
} }
orderBean.setProgress(String.valueOf(progress)); orderBean.setProgress(String.valueOf(progress));
orderBean.setReturnWords(returnWords); orderBean.setReturnWords(returnWords);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment