Commit 5d1e4ec5 by guojuxing

订购详情服务修改,如果是空,不再返回错误,而是null

parent 15e10d4e
...@@ -129,9 +129,9 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA ...@@ -129,9 +129,9 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA
@Override @Override
public ServiceResponse<TransferAccountsApprovalDTO> getByOrderNumber(String orderNumber) { public ServiceResponse<TransferAccountsApprovalDTO> getByOrderNumber(String orderNumber) {
TabTransferAccountsApproval tab = transferAccountsApprovalService.getByOrderNumber(orderNumber); TabTransferAccountsApproval tab = transferAccountsApprovalService.getByOrderNumber(orderNumber);
if (tab == null) { // if (tab == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "订单流水号有误,查询不到数据"); // return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "订单流水号有误,查询不到数据");
} // }
return ServiceResponse.success(EntityUtil.changeEntityNew(TransferAccountsApprovalDTO.class, tab)); return ServiceResponse.success(EntityUtil.changeEntityNew(TransferAccountsApprovalDTO.class, tab));
} }
......
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