first commit
This commit is contained in:
26
pgserver/application/migrate/controller/Inquiry.php
Normal file
26
pgserver/application/migrate/controller/Inquiry.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\migrate\controller;
|
||||
|
||||
use app\admin\controller\Base;
|
||||
use think\Db;
|
||||
|
||||
class Inquiry extends Base
|
||||
{
|
||||
private $config = [
|
||||
'type'=>'mysql',
|
||||
'hostname'=>'localhost',
|
||||
'user_name'=>'root',
|
||||
'password'=>'',
|
||||
'database'=>'appraisaidb',
|
||||
];
|
||||
|
||||
public function inquiryMigrate()
|
||||
{
|
||||
$inquiry_data = Db::connect($this->config)
|
||||
->table('appraisal')
|
||||
->select();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user