From 5e92a98759538e0b75adf45745573ee7e5977a28 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 29 May 2019 18:46:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=95=86=E6=88=B7][=E4=BF=AE=E6=94=B9][?= =?UTF-8?q?=E5=B0=81=E9=9D=A2=E5=9B=BE=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WxMerchantServiceImpl.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java index 7a131b219..f892e1e86 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java @@ -1,6 +1,5 @@ package com.iformall.service.impl; -import com.alibaba.fastjson.JSONArray; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.iformall.common.ErrorCode; @@ -366,18 +365,7 @@ public class WxMerchantServiceImpl implements WxMerchantService { wxMerchant.setStatus(EnumMerchantStatus.VALID.getCode()); wxMerchant.setUpdateDate(date); wxMerchant.setCreateDate(date); - if(StringUtils.isNotBlank(wxMerchant.getCoverPicture())) { - List coverPicture = JSONArray.parseArray(wxMerchant.getCoverPicture(), String.class); - if (!coverPicture.isEmpty()) { - wxMerchant.setImgUrl(coverPicture.get(0)); - } - } else { - if(StringUtils.isNotBlank(wxMerchant.getImgUrl())) { - List strList = new ArrayList(); - strList.add(wxMerchant.getImgUrl()); - wxMerchant.setCoverPicture(JSONArray.toJSONString(strList)); - } - } + wxMerchantMapper.insertSelective(wxMerchant); //关联合同