Explorar el Código

fix bug

release_toaliyun_real
lin hace 2 años
padre
commit
24a501d925
Se han modificado 1 ficheros con 14 adiciones y 2 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar