소스 검색

[商户][修改]:coverPicture兼容性问题

release_toaliyun_real
Stormeye Wu 7 년 전
부모
커밋
0dc22ee016
1개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. +11
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java

+ 11
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java 파일 보기

@@ -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);



불러오는 중...
취소
저장