|
@@ -6,7 +6,7 @@ namespace app\controller;
|
|
|
use app\BaseController;
|
|
|
use app\model\Account;
|
|
|
use app\model\AccountCompany;
|
|
|
-use think\App;
|
|
|
+use app\model\AccountPlat;use think\App;
|
|
|
use think\Exception;
|
|
|
use think\facade\Db;
|
|
|
use think\facade\Validate;
|
|
@@ -101,9 +101,7 @@ class UserInfo extends BaseController
|
|
|
if (empty($list)) {
|
|
|
return json_show(1004, "未找到用户信息");
|
|
|
}
|
|
|
-// $list['plat']= Db::name("account_plat")->alias("a")
|
|
|
-// ->leftJoin("platform b","a.plat_code=b.plat_code and b.status=1")
|
|
|
-// ->where(["a.status"=>1,"a.is_del"=>0,"a.account_id"=>$list['id']])->column("a.plat_code,plat_name");
|
|
|
+ $list['system_version']=(new AccountPlat())->where(['account_id'=>$list['id']])->column('system_version','plat_code')
|
|
|
$list['company_relaton'] = Db::name("account_company")->where(["account_id" => $list['id'], "is_del" => 0, "status" => 1])
|
|
|
->column("companyCode,companyName,company_type,is_main,status");
|
|
|
return json_show(0, "获取成功", $list);
|