Supplier.php 246 B

1234567891011121314151617
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\model;
  4. use think\Model;
  5. /**
  6. * @mixin \think\Model
  7. */
  8. class Supplier extends Base
  9. {
  10. protected $globalScope=['is_del'];
  11. public function scopeIsDel($query){
  12. $query->where('is_del',0);
  13. }
  14. }