| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace bizMall\merchant\services;
- use bizMall\base\services\BaseService;
- use bizMall\merchant\classes\MerchantAssetClass;
- use Yii;
- class MerchantAssetService extends BaseService
- {
-
- public static $baseFile = '\bizMall\merchant\classes\MerchantAssetClass';
-
- //获取商家资产信息 ssh 2019.9.7
- public static function getBySjId($sjId, $returnObj = false)
- {
- return MerchantAssetClass::getBySjId($sjId, $returnObj);
- }
- //增加客户数和粉丝数 ssh 2020.5.13
- public static function addUser($sjId, $subscribe)
- {
- MerchantAssetClass::addUser($sjId, $subscribe);
- }
-
- //根据商家id批量取商家资产 ssh 2019.12.20
- public static function getAssetBySjIds($ids)
- {
- return MerchantAssetClass::getAllByCondition(['sjId' => ['in', $ids]], null, '*', 'sjId');
- }
-
- }
|