| @@ -1,5 +1,6 @@ | |||||
| package com.iformall.service.impl; | package com.iformall.service.impl; | ||||
| import com.alibaba.fastjson.JSONArray; | |||||
| import com.github.pagehelper.PageHelper; | import com.github.pagehelper.PageHelper; | ||||
| import com.github.pagehelper.PageInfo; | import com.github.pagehelper.PageInfo; | ||||
| import com.iformall.common.ErrorCode; | import com.iformall.common.ErrorCode; | ||||
| @@ -365,7 +366,18 @@ public class WxMerchantServiceImpl implements WxMerchantService { | |||||
| wxMerchant.setStatus(EnumMerchantStatus.VALID.getCode()); | wxMerchant.setStatus(EnumMerchantStatus.VALID.getCode()); | ||||
| wxMerchant.setUpdateDate(date); | wxMerchant.setUpdateDate(date); | ||||
| wxMerchant.setCreateDate(date); | wxMerchant.setCreateDate(date); | ||||
| if (StringUtils.isNotBlank(wxMerchant.getCoverPicture())) { | |||||
| List<String> coverPicture = JSONArray.parseArray(wxMerchant.getCoverPicture(), String.class); | |||||
| if (!coverPicture.isEmpty()) { | |||||
| wxMerchant.setImgUrl(coverPicture.get(0)); | |||||
| } | |||||
| } else { | |||||
| if (StringUtils.isNotBlank(wxMerchant.getImgUrl())) { | |||||
| List<String> strList = new ArrayList<String>(); | |||||
| strList.add(wxMerchant.getImgUrl()); | |||||
| wxMerchant.setCoverPicture(JSONArray.toJSONString(strList)); | |||||
| } | |||||
| } | |||||
| wxMerchantMapper.insertSelective(wxMerchant); | wxMerchantMapper.insertSelective(wxMerchant); | ||||
| //关联合同 | //关联合同 | ||||