|
@@ -21,15 +21,6 @@ class TestController extends BaseController
|
|
}
|
|
}
|
|
public function tt(){
|
|
public function tt(){
|
|
$model_box = DB::connection("mysqlT9");
|
|
$model_box = DB::connection("mysqlT9");
|
|
- $result = $model_box->table('ST_SNState')
|
|
|
|
- ->select('cinvCode as code','cInvSN as sn','AutoID as auto_id')
|
|
|
|
- ->whereIn("cWhCode", [001,003])
|
|
|
|
- ->where("cInvCode", "100000003")
|
|
|
|
- ->where("iSNState", 2)
|
|
|
|
- ->orderBy('cSNDefine1','desc')
|
|
|
|
- ->orderBy('AutoID','asc')
|
|
|
|
- ->get()->toArray();
|
|
|
|
- dd($result);
|
|
|
|
$u8 = $model_box->table('setting')
|
|
$u8 = $model_box->table('setting')
|
|
->where('setting_name','u8')
|
|
->where('setting_name','u8')
|
|
->where('setting_value','<>','')
|
|
->where('setting_value','<>','')
|
|
@@ -68,7 +59,15 @@ class TestController extends BaseController
|
|
if ($pdo instanceof \PDO) {
|
|
if ($pdo instanceof \PDO) {
|
|
// 连接成功的逻辑代码
|
|
// 连接成功的逻辑代码
|
|
$db = DB::connection('sqlsrvs');
|
|
$db = DB::connection('sqlsrvs');
|
|
- dd(111);
|
|
|
|
|
|
+ $result = $db->table('ST_SNState')
|
|
|
|
+ ->select('cinvCode as code','cInvSN as sn','AutoID as auto_id')
|
|
|
|
+ ->whereIn("cWhCode", [001,003])
|
|
|
|
+ ->where("cInvCode", "100000003")
|
|
|
|
+ ->where("iSNState", 2)
|
|
|
|
+ ->orderBy('cSNDefine1','desc')
|
|
|
|
+ ->orderBy('AutoID','asc')
|
|
|
|
+ ->get()->toArray();
|
|
|
|
+ dd($result);
|
|
} else {
|
|
} else {
|
|
dd(1233);
|
|
dd(1233);
|
|
}
|
|
}
|