|
|
|
@@ -366,9 +366,17 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
wxMerchant.setStatus(EnumMerchantStatus.VALID.getCode()); |
|
|
|
wxMerchant.setUpdateDate(date); |
|
|
|
wxMerchant.setCreateDate(date); |
|
|
|
List<String> coverPicture = JSONArray.parseArray(wxMerchant.getCoverPicture(), String.class); |
|
|
|
if (!coverPicture.isEmpty()) { |
|
|
|
wxMerchant.setImgUrl(coverPicture.get(0)); |
|
|
|
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); |
|
|
|
|
|
|
|
|