| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\common\repositories\system\merchant;
- use app\common\dao\system\merchant\MerchantContributionDao;
- use app\common\repositories\BaseRepository;
- use app\entity\data\merchant\MerchantContributionEntity;
- class MerchantContributionRepository extends BaseRepository
- {
- /**
- * @var MerchantContributionDao
- */
- protected $dao;
- /**
- * @param MerchantContributionDao $dao
- */
- public function __construct(MerchantContributionDao $dao)
- {
- $this->dao = $dao;
- }
- /**
- * 根据商家的让利比例 获取对应的 配置信息
- * @param float $profitSharing
- * @return MerchantContributionEntity
- */
- public function getMerchantContributionEntityByProfitSharing(float $profitSharing): MerchantContributionEntity
- {
- /** @var MerchantContributionEntity $entity */
- $entity = $this->dao->getMerchantContributionEntityByProfitSharing($profitSharing);
- return $entity;
- }
- }
|