From 6c764f473b1e0e9dd2fb13034fe0d7295ab3724e Mon Sep 17 00:00:00 2001 From: xuefei <564615061@qq.cm> Date: 星期二, 08 八月 2023 11:05:58 +0800 Subject: [PATCH] 允许跨域 --- xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java index e2a6718..998f23d 100644 --- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java +++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerController.java @@ -43,6 +43,11 @@ wrapper.eq("customer_id",id); wrapper.eq("status",1); List<CustomerReceive> list = iCustomerReceiveService.list(wrapper); + for (CustomerReceive customerReceive : list) { + if(StrUtil.isBlank(customerReceive.getPhone())){ + customerReceive.setPhone(" "); + } + } customer.setReceives(list); return new ResultUtil<Customer>().setData(customer); } -- Gitblit v1.9.1