|
|
|
@@ -1,5 +1,6 @@ |
|
|
|
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; |
|
|
|
@@ -338,6 +339,10 @@ 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)); |
|
|
|
} |
|
|
|
wxMerchantMapper.insertSelective(wxMerchant); |
|
|
|
|
|
|
|
//关联合同 |
|
|
|
@@ -385,6 +390,10 @@ 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)); |
|
|
|
} |
|
|
|
Date date = new Date(); |
|
|
|
wxMerchant.setUpdateDate(date); |
|
|
|
wxMerchantMapper.updateByPrimaryKeySelective(wxMerchant); |
|
|
|
|