| | |
| | | } |
| | | } |
| | | |
| | | //绑定门店分佣 |
| | | Shop shop1 = shopClient.getShopById(appUser.getShopId()).getData(); |
| | | //服务商分佣 |
| | | Shop shop1 = shopClient.getServiceProvider(appUser.getId()).getData(); |
| | | if(null != shop1){ |
| | | AppUser bdShopAppUser = appUserClient.getAppUserById(shop1.getAppUserId()); |
| | | if(null != bdShopAppUser){ |
| | |
| | | } |
| | | } |
| | | |
| | | //上级门店分佣 |
| | | if(null != shop1){ |
| | | Integer pid = shop1.getPid(); |
| | | Shop shop2 = shopClient.getShopById(pid).getData(); |
| | | //高级服务商 |
| | | Shop shop2 = shopClient.getSuperiorServiceProvider(order.getAppUserId()).getData(); |
| | | if(null != shop2){ |
| | | AppUser sjShopAppUser = appUserClient.getAppUserById(shop2.getAppUserId()); |
| | | if(null != sjShopAppUser){ |
| | |
| | | shopPoint.setObjectId(order.getId()); |
| | | shopPoint.setOrderNum(order.getOrderNumber()); |
| | | shopPointClient.saveShopPoint(shopPoint); |
| | | } |
| | | } |
| | | } |
| | | } |