From 8d246a52e5ab42a861b1d6be5ca1e3e2b0949040 Mon Sep 17 00:00:00 2001 From: luozukai Date: Thu, 11 Apr 2019 14:50:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BC=98=E5=8C=96=E8=B4=A6=E5=8D=95][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E4=BC=98=E5=8C=96=E8=B4=A6=E5=8D=95?= =?UTF-8?q?=E5=91=A8=E6=9C=9F]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/MallUserInfoServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/MallUserInfoServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/MallUserInfoServiceImpl.java index 5cf076d5b..8a62b158e 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/MallUserInfoServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/MallUserInfoServiceImpl.java @@ -115,13 +115,13 @@ public class MallUserInfoServiceImpl implements MallUserInfoService { @Override public void saveOrUpdate(MallUserInfo record) { + if(StringUtils.isBlank(record.getFlowPermission())){ + record.setFlowPermission("[]"); + } if (record.getId() == null) { //record.setId(UUID.randomUUID().toString().replaceAll("-", "")); final IdWorker idWorker = IdWorker.get(); record.setId(idWorker.nextId()); - if(StringUtils.isBlank(record.getFlowPermission())){ - record.setFlowPermission("[]"); - } mallUserInfoMapper.insertSelective(record); } else { mallUserInfoMapper.updateByPrimaryKeySelective(record);