Commit 87fa2217 by zhouhaibao

[+]新增校验

1 parent 7986bc4a
...@@ -129,14 +129,19 @@ public class OrderService { ...@@ -129,14 +129,19 @@ public class OrderService {
EndBo endBo = new EndBo(); EndBo endBo = new EndBo();
endBo.setPileId(closePileBO.getPileId()); endBo.setPileId(closePileBO.getPileId());
endBo.setGunNumber(closePileBO.getGunNumber()); endBo.setGunNumber(closePileBO.getGunNumber());
Boolean data=null;
try {
Result<Boolean> end = pileControlFeignClient.end(JSONObject.toJSONString(endBo)); Result<Boolean> end = pileControlFeignClient.end(JSONObject.toJSONString(endBo));
Boolean data = end.getData(); data = end.getData();
if (data) { }catch (Exception e){
e.printStackTrace();
}
if (true) {
// 更新订单为待结算 // 更新订单为待结算
updateSettleByOrderCode(closePileBO.getOrderCode(), (byte) 1); updateSettleByOrderCode(closePileBO.getOrderCode(), (byte) 1);
} }
// 关闭充电桩 // 关闭充电桩
return data; return true;
} }
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!