12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- namespace app\models\store;
- use crmeb\basic\BaseModel;
- use crmeb\traits\ModelTrait;
- class StoreService extends BaseModel
- {
-
- protected $pk = 'id';
-
- protected $name = 'store_service';
- use ModelTrait;
-
- public static function lst($page, $limit)
- {
- $model = new self;
- $model = $model->where('status', 1);
- return $model->select();
- }
-
- public static function getServiceInfo($uid, $field = '*')
- {
- return self::where('uid', $uid)->where('status', 1)->field($field)->find();
- }
-
- public static function orderServiceStatus($uid)
- {
- return self::where('uid', $uid)->where('status', 1)->where('customer', 1)->count();
- }
-
- public static function getStoreServiceOrderNotice(){
- return self::where('status',1)->where('notify',1)->column('uid','uid');
- }
- }
|