From dfbc69cfe642b07597aef0da7b11ef68ae215be7 Mon Sep 17 00:00:00 2001 From: anthonyywj2 <353682448@qq.com> Date: Mon, 24 Oct 2022 14:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E7=B3=BB=E7=BB=9F=E7=B9=81?= =?UTF-8?q?=E5=BF=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/glxp/sale/admin/util/SupplementVailUtil.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api-admin/src/main/java/com/glxp/sale/admin/util/SupplementVailUtil.java b/api-admin/src/main/java/com/glxp/sale/admin/util/SupplementVailUtil.java index 2f54050..fe3e54f 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/util/SupplementVailUtil.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/util/SupplementVailUtil.java @@ -49,33 +49,33 @@ public class SupplementVailUtil { } basicProductSetEntity = basicProductSetEntityMap.get("measname"); if (isMustFill(type, basicProductSetEntity)) { - if (StrUtil.isEmpty(supplementRequest.getMeasname().trim())) { + if (StrUtil.isEmptyIfStr(supplementRequest.getMeasname())) { return "计量单位不能为空"; } } basicProductSetEntity = basicProductSetEntityMap.get("manufactory"); if (isMustFill(type, basicProductSetEntity)) { - if (StrUtil.isEmpty(supplementRequest.getManufactory().trim())) { + if (StrUtil.isEmptyIfStr(supplementRequest.getManufactory())) { return "生产厂家不能为空"; } } basicProductSetEntity = basicProductSetEntityMap.get("spmc"); if (isMustFill(type, basicProductSetEntity)) { - if (StrUtil.isEmpty(supplementRequest.getSpmc().trim())) { + if (StrUtil.isEmptyIfStr(supplementRequest.getSpmc())) { return "商品名称不能为空"; } } basicProductSetEntity = basicProductSetEntityMap.get("cpms"); if (isMustFill(type, basicProductSetEntity)) { - if (StrUtil.isEmpty(supplementRequest.getCpms().trim())) { + if (StrUtil.isEmptyIfStr(supplementRequest.getCpms())) { return "产品描述不能为空"; } } basicProductSetEntity = basicProductSetEntityMap.get("price"); if (isMustFill(type, basicProductSetEntity)) { - if (StrUtil.isEmpty(supplementRequest.getPrice().trim())) { + if (StrUtil.isEmptyIfStr(supplementRequest.getPrice())) { return "产品价格不能为空"; } }