修改批量操作,只能看见自己的任务
Change-Id: I54fa2f1c61357e87909cef87dfb223bfa501f6c9
This commit is contained in:
parent
c7429bd019
commit
9cd1290ac8
|
@ -804,6 +804,13 @@ class Recharge extends CI_Controller
|
||||||
{
|
{
|
||||||
$this->load->library('lw_pagination2');
|
$this->load->library('lw_pagination2');
|
||||||
$jobId = $this->input->post('jobId');
|
$jobId = $this->input->post('jobId');
|
||||||
|
|
||||||
|
// 判断管理员 roleID 是否 = 1,如果不是就要限制只能看当前管理员的job_id
|
||||||
|
$where = '';
|
||||||
|
if($this->session->roleId != '1'){
|
||||||
|
$where = " and d.admin_id = '".$this->session->adminId."'";
|
||||||
|
}
|
||||||
|
|
||||||
$sql = "SELECT
|
$sql = "SELECT
|
||||||
a.id,
|
a.id,
|
||||||
a.job_id,
|
a.job_id,
|
||||||
|
@ -823,7 +830,7 @@ class Recharge extends CI_Controller
|
||||||
LEFT JOIN tb_user b ON a.user_id = b.id
|
LEFT JOIN tb_user b ON a.user_id = b.id
|
||||||
LEFT JOIN tb_area c on b.area_id = c.id
|
LEFT JOIN tb_area c on b.area_id = c.id
|
||||||
,tb_jf_recharge_job d
|
,tb_jf_recharge_job d
|
||||||
WHERE a.job_id = d.id and a.job_id = {$jobId}";
|
WHERE a.job_id = d.id and a.job_id = {$jobId} {$where}";
|
||||||
$param = null;
|
$param = null;
|
||||||
$hasWhere = true;
|
$hasWhere = true;
|
||||||
$group = null;
|
$group = null;
|
||||||
|
|
|
@ -308,7 +308,7 @@ class Recharge_model extends CI_Model
|
||||||
$where .= " and recharge_type_id = " . $data['recharge_type_id'];
|
$where .= " and recharge_type_id = " . $data['recharge_type_id'];
|
||||||
}
|
}
|
||||||
if (!$this->admin_model->chk_system_role($this->session->userdata['roleId'])) {
|
if (!$this->admin_model->chk_system_role($this->session->userdata['roleId'])) {
|
||||||
$where .= " and a.company_id = " . $this->session->userdata("companyId");
|
$where .= " and a.company_id = " . $this->session->userdata("companyId") . " and jrj.admin_id=" . $this->session->userdata("adminId") . " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "SELECT
|
$sql = "SELECT
|
||||||
|
|
Loading…
Reference in New Issue