lin 2 лет назад
Родитель
Сommit
24a501d925
1 измененных файлов: 14 добавлений и 2 удалений
  1. +14
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java

+ 14
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java Просмотреть файл

@@ -2206,7 +2206,13 @@ public class WxMerchantServiceImpl implements WxMerchantService {
shop.setOperationArea("0");
shop.setBusinessId(0);
shop.setRentUnit(2);
wxShopService.saveOrUpdate(shop);
Result result = wxShopService.saveOrUpdate(shop);
if (null == result) {
return null;
}
if (result.code != Result.SUCCESS) {
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(),result.message);
}
}
return shop;
}
@@ -2241,7 +2247,13 @@ public class WxMerchantServiceImpl implements WxMerchantService {
merchant.setType(1);
merchant.setCreateFrom(EnumMerchantCreateFrom.DOUYIN_LAIKE.getCode());
merchant.setCreateFromId(poiId);
this.addMerchant(merchant, user.getId());
Result result = this.addMerchant(merchant, user.getId());
if (null == result) {
return null;
}
if (result.code != Result.SUCCESS) {
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(),result.message);
}
}
return merchant;
}


Загрузка…
Отмена
Сохранить