Commit b5f87ed7 LN

根据工单号获取工单修改

1 个父辈 e4fa3efe
...@@ -555,9 +555,16 @@ public class OrderController { ...@@ -555,9 +555,16 @@ public class OrderController {
if (orderNo == null) { if (orderNo == null) {
throw new ValidateException("smfcore.valueCanotNull", "{0}不能为空", new String[]{"orderNo"}); throw new ValidateException("smfcore.valueCanotNull", "{0}不能为空", new String[]{"orderNo"});
} }
LiteOrder liteOrder = smfApi.fetchOrder(orderNo,SecurityUtils.getCurrentUsername()); //
LiteOrder order = liteOrderCache.getLiteOrder(orderNo);
if (order != null && (order.isClosed() == false)) {
OrderDto dto = orderMapper.toDto(order);
return ResultBean.newOkResult(dto);
}
if(liteOrder == null){ LiteOrder liteOrder = smfApi.fetchOrder(orderNo, SecurityUtils.getCurrentUsername());
if (liteOrder == null) {
throw new ValidateException("smfcore.api.noUrl", "未配置API地址"); throw new ValidateException("smfcore.api.noUrl", "未配置API地址");
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!