StoreGiftCode.php 489 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\models\store;
  3. use crmeb\services\UtilService;
  4. use crmeb\traits\ModelTrait;
  5. use crmeb\basic\BaseModel;
  6. class StoreGiftCode extends BaseModel
  7. {
  8. /**
  9. * 数据表主键
  10. * @var string
  11. */
  12. protected $pk = 'id';
  13. /**
  14. * 模型名称
  15. * @var string
  16. */
  17. protected $name = 'store_gift_code';
  18. use ModelTrait;
  19. public static function merSet($mer_id)
  20. {
  21. return $mer_id ? self::where('mer_id', $mer_id) : new self;
  22. }
  23. }