From 8fd15f898ede2e0548e9df54af85d6a07fa023e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sat, 5 Mar 2022 04:40:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8A=82=E7=82=B9=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E3=80=81=E6=A0=87=E7=AD=BE=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xm/core/ctrl/XmProductController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xm-core/src/main/java/com/xm/core/ctrl/XmProductController.java b/xm-core/src/main/java/com/xm/core/ctrl/XmProductController.java index 2f271e6a..c8d2cf47 100644 --- a/xm-core/src/main/java/com/xm/core/ctrl/XmProductController.java +++ b/xm-core/src/main/java/com/xm/core/ctrl/XmProductController.java @@ -248,6 +248,11 @@ public class XmProductController { xmProduct.setId(this.xmProductService.createProductId(xmProduct.getCode())); xmProduct.setCtime(new Date()); xmProduct.setLtime(new Date()); + if(!StringUtils.hasText(xmProduct.getIsTpl())){ + xmProduct.setIsTpl("0"); + } + xmProduct.setBizFlowState("0"); + xmProduct.setPstatus("0"); xmProduct.setDel("0"); xmProduct.setLocked("0"); xmProductService.insert(xmProduct);