|
@@ -119,7 +119,19 @@ public class NewCmShopService extends CrudService<NewCmShopDao, NewCmShop> {
|
|
|
|
|
|
@Transactional(readOnly = false)
|
|
|
public void update(NewCmShop newCmShop){
|
|
|
- // 供应商基础信息保存
|
|
|
+ // 供应商logo
|
|
|
+ String logo = newCmShop.getLogo();
|
|
|
+ if(StringUtils.isNotEmpty(logo)){
|
|
|
+ logo = getImageUrl(logo);
|
|
|
+ newCmShop.setLogo(logo);
|
|
|
+ }
|
|
|
+ // 营业执照
|
|
|
+ String businessLicenseImage = newCmShop.getBusinessLicenseImage();
|
|
|
+ if (StringUtils.isNotEmpty(businessLicenseImage)) {
|
|
|
+ businessLicenseImage = getImageUrl(businessLicenseImage);
|
|
|
+ newCmShop.setBusinessLicenseImage(businessLicenseImage);
|
|
|
+ }
|
|
|
+ // 供应商基础信息保存
|
|
|
newCmShopDao.update(newCmShop);
|
|
|
//清除所有供应商证书再保存
|
|
|
newCmShopDao.deleteCert(newCmShop.getShopID());
|