Commit ff6954b2 by wangnb

manager服务字典数据远程调用--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@30412 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 648c5b0a
...@@ -87,7 +87,7 @@ public class OrderStatusController { ...@@ -87,7 +87,7 @@ public class OrderStatusController {
//打卡原因 //打卡原因
if(StringUtils.isNotEmpty(item.getReason())){ if(StringUtils.isNotEmpty(item.getReason())){
R result = dataClient.getListByDataKey(item.getReason()); R result = dataClient.getListByDataKey(item.getReason());
log.info("远程请求getListByDataKey接口返回结果:{}", JSON.toJSONString(result)); log.info("Reason请求getListByDataKey接口返回结果:{}", JSON.toJSONString(result));
if(result.getCode() == ResultCodeEnum.SUCCESS.getCode() if(result.getCode() == ResultCodeEnum.SUCCESS.getCode()
&& result.getData() != null){ && result.getData() != null){
String data = JSON.toJSONString(result.getData()); String data = JSON.toJSONString(result.getData());
...@@ -95,6 +95,18 @@ public class OrderStatusController { ...@@ -95,6 +95,18 @@ public class OrderStatusController {
resp.setReason(dataResp.getDataValue()); resp.setReason(dataResp.getDataValue());
} }
} }
//已上门
if(item.getActiveStatus() == OrderActiveStatusEnum.ORDER_PROGRESS_DROP_IN.getActiveStatus()
&& StringUtils.isNotEmpty(item.getProperty2())){
R result = dataClient.getListByDataKey(item.getProperty2());
log.info("Property2请求getListByDataKey接口返回结果:{}", JSON.toJSONString(result));
if(result.getCode() == ResultCodeEnum.SUCCESS.getCode()
&& result.getData() != null){
String data = JSON.toJSONString(result.getData());
DictionaryDataResp dataResp = JSON.parseObject(data, DictionaryDataResp.class);
resp.setProperty2(dataResp.getDataValue());
}
}
respList.add(resp); respList.add(resp);
}); });
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!