|
|
@@ -11313,24 +11313,24 @@ class StoreOrderRepository extends BaseRepository
|
|
11313
|
11313
|
);
|
|
11314
|
11314
|
|
|
11315
|
11315
|
// 如果用户的身份 不是 普通用户 (高于普通用户) 则发放养老金
|
|
11316
|
|
- if ($userEntityBySpreadUid->getUserGroup() != CommonEnum::USER_GROUP['RegularUser']['code']) {
|
|
11317
|
|
- $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getConPri(), CommonEnum::ORDER_EARNING_ALLOCATION['WonderfulLiving']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
11318
|
|
- /** @var UserBillRepository $userBillRepository */
|
|
11319
|
|
- $userBillRepository = app()->make(UserBillRepository::class);
|
|
11320
|
|
- $userBillRepository->addUserBill(
|
|
11321
|
|
- $userEntityBySpreadUid->getUid(),
|
|
11322
|
|
- UserBillEnum::COMMISSION_TYPE['PENSION']['code'],
|
|
11323
|
|
- UserBillEnum::PM['INCOME']['code'],
|
|
11324
|
|
- $yanglaojinBySpreadUid,
|
|
11325
|
|
- UserBillEnum::CATEGORY['NowMoney']['code'],
|
|
11326
|
|
- UserBillEnum::TYPE['Commission']['code'],
|
|
11327
|
|
- UserBillEnum::SOURCE['ONLINE']['code'],
|
|
11328
|
|
- UserBillEnum::ORDER_TYPE['SELF_OPERATED']['code'],
|
|
11329
|
|
- UserBillEnum::TYPE_SHOP['Platform']['code'],
|
|
11330
|
|
- $storeOrderEntity->getOrderId(),
|
|
11331
|
|
- '推广精彩生活区商品获得养老金'
|
|
11332
|
|
- );
|
|
11333
|
|
- }
|
|
|
11316
|
+ // if ($userEntityBySpreadUid->getUserGroup() != CommonEnum::USER_GROUP['RegularUser']['code']) {
|
|
|
11317
|
+ // $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getConPri(), CommonEnum::ORDER_EARNING_ALLOCATION['WonderfulLiving']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
11318
|
+ // /** @var UserBillRepository $userBillRepository */
|
|
|
11319
|
+ // $userBillRepository = app()->make(UserBillRepository::class);
|
|
|
11320
|
+ // $userBillRepository->addUserBill(
|
|
|
11321
|
+ // $userEntityBySpreadUid->getUid(),
|
|
|
11322
|
+ // UserBillEnum::COMMISSION_TYPE['PENSION']['code'],
|
|
|
11323
|
+ // UserBillEnum::PM['INCOME']['code'],
|
|
|
11324
|
+ // $yanglaojinBySpreadUid,
|
|
|
11325
|
+ // UserBillEnum::CATEGORY['NowMoney']['code'],
|
|
|
11326
|
+ // UserBillEnum::TYPE['Commission']['code'],
|
|
|
11327
|
+ // UserBillEnum::SOURCE['ONLINE']['code'],
|
|
|
11328
|
+ // UserBillEnum::ORDER_TYPE['SELF_OPERATED']['code'],
|
|
|
11329
|
+ // UserBillEnum::TYPE_SHOP['Platform']['code'],
|
|
|
11330
|
+ // $storeOrderEntity->getOrderId(),
|
|
|
11331
|
+ // '推广精彩生活区商品获得养老金'
|
|
|
11332
|
+ // );
|
|
|
11333
|
+ // }
|
|
11334
|
11334
|
}
|
|
11335
|
11335
|
}
|
|
11336
|
11336
|
|
|
|
@@ -11558,24 +11558,24 @@ class StoreOrderRepository extends BaseRepository
|
|
11558
|
11558
|
);
|
|
11559
|
11559
|
|
|
11560
|
11560
|
// 如果用户的身份 不是 普通用户 (高于普通用户) 则发放养老金
|
|
11561
|
|
- if ($userEntityBySpreadUid->getUserGroup() != CommonEnum::USER_GROUP['RegularUser']['code']) {
|
|
11562
|
|
- $yanglaojinBySpreadUid = bcmul($basePrice, CommonEnum::ORDER_EARNING_ALLOCATION['MemberZone']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
11563
|
|
- /** @var UserBillRepository $userBillRepository */
|
|
11564
|
|
- $userBillRepository = app()->make(UserBillRepository::class);
|
|
11565
|
|
- $userBillRepository->addUserBill(
|
|
11566
|
|
- $userEntityBySpreadUid->getUid(),
|
|
11567
|
|
- UserBillEnum::COMMISSION_TYPE['PENSION']['code'],
|
|
11568
|
|
- UserBillEnum::PM['INCOME']['code'],
|
|
11569
|
|
- $yanglaojinBySpreadUid,
|
|
11570
|
|
- UserBillEnum::CATEGORY['NowMoney']['code'],
|
|
11571
|
|
- UserBillEnum::TYPE['Commission']['code'],
|
|
11572
|
|
- UserBillEnum::SOURCE['ONLINE']['code'],
|
|
11573
|
|
- UserBillEnum::ORDER_TYPE['SELF_OPERATED']['code'],
|
|
11574
|
|
- UserBillEnum::TYPE_SHOP['Platform']['code'],
|
|
11575
|
|
- $storeOrderEntity->getOrderId(),
|
|
11576
|
|
- '推广会员专区商品获得养老金'
|
|
11577
|
|
- );
|
|
11578
|
|
- }
|
|
|
11561
|
+ // if ($userEntityBySpreadUid->getUserGroup() != CommonEnum::USER_GROUP['RegularUser']['code']) {
|
|
|
11562
|
+ // $yanglaojinBySpreadUid = bcmul($basePrice, CommonEnum::ORDER_EARNING_ALLOCATION['MemberZone']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
11563
|
+ // /** @var UserBillRepository $userBillRepository */
|
|
|
11564
|
+ // $userBillRepository = app()->make(UserBillRepository::class);
|
|
|
11565
|
+ // $userBillRepository->addUserBill(
|
|
|
11566
|
+ // $userEntityBySpreadUid->getUid(),
|
|
|
11567
|
+ // UserBillEnum::COMMISSION_TYPE['PENSION']['code'],
|
|
|
11568
|
+ // UserBillEnum::PM['INCOME']['code'],
|
|
|
11569
|
+ // $yanglaojinBySpreadUid,
|
|
|
11570
|
+ // UserBillEnum::CATEGORY['NowMoney']['code'],
|
|
|
11571
|
+ // UserBillEnum::TYPE['Commission']['code'],
|
|
|
11572
|
+ // UserBillEnum::SOURCE['ONLINE']['code'],
|
|
|
11573
|
+ // UserBillEnum::ORDER_TYPE['SELF_OPERATED']['code'],
|
|
|
11574
|
+ // UserBillEnum::TYPE_SHOP['Platform']['code'],
|
|
|
11575
|
+ // $storeOrderEntity->getOrderId(),
|
|
|
11576
|
+ // '推广会员专区商品获得养老金'
|
|
|
11577
|
+ // );
|
|
|
11578
|
+ // }
|
|
11579
|
11579
|
}
|
|
11580
|
11580
|
}
|
|
11581
|
11581
|
}
|
|
|
@@ -11738,22 +11738,22 @@ class StoreOrderRepository extends BaseRepository
|
|
11738
|
11738
|
$sharedProsperityUserEntityByParent = $sharedProsperityUserRepository->getSharedProsperityUserEntityByUserId($sharedProsperityUserEntity->getParentId());
|
|
11739
|
11739
|
if (!empty($sharedProsperityUserEntityByParent->getId())) {
|
|
11740
|
11740
|
// 为 共富体系推荐人 发放养老金
|
|
11741
|
|
- $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getTotalPrice(), CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
11742
|
|
- /** @var UserBillRepository $userBillRepository */
|
|
11743
|
|
- $userBillRepository = app()->make(UserBillRepository::class);
|
|
11744
|
|
- $userBillRepository->addUserBill(
|
|
11745
|
|
- $sharedProsperityUserEntityByParent->getUserId(),
|
|
11746
|
|
- UserBillEnum::COMMISSION_TYPE['PENSION']['code'],
|
|
11747
|
|
- UserBillEnum::PM['INCOME']['code'],
|
|
11748
|
|
- $yanglaojinBySpreadUid,
|
|
11749
|
|
- UserBillEnum::CATEGORY['NowMoney']['code'],
|
|
11750
|
|
- UserBillEnum::TYPE['Commission']['code'],
|
|
11751
|
|
- UserBillEnum::SOURCE['ONLINE']['code'],
|
|
11752
|
|
- UserBillEnum::ORDER_TYPE['SELF_OPERATED']['code'],
|
|
11753
|
|
- UserBillEnum::TYPE_SHOP['Platform']['code'],
|
|
11754
|
|
- $storeOrderEntity->getOrderId(),
|
|
11755
|
|
- '推广共富区会员消费获得养老金'
|
|
11756
|
|
- );
|
|
|
11741
|
+ // $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getTotalPrice(), CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
11742
|
+ // /** @var UserBillRepository $userBillRepository */
|
|
|
11743
|
+ // $userBillRepository = app()->make(UserBillRepository::class);
|
|
|
11744
|
+ // $userBillRepository->addUserBill(
|
|
|
11745
|
+ // $sharedProsperityUserEntityByParent->getUserId(),
|
|
|
11746
|
+ // UserBillEnum::COMMISSION_TYPE['PENSION']['code'],
|
|
|
11747
|
+ // UserBillEnum::PM['INCOME']['code'],
|
|
|
11748
|
+ // $yanglaojinBySpreadUid,
|
|
|
11749
|
+ // UserBillEnum::CATEGORY['NowMoney']['code'],
|
|
|
11750
|
+ // UserBillEnum::TYPE['Commission']['code'],
|
|
|
11751
|
+ // UserBillEnum::SOURCE['ONLINE']['code'],
|
|
|
11752
|
+ // UserBillEnum::ORDER_TYPE['SELF_OPERATED']['code'],
|
|
|
11753
|
+ // UserBillEnum::TYPE_SHOP['Platform']['code'],
|
|
|
11754
|
+ // $storeOrderEntity->getOrderId(),
|
|
|
11755
|
+ // '推广共富区会员消费获得养老金'
|
|
|
11756
|
+ // );
|
|
11757
|
11757
|
|
|
11758
|
11758
|
// 发放消费股
|
|
11759
|
11759
|
$consumerStocksBySpread = bcmul($storeOrderEntity->getTotalPrice(), CommonEnum::ORDER_EARNING_ALLOCATION['SharedProsperity']['Spread']['ConsumerStocks']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
@@ -11975,24 +11975,24 @@ class StoreOrderRepository extends BaseRepository
|
|
11975
|
11975
|
);
|
|
11976
|
11976
|
|
|
11977
|
11977
|
// 如果用户的身份 不是 普通用户 (高于普通用户) 则发放养老金
|
|
11978
|
|
- if ($userEntityBySpreadUid->getUserGroup() != CommonEnum::USER_GROUP['RegularUser']['code']) {
|
|
11979
|
|
- $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getConPri(), CommonEnum::ORDER_EARNING_ALLOCATION['CommercialDistrict']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
11980
|
|
- /** @var UserBillRepository $userBillRepository */
|
|
11981
|
|
- $userBillRepository = app()->make(UserBillRepository::class);
|
|
11982
|
|
- $userBillRepository->addUserBill(
|
|
11983
|
|
- $userEntityBySpreadUid->getUid(),
|
|
11984
|
|
- UserBillEnum::COMMISSION_TYPE['PENSION']['code'],
|
|
11985
|
|
- UserBillEnum::PM['INCOME']['code'],
|
|
11986
|
|
- $yanglaojinBySpreadUid,
|
|
11987
|
|
- UserBillEnum::CATEGORY['NowMoney']['code'],
|
|
11988
|
|
- UserBillEnum::TYPE['Commission']['code'],
|
|
11989
|
|
- UserBillEnum::SOURCE['ONLINE']['code'],
|
|
11990
|
|
- UserBillEnum::ORDER_TYPE['SELF_OPERATED']['code'],
|
|
11991
|
|
- UserBillEnum::TYPE_SHOP['Platform']['code'],
|
|
11992
|
|
- $storeOrderEntity->getOrderId(),
|
|
11993
|
|
- '推广商贸区商品获得养老金'
|
|
11994
|
|
- );
|
|
11995
|
|
- }
|
|
|
11978
|
+ // if ($userEntityBySpreadUid->getUserGroup() != CommonEnum::USER_GROUP['RegularUser']['code']) {
|
|
|
11979
|
+ // $yanglaojinBySpreadUid = bcmul($storeOrderEntity->getConPri(), CommonEnum::ORDER_EARNING_ALLOCATION['CommercialDistrict']['Spread']['YangLaoJin']['Ratio']['code'], CommonEnum::DECIMAL_PLACES_OF_THE_AMOUNT);
|
|
|
11980
|
+ // /** @var UserBillRepository $userBillRepository */
|
|
|
11981
|
+ // $userBillRepository = app()->make(UserBillRepository::class);
|
|
|
11982
|
+ // $userBillRepository->addUserBill(
|
|
|
11983
|
+ // $userEntityBySpreadUid->getUid(),
|
|
|
11984
|
+ // UserBillEnum::COMMISSION_TYPE['PENSION']['code'],
|
|
|
11985
|
+ // UserBillEnum::PM['INCOME']['code'],
|
|
|
11986
|
+ // $yanglaojinBySpreadUid,
|
|
|
11987
|
+ // UserBillEnum::CATEGORY['NowMoney']['code'],
|
|
|
11988
|
+ // UserBillEnum::TYPE['Commission']['code'],
|
|
|
11989
|
+ // UserBillEnum::SOURCE['ONLINE']['code'],
|
|
|
11990
|
+ // UserBillEnum::ORDER_TYPE['SELF_OPERATED']['code'],
|
|
|
11991
|
+ // UserBillEnum::TYPE_SHOP['Platform']['code'],
|
|
|
11992
|
+ // $storeOrderEntity->getOrderId(),
|
|
|
11993
|
+ // '推广商贸区商品获得养老金'
|
|
|
11994
|
+ // );
|
|
|
11995
|
+ // }
|
|
11996
|
11996
|
}
|
|
11997
|
11997
|
}
|
|
11998
|
11998
|
|