From 10a385da8418738ec5b8ade25328aa99036d9766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Tue, 10 Aug 2021 00:42:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jsh/erp/controller/MaterialExtendController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jshERP-boot/src/main/java/com/jsh/erp/controller/MaterialExtendController.java b/jshERP-boot/src/main/java/com/jsh/erp/controller/MaterialExtendController.java index 496ca834..8a5d137c 100644 --- a/jshERP-boot/src/main/java/com/jsh/erp/controller/MaterialExtendController.java +++ b/jshERP-boot/src/main/java/com/jsh/erp/controller/MaterialExtendController.java @@ -6,6 +6,7 @@ import com.jsh.erp.datasource.entities.MaterialExtend; import com.jsh.erp.datasource.vo.MaterialExtendVo4List; import com.jsh.erp.service.materialExtend.MaterialExtendService; import com.jsh.erp.utils.BaseResponseInfo; +import com.jsh.erp.utils.StringUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.*; @@ -47,7 +48,9 @@ public class MaterialExtendController { item.put("id", md.getId()); item.put("barCode", md.getBarCode()); item.put("commodityUnit", md.getCommodityUnit()); - item.put("sku", md.getSku()); + if(StringUtil.isNotEmpty(md.getSku())){ + item.put("sku", md.getSku()); + } item.put("purchaseDecimal", md.getPurchaseDecimal()); item.put("commodityDecimal", md.getCommodityDecimal()); item.put("wholesaleDecimal", md.getWholesaleDecimal());