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