修改运营后台用户管理

This commit is contained in:
lcc
2025-09-05 17:05:54 +08:00
parent af26635b37
commit aee2a4d647
3 changed files with 83 additions and 1 deletions
@@ -7,13 +7,23 @@ require_once COMMPATH . '/third_party/PHPExcel/IOFactory.php';
class User extends BaseController
{
const DEFAULT_ORG_TEAM_ID = 3; //默认机构团队id
public function __construct()
{
parent::__construct();
$this->load->model('agent/pingan/pingan_users_model', 'pinganUsers');
$this->load->model('agent/pingan/pingan_users_model');
$this->load->model('agent/organization/Organization_model', 'mdOrganization');
$this->load->model('area_model');
$this->load->model('agent/pingan/Pingan_sys_role_model', 'mdSysRole');
$this->orgId = $this->input_param("orgId");
if (!$this->orgId) {
$rows = $this->mdOrganization->select(['status' => 0, 'parentId' => 0], 'id desc', 1, 1, 'id,userTableModel');
$mdOrganization = $rows[0];
} else {
$mdOrganization = $this->mdOrganization->get(['id' => $this->orgId]);
}
$userTableModel = $mdOrganization['userTableModel'];
$this->load->model('agent/pingan/' . $userTableModel, 'pinganUsers');
}
public function page_get()
@@ -98,6 +108,7 @@ class User extends BaseController
$res = Pingan_users_model::TYPE_CENTER;
$this->return_response($res);
}
public function orgNameList_get()
{
$this->return_response(Pingan_users_model::orgNameList);
@@ -0,0 +1,35 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Ain_users_model extends HD_Model
{
private $table_name = 'lc_ain_users';
//状态值
const STATUS_DISABLE = 0; //禁用
const STATUS_NORMAL = 1; //正常
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
/**
* 根据id获取数据
* @param array() $ids
*/
public function get_map_by_ids($ids, $fileds = '')
{
$rows = [];
$ids = array_filter($ids);
if ($ids) {
if ($ids) {
$cf_ids = implode(',', $ids);
$where = [
"id in ($cf_ids)" => null
];
$rows = $this->map('id', '', $where, '', '', '', $fileds);
}
}
return $rows;
}
}
@@ -0,0 +1,36 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Fish_users_model extends HD_Model
{
private $table_name = 'lc_fish_users';
//状态值
const STATUS_DISABLE = 0; //禁用
const STATUS_NORMAL = 1; //正常
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
/**
* 根据id获取数据
* @param array() $ids
*/
public function get_map_by_ids($ids, $fileds = '')
{
$rows = [];
$ids = array_filter($ids);
if ($ids) {
if ($ids) {
$cf_ids = implode(',', $ids);
$where = [
"id in ($cf_ids)" => null
];
$rows = $this->map('id', '', $where, '', '', '', $fileds);
}
}
return $rows;
}
}