From 08bfeb1c173def34a2c338815989257c6cdc6f06 Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Sat, 20 Nov 2021 17:07:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BA=BF=E4=B8=8Abug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cweb/controller/OutRechargeOrderController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hai-cweb/src/main/java/com/cweb/controller/OutRechargeOrderController.java b/hai-cweb/src/main/java/com/cweb/controller/OutRechargeOrderController.java index a97226a0..d805413f 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/OutRechargeOrderController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/OutRechargeOrderController.java @@ -135,7 +135,9 @@ public class OutRechargeOrderController { outRechargeOrder.setRechargeName(remarks); outRechargeOrder.setOrderNo("CZ" + DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + IDGenerator.nextId(5)); outRechargeOrder.setUserId(userInfoModel.getHighUser().getId()); - outRechargeOrder.setIdCard(highUserCard.getCardNo()); + if (highUserCard != null) { + outRechargeOrder.setIdCard(highUserCard.getCardNo()); + } outRechargeOrder.setUserName(userInfoModel.getHighUser().getName()); outRechargeOrder.setUserPhone(userInfoModel.getHighUser().getPhone());