Commit 87fa2217 by zhouhaibao

[+]新增校验

1 parent 7986bc4a
......@@ -129,14 +129,19 @@ public class OrderService {
EndBo endBo = new EndBo();
endBo.setPileId(closePileBO.getPileId());
endBo.setGunNumber(closePileBO.getGunNumber());
Result<Boolean> end = pileControlFeignClient.end(JSONObject.toJSONString(endBo));
Boolean data = end.getData();
if (data) {
Boolean data=null;
try {
Result<Boolean> end = pileControlFeignClient.end(JSONObject.toJSONString(endBo));
data = end.getData();
}catch (Exception e){
e.printStackTrace();
}
if (true) {
// 更新订单为待结算
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!