123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace app\models\system;
- use app\models\store\StoreOrder;
- use think\facade\Cache;
- use crmeb\traits\ModelTrait;
- use crmeb\basic\BaseModel;
- class SystemBill extends BaseModel
- {
-
- protected $pk = 'id';
-
- protected $name = 'system_bill';
- use ModelTrait;
- public static function income($title, $site_id, $category, $type, $number, $link_id = 0, $balance = 0, $mark = '', $status = 1)
- {
- $pm = 1;
- $add_time = time();
- return self::create(compact('title', 'site_id', 'link_id', 'category', 'type', 'number', 'balance', 'mark', 'status', 'pm', 'add_time'));
- }
- public static function expend($title, $site_id, $category, $type, $number, $link_id = 0, $balance = 0, $mark = '', $status = 1)
- {
- $pm = 0;
- $add_time = time();
- return self::create(compact('title', 'site_id', 'link_id', 'category', 'type', 'number', 'balance', 'mark', 'status', 'pm', 'add_time'));
- }
- }
|