From 6d043d836673299c941d865230ba60de901310fb Mon Sep 17 00:00:00 2001 From: xyiege Date: Mon, 20 Mar 2023 22:45:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86undefined=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/chjyj/szwh/controller/api/GoodsController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/chjyj/szwh/controller/api/GoodsController.java b/src/main/java/cn/chjyj/szwh/controller/api/GoodsController.java index c72bd31..c98ce2d 100644 --- a/src/main/java/cn/chjyj/szwh/controller/api/GoodsController.java +++ b/src/main/java/cn/chjyj/szwh/controller/api/GoodsController.java @@ -206,23 +206,23 @@ public class GoodsController extends BaseController { } // 委托数据名称 String entrustName = request.getString("entrust_name"); - if (StringUtils.isNotBlank(entrustName)) { + if (StringUtils.isNotBlank(entrustName) || !"undefined".equals(entrustName)) { qmap.put("gd.goods_name", entrustName); } //数据类型 String recordType = request.getString("record_type"); - if (StringUtils.isNotBlank(recordType)) { + if (StringUtils.isNotBlank(recordType) || !"undefined".equals(recordType)) { qmap.put("gd.goods_type", recordType); } //委托方 String entrustUser = request.getString("entrust_user_name"); - if (StringUtils.isNotBlank(entrustUser)) { + if (StringUtils.isNotBlank(entrustUser) || !"undefined".equals(entrustUser)) { qmap.put("g.entrust_name", entrustUser); } // 授权类型 String authorization = request.getString("authorization"); - if (StringUtils.isNotBlank(authorization)) { + if (StringUtils.isNotBlank(authorization) || !"undefined".equals(authorization)) { Integer igoodsEntrust = Integer.valueOf(authorization); qmap.put("gd.goods_entrust", igoodsEntrust); }