From fb7d4535f8311de85ee6e6f74eb37616546c6f84 Mon Sep 17 00:00:00 2001 From: yefei Date: Thu, 11 May 2023 10:50:40 +0800 Subject: [PATCH] =?UTF-8?q?ariesy=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E9=AA=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=A8=8E=E5=8F=B7=E4=B8=BA=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dxhy/core/controller/InvoiceQueryController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dxhy-core/src/main/java/com/dxhy/core/controller/InvoiceQueryController.java b/dxhy-core/src/main/java/com/dxhy/core/controller/InvoiceQueryController.java index 6c19b208..d9047810 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/controller/InvoiceQueryController.java +++ b/dxhy-core/src/main/java/com/dxhy/core/controller/InvoiceQueryController.java @@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.text.SimpleDateFormat; import java.util.*; +import java.util.stream.Collectors; /** * 发票查验模块接口类 @@ -60,6 +61,9 @@ public class InvoiceQueryController extends AbstractController { pramsMap.put("company", getUserInfo().getCompany()); List gfshAll = UserInfoUtil.getGfshAll(getUserInfo().getOrg()); + //去除里面的空字符串 + gfshAll = gfshAll.stream().filter(str -> !str.trim().isEmpty()).collect(Collectors.toList()); + log.info("gfshAll={}",gfshAll); if (gfshAll.size() > 0) { pramsMap.put("taxNo", gfshAll.get(0));