Browse Source

[商户][修改][更新数据]

release_toaliyun_real
gongbiao 7 years ago
parent
commit
a19850704f
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java

+ 5
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java View File

@@ -417,9 +417,11 @@ public class WxMerchantServiceImpl implements WxMerchantService {
return new ResultData(ErrorCode.MERCHANT_INFO_NOT_FOUND);
}
//更新商户
List<String> coverPicture = JSONArray.parseArray(wxMerchant.getCoverPicture(), String.class);
if (!coverPicture.isEmpty()) {
wxMerchant.setImgUrl(coverPicture.get(0));
if (StringUtils.isNotEmpty(wxMerchant.getCoverPicture())) {
List<String> coverPicture = JSONArray.parseArray(wxMerchant.getCoverPicture(), String.class);
if (!coverPicture.isEmpty()) {
wxMerchant.setImgUrl(coverPicture.get(0));
}
}
Date date = new Date();
wxMerchant.setUpdateDate(date);


Loading…
Cancel
Save