|
|
@@ -11658,7 +11658,7 @@ class StoreOrderRepository extends BaseRepository
|
|
11658
|
11658
|
$sharedProsperityUserEntityByParent = $sharedProsperityUserRepository->getSharedProsperityUserEntityByUserId($sharedProsperityUserEntity->getParentId());
|
|
11659
|
11659
|
if (!empty($sharedProsperityUserEntityByParent->getId())) {
|
|
11660
|
11660
|
// 为 共富体系推荐人 发放养老金
|
|
11661
|
|
- $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getConPri(), CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
11661
|
+ $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getTotalPrice(), CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
11662
|
11662
|
/** @var UserBillRepository $userBillRepository */
|
|
11663
|
11663
|
$userBillRepository = app()->make(UserBillRepository::class);
|
|
11664
|
11664
|
$userBillRepository->addUserBill(
|