From 5ebaf01f27ea05c7f40def8b2e7ac65ce6c084de Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期三, 25 十月 2023 17:10:59 +0800 Subject: [PATCH] 10.20 --- cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java index d2e43da..31b9bf4 100644 --- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java +++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java @@ -133,6 +133,9 @@ SimpleDateFormat format2 = new SimpleDateFormat("yyyy-MM-dd"); String format3 = format2.format(data.getVipEndTime()); model.addAttribute("vipEndTime",format3); + }else { + model.addAttribute("vipEndTime",""); + } if (data.getViplevelId()!=null){ // todo创建会员等级表 @@ -173,7 +176,10 @@ List<QueryAppUserVO> queryAppUserVOS = appUserClient.listAll(queryAppUser); for (QueryAppUserVO queryAppUserVO : queryAppUserVOS) { if (queryAppUserVO.getSalesmanUserId()!=null){ - queryAppUserVO.setSalesmanUserName(userService.getById(queryAppUserVO.getSalesmanUserId()).getName()); + User byId = userService.getById(queryAppUserVO.getSalesmanUserId()); + if (byId!=null){ + queryAppUserVO.setSalesmanUserName(byId.getName()); + } } } if (salesmanUserName!=null && (!salesmanUserName.equals(""))){ -- Gitblit v1.7.1