namespace app\model;
use Illuminate\Redis\Connections\Connection;
use think\db\Query;
use think\Model;
class Config extends Model
{
// 數(shù)據(jù)表名稱
protected $name = 'config';
/**
* 模型查詢器
* @return Config|Query
*/
public static function querier(): Config|Query
{
return self::where('is_deleted=0');
}
}
這段代碼如果控制器中調(diào)用Config::querier()->where([查詢條件])->... 在高并發(fā)下是否會(huì)互相影響