|
@@ -102,9 +102,9 @@ class Report extends BaseController
|
|
|
|
|
|
$where = [
|
|
|
["cp_project_report.delete_time", "=", 0],
|
|
|
- ["project_id", "=", $param["project_id"]]
|
|
|
- //["a.status",">",0000]//业主待审批之前
|
|
|
-
|
|
|
+ ["project_id", "=", $param["project_id"]],
|
|
|
+// ["a.status",">",7],//财评审完后才到业主
|
|
|
+ ["a.status","<>",2]//财评拒绝后,业主端不显示
|
|
|
];
|
|
|
|
|
|
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
|
|
@@ -427,7 +427,6 @@ class Report extends BaseController
|
|
|
}
|
|
|
$this->Pushmessage->pushMessage($detail["project_id"], $handle['financial'], $handle['company']);
|
|
|
|
|
|
-
|
|
|
$this->model->where("id", $id)->update(["status" => 3]);
|
|
|
add_project_log("发起删除项目报告审批", $detail["project_id"], $detail["title"]);
|
|
|
return to_assign(0, "操作成功");
|
|
@@ -438,6 +437,7 @@ class Report extends BaseController
|
|
|
* 财评
|
|
|
* 同意-报告
|
|
|
*/
|
|
|
+
|
|
|
public function agree_report()
|
|
|
{
|
|
|
$param = get_params();
|
|
@@ -445,64 +445,45 @@ class Report extends BaseController
|
|
|
$param = $handle['param'];
|
|
|
//return json($param);
|
|
|
//dump($param);
|
|
|
-
|
|
|
+
|
|
|
$type = isset($param['type']) ? $param['type'] : 0;
|
|
|
- //dump($type);
|
|
|
- if (!isset($param["type"])) {
|
|
|
+
|
|
|
+ if (!isset($param["type"])) {//在审核列表通过
|
|
|
$id = isset($param['id']) ? $param['id'] : 0;
|
|
|
$this->model->where("id", $id)->update(["status" => 1]);//财评已通过
|
|
|
$detail = $this->model->where("id", $id)->find();//在Project_report里
|
|
|
- //更新报告时间
|
|
|
-// $num = $this->model->where([
|
|
|
-// ["project_id", "=", $detail["project_id"],
|
|
|
-// ["type", ">", $detail["type"]]],
|
|
|
-// ["status", ">", 1],//已通过
|
|
|
-// ["status", "<>", 2],//不等于
|
|
|
-// ["status", "<", 4]//小于删除通过
|
|
|
-// ])->count();//找到status=3删除待审核的
|
|
|
- //type,0初审,1对数,2审定
|
|
|
- //$report_status = $detail["type"] + 1;//更新到对数
|
|
|
-// if ($num == 0) {
|
|
|
-// $data = ['report_time' => time(), "report_status" => $report_status];
|
|
|
-// } else {
|
|
|
-// $data = ['report_time' => time()];
|
|
|
-// }
|
|
|
-
|
|
|
-// try {
|
|
|
-// Db::name("cost_project")->where("id", $detail["project_id"])->update($data);//
|
|
|
-// } catch (DbException $e) {
|
|
|
-// return to_assign(1, '操作失败,原因:' . $e->getMessage());
|
|
|
-// }
|
|
|
|
|
|
try {
|
|
|
- Db::name("project_audit")->where([["else_id", "=", $id]])->update(["audit_status" => 2, "audit_time" => time()]);//更新通过
|
|
|
+ Db::name("project_audit")->where([["else_id", "=", $id]])->update(["audit_status" => 2, "audit_time" => time()]);//更新审批通过
|
|
|
} catch (DbException $e) {
|
|
|
return to_assign(1, '操作失败,原因:' . $e->getMessage());
|
|
|
}
|
|
|
//给业主新增报告审核
|
|
|
- $where = [
|
|
|
- ["project_id", "=", $param["project_id"]],
|
|
|
- ["else_id", "=", $param["else_id"]],//项目报告id
|
|
|
- ["audit_type", "=", 4]
|
|
|
- ];
|
|
|
- $detail = Db::name("cost_project")->where("id", $param["project_id"])->field("sent_review_head,sent_review_head_name")->find();
|
|
|
+ $where = [
|
|
|
+ ["project_id", "=", $param["project_id"]],
|
|
|
+ ["else_id", "=", $param["else_id"]],//项目报告id
|
|
|
+ ["audit_type", "=", 2]
|
|
|
+ ];
|
|
|
+ $de = Db::name("cost_project")->where("id", $param["project_id"])->field("sent_review_head,sent_review_head_name")->find();
|
|
|
+ if (isset($de)) {
|
|
|
$auditData = $this->Auditmodel->where($where)->find()->toArray();
|
|
|
$auditData["audit_name"] = "业主报告审核";
|
|
|
$auditData["audit_status"] = 1;
|
|
|
- $auditData["audit_type"] = 2;
|
|
|
- $auditData["approver"] = $detail["sent_review_head"];
|
|
|
- $auditData["approver_name"] = $detail["sent_review_head_name"];
|
|
|
+ //$auditData["audit_type"] = 2;
|
|
|
+ $auditData["approver"] = $de["sent_review_head"];
|
|
|
+ $auditData["approver_name"] = $de["sent_review_head_name"];
|
|
|
$auditData["create_time"] = time();
|
|
|
$auditData["audit_time"] = null;
|
|
|
$auditData["remark"] = null;
|
|
|
$auditData["audit_remark"] = null;
|
|
|
unset($auditData["id"]);
|
|
|
try {
|
|
|
- Db::name("project_report")->where("id", $param["else_id"])->update(["status" => 1]);
|
|
|
$this->Auditmodel->save($auditData);
|
|
|
} catch (\Exception $e) {
|
|
|
return to_assign(1, '操作失败,原因:' . $e->getMessage());
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
//发给公司
|
|
|
$people = $this->model->where('id', $id)->value("maker_id");
|
|
@@ -519,51 +500,66 @@ class Report extends BaseController
|
|
|
} else {
|
|
|
$handle['proprietor'] = array_merge($handle['proprietor'], (array)$proprietor);
|
|
|
}
|
|
|
-
|
|
|
- $this->Pushmessage->pushMessage($detail["project_id"], $handle['financial'], $handle['company'], $handle['proprietor']);
|
|
|
- add_project_log('审批通过', $param['project_id'], "财政局报告审批通过");
|
|
|
-
|
|
|
|
|
|
+ $this->Pushmessage->pushMessage($detail["project_id"], $handle['financial'], $handle['company'], $handle['proprietor']);
|
|
|
+ add_project_log('财政局审批通过', $param['project_id'], "报告审批通过");
|
|
|
|
|
|
- } else {
|
|
|
+ } else {//在项目报告里同意
|
|
|
$param['audit_time'] = time();
|
|
|
$this->Auditmodel->where('id', $param['id'])->strict(false)->field(true)->update(["audit_status" => 2, "audit_time" => time()]);
|
|
|
add_log('edit', $param['id'], $param);
|
|
|
$id = $param['id'];
|
|
|
+ $this->model->where("id", $id)->update(["status" => 1]);//财评已通过
|
|
|
unset($param["id"]);
|
|
|
|
|
|
$detail = ProjectReport::where("id", $param["else_id"])->find();
|
|
|
- $num = $this->model->where([
|
|
|
- ["project_id", "=", $detail["project_id"],
|
|
|
- ["type", ">", $detail["type"]]],
|
|
|
- ["status", ">", 1],
|
|
|
- ["status", "<>", 2],
|
|
|
- ["status", "<", 4]
|
|
|
- ])->count();
|
|
|
- //type,0初审,1对数,2审定
|
|
|
- $report_status = $detail["type"] + 1;
|
|
|
- if ($num == 0) {
|
|
|
- $data = ['report_time' => time(), "report_status" => $report_status];
|
|
|
- } else {
|
|
|
- $data = ['report_time' => time()];
|
|
|
- }
|
|
|
+
|
|
|
$type_status = $detail["status"];
|
|
|
- if ($type_status == 0) {
|
|
|
+ if ($type_status == 0) {//通过
|
|
|
ProjectReport::where("id", $param["else_id"])->update(["status" => 1, "update_time" => time()]);
|
|
|
- $this->CostModel->where('id', $param['project_id'])->strict(false)->update($data);
|
|
|
- } elseif ($type_status == 3) {
|
|
|
- ProjectReport::where("id", $param["else_id"])->update(["status" => 4, "update_time" => time()]);
|
|
|
+ }
|
|
|
+ //给业主新增报告审核
|
|
|
+ $where = [
|
|
|
+ ["project_id", "=", $param["project_id"]],
|
|
|
+ ["else_id", "=", $param["else_id"]],//项目报告id
|
|
|
+ ["audit_type", "=", 2]
|
|
|
+ ];
|
|
|
+ $de = Db::name("cost_project")->where("id", $param["project_id"])->field("sent_review_head,sent_review_head_name")->find();
|
|
|
+ if (isset($de)) {
|
|
|
+ $auditData = $this->Auditmodel->where($where)->find()->toArray();
|
|
|
+ $auditData["audit_name"] = "业主报告审核";
|
|
|
+ $auditData["audit_status"] = 1;
|
|
|
+ //$auditData["audit_type"] = 2;
|
|
|
+ $auditData["approver"] = $de["sent_review_head"];
|
|
|
+ $auditData["approver_name"] = $de["sent_review_head_name"];
|
|
|
+ $auditData["create_time"] = time();
|
|
|
+ $auditData["audit_time"] = null;
|
|
|
+ $auditData["remark"] = null;
|
|
|
+ $auditData["audit_remark"] = null;
|
|
|
+ unset($auditData["id"]);
|
|
|
+ try {
|
|
|
+ $this->Auditmodel->save($auditData);
|
|
|
+ } catch (\Exception $e) {
|
|
|
+ return to_assign(1, '操作失败,原因:' . $e->getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$people = $this->Auditmodel->where('id', $id)->value("sponsor_id");
|
|
|
+
|
|
|
+ $proprietor =Db::name("costProject")->where("id",$detail["project_id"])->value("sent_review_head");
|
|
|
+ if (empty($handle['proprietor'])) {
|
|
|
+ $handle['proprietor'] = (array)$proprietor;
|
|
|
+ } else {
|
|
|
+ $handle['proprietor'] = array_merge($handle['proprietor'], (array)$proprietor);
|
|
|
+ }
|
|
|
if (empty($handle['company'])) {
|
|
|
$handle['company'] = (array)$people;
|
|
|
} else {
|
|
|
$handle['company'] = array_merge($handle['company'], (array)$people);
|
|
|
}
|
|
|
- $this->Pushmessage->pushMessage($param['project_id'], $handle['financial'], $handle['company']);
|
|
|
+ $this->Pushmessage->pushMessage($param['project_id'], $handle['financial'], $handle['company'],$handle['proprietor']);
|
|
|
|
|
|
- add_project_log('审批通过', $param['project_id'], "报告审批通过");
|
|
|
+ add_project_log('财政局审批通过', $param['project_id'], "报告审批通过");
|
|
|
}
|
|
|
|
|
|
return to_assign(0, "操作成功");
|
|
@@ -571,7 +567,7 @@ class Report extends BaseController
|
|
|
|
|
|
/**
|
|
|
* 业主
|
|
|
- * 同意-报告 (未修改)
|
|
|
+ * 同意-报告 (已修改)
|
|
|
*/
|
|
|
public function proprietor_agree_report()
|
|
|
{
|
|
@@ -579,7 +575,7 @@ class Report extends BaseController
|
|
|
$handle = $this->Pushmessage->handleParam($param);
|
|
|
$param = $handle['param'];
|
|
|
$type = isset($param['type']) ? $param['type'] : 0;
|
|
|
- if (!isset($param["type"])) {
|
|
|
+ if (!isset($param["type"])) {//在审核列表通过
|
|
|
$id = isset($param['id']) ? $param['id'] : 0;
|
|
|
$this->model->where("id", $id)->update(["status" => 8]);
|
|
|
$detail = $this->model->where("id", $id)->find();
|
|
@@ -619,14 +615,13 @@ class Report extends BaseController
|
|
|
$this->Pushmessage->pushMessage($detail["project_id"], $handle['financial'], $handle['company']);
|
|
|
|
|
|
|
|
|
- } else {
|
|
|
+ } else {//在项目报告里通过
|
|
|
$param['audit_time'] = time();
|
|
|
$this->Auditmodel->where('id', $param['id'])->strict(false)->field(true)->update(["audit_status" => 2, "audit_time" => time()]);
|
|
|
add_log('edit', $param['id'], $param);
|
|
|
$id = $param['id'];
|
|
|
unset($param["id"]);
|
|
|
|
|
|
-
|
|
|
$detail = ProjectReport::where("id", $param["else_id"])->find();
|
|
|
$num = $this->model->where([
|
|
|
["project_id", "=", $detail["project_id"],
|
|
@@ -643,14 +638,15 @@ class Report extends BaseController
|
|
|
$data = ['report_time' => time()];
|
|
|
}
|
|
|
$type_status = $detail["status"];
|
|
|
- if ($type_status == 0) {
|
|
|
- ProjectReport::where("id", $param["else_id"])->update(["status" => 1, "update_time" => time()]);
|
|
|
+ if ($type_status == 1) {//财政局已通过
|
|
|
+ ProjectReport::where("id", $param["else_id"])->update(["status" => 8, "update_time" => time()]);
|
|
|
$this->CostModel->where('id', $param['project_id'])->strict(false)->update($data);
|
|
|
- } elseif ($type_status == 3) {
|
|
|
- ProjectReport::where("id", $param["else_id"])->update(["status" => 4, "update_time" => time()]);
|
|
|
+ } elseif ($type_status == 4) {//财政局删除已通过
|
|
|
+ ProjectReport::where("id", $param["else_id"])->update(["status" => 10, "update_time" => time()]);
|
|
|
}
|
|
|
|
|
|
$people = $this->Auditmodel->where('id', $id)->value("sponsor_id");
|
|
|
+
|
|
|
if (empty($handle['company'])) {
|
|
|
$handle['company'] = (array)$people;
|
|
|
} else {
|
|
@@ -658,10 +654,9 @@ class Report extends BaseController
|
|
|
}
|
|
|
$this->Pushmessage->pushMessage($param['project_id'], $handle['financial'], $handle['company']);
|
|
|
|
|
|
- add_project_log('审批通过', $param['project_id'], "报告审批通过");
|
|
|
+ add_project_log('业主审批通过', $param['project_id'], "报告审批通过");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
return to_assign(0, "操作成功");
|
|
|
}
|
|
|
|
|
@@ -674,13 +669,13 @@ class Report extends BaseController
|
|
|
$param = get_params();
|
|
|
$handle = $this->Pushmessage->handleParam($param);
|
|
|
$param = $handle['param'];
|
|
|
- if (!isset($param["type"])) {
|
|
|
+ if (!isset($param["type"])) {//审核列表拒绝
|
|
|
$id = isset($param['id']) ? $param['id'] : 0;
|
|
|
$this->model->where("id", $id)->update(["status" => 2]);
|
|
|
|
|
|
-
|
|
|
try {
|
|
|
- Db::name("project_audit")->where([["else_id", "=", $id]])->update(["audit_status" => 3, "audit_remark" => $param["audit_remark"]]);
|
|
|
+ //全部的都变成已拒绝,修改为仅改变财评的状态
|
|
|
+ Db::name("project_audit")->where([["else_id", "=", $id]])->where("audit_name","财评报告审核")->update(["audit_status" => 3, "audit_remark" => $param["audit_remark"]]);
|
|
|
} catch (DbException $e) {
|
|
|
return to_assign(1, '操作失败,原因:' . $e->getMessage());
|
|
|
}
|
|
@@ -695,24 +690,24 @@ class Report extends BaseController
|
|
|
$project_id = $this->model->where("id", $id)->value("project_id");
|
|
|
$this->Pushmessage->pushMessage($project_id, $handle['financial'], $handle['company']);
|
|
|
|
|
|
- } else {
|
|
|
+ } else {//项目报告列表拒绝
|
|
|
$param = get_params();
|
|
|
$handle = $this->Pushmessage->handleParam($param);
|
|
|
$param = $handle['param'];
|
|
|
try {
|
|
|
- $param['audit_time'] = time();
|
|
|
+
|
|
|
$this->Auditmodel->where('id', $param["id"])->strict(false)->field(true)->update(["audit_status" => 3, "audit_remark" => $param["audit_remark"], "audit_time" => time()]);
|
|
|
|
|
|
$id = $param['id'];
|
|
|
unset($param["id"]);
|
|
|
|
|
|
- $type_status = Db::name("contact")->where("id", $param["else_id"])->value("status");
|
|
|
+ $type_status = Db::name("project_report")->where("id", $param["else_id"])->value("status");
|
|
|
if ($type_status == 0) {
|
|
|
//新建
|
|
|
- Db::name("contact")->where("id", $param["else_id"])->update(["status" => 2, "update_time" => time()]);
|
|
|
+ Db::name("project_report")->where("id", $param["else_id"])->update(["status" => 2, "update_time" => time()]);
|
|
|
} elseif ($type_status == 3) {
|
|
|
//删除
|
|
|
- Db::name("contact")->where("id", $param["else_id"])->update(["status" => 5, "update_time" => time()]);
|
|
|
+ Db::name("project_report")->where("id", $param["else_id"])->update(["status" => 5, "update_time" => time()]);
|
|
|
}
|
|
|
$people = $this->Auditmodel->where('id', $id)->value("sponsor_id");
|
|
|
if (empty($handle['company'])) {
|
|
@@ -733,7 +728,7 @@ class Report extends BaseController
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 业主 (未修改)
|
|
|
+ * 业主 (已修改)
|
|
|
* 不同意-报告
|
|
|
*/
|
|
|
public function proprietor_un_report()
|
|
@@ -741,18 +736,17 @@ class Report extends BaseController
|
|
|
$param = get_params();
|
|
|
$handle = $this->Pushmessage->handleParam($param);
|
|
|
$param = $handle['param'];
|
|
|
- if (!isset($param["type"])) {
|
|
|
+ if (!isset($param["type"])) {//项目报告里审核
|
|
|
$id = isset($param['id']) ? $param['id'] : 0;
|
|
|
- $this->model->where("id", $id)->update(["status" => 2]);
|
|
|
-
|
|
|
+ $this->model->where("id", $id)->update(["status" => 9]);
|
|
|
|
|
|
try {
|
|
|
- Db::name("project_audit")->where([["else_id", "=", $id]])->update(["audit_status" => 3, "audit_remark" => $param["audit_remark"]]);
|
|
|
+ //一开始将所有的都改成了拒绝,改成了只改变业主的审批状态
|
|
|
+ Db::name("project_audit")->where([["else_id", "=", $id]])->where("audit_name","业主报告审核")->update(["audit_status" => 3, "audit_remark" => $param["audit_remark"]]);
|
|
|
} catch (DbException $e) {
|
|
|
return to_assign(1, '操作失败,原因:' . $e->getMessage());
|
|
|
}
|
|
|
|
|
|
-
|
|
|
$people = $this->model->where('id', $id)->value("maker_id");
|
|
|
if (empty($handle['company'])) {
|
|
|
$handle['company'] = (array)$people;
|
|
@@ -760,26 +754,26 @@ class Report extends BaseController
|
|
|
$handle['company'] = array_merge($handle['company'], (array)$people);
|
|
|
}
|
|
|
$project_id = $this->model->where("id", $id)->value("project_id");
|
|
|
- $this->Pushmessage->pushMessage($project_id, $handle['financial'], $handle['company']);
|
|
|
+ $this->Pushmessage->pushMessage($project_id, [], $handle['company']);
|
|
|
|
|
|
- } else {
|
|
|
+ } else {//审核列表里审核
|
|
|
$param = get_params();
|
|
|
$handle = $this->Pushmessage->handleParam($param);
|
|
|
$param = $handle['param'];
|
|
|
try {
|
|
|
- $param['audit_time'] = time();
|
|
|
+ //$param['audit_time'] = time();
|
|
|
$this->Auditmodel->where('id', $param["id"])->strict(false)->field(true)->update(["audit_status" => 3, "audit_remark" => $param["audit_remark"], "audit_time" => time()]);
|
|
|
|
|
|
$id = $param['id'];
|
|
|
unset($param["id"]);
|
|
|
|
|
|
- $type_status = Db::name("contact")->where("id", $param["else_id"])->value("status");
|
|
|
- if ($type_status == 0) {
|
|
|
+ $type_status = Db::name("project_report")->where("id", $param["else_id"])->value("status");
|
|
|
+ if ($type_status == 1) {
|
|
|
//新建
|
|
|
- Db::name("contact")->where("id", $param["else_id"])->update(["status" => 2, "update_time" => time()]);
|
|
|
- } elseif ($type_status == 3) {
|
|
|
+ Db::name("project_report")->where("id", $param["else_id"])->update(["status" => 9, "update_time" => time()]);
|
|
|
+ } elseif ($type_status == 4) {
|
|
|
//删除
|
|
|
- Db::name("contact")->where("id", $param["else_id"])->update(["status" => 5, "update_time" => time()]);
|
|
|
+ Db::name("project_report")->where("id", $param["else_id"])->update(["status" => 11, "update_time" => time()]);
|
|
|
}
|
|
|
$people = $this->Auditmodel->where('id', $id)->value("sponsor_id");
|
|
|
if (empty($handle['company'])) {
|
|
@@ -787,8 +781,7 @@ class Report extends BaseController
|
|
|
} else {
|
|
|
$handle['company'] = array_merge($handle['company'], (array)$people);
|
|
|
}
|
|
|
- $this->Pushmessage->pushMessage($param['project_id'], $handle['financial'], $handle['company']);
|
|
|
-
|
|
|
+ $this->Pushmessage->pushMessage($param['project_id'], [], $handle['company']);
|
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
return to_assign(1, '操作失败,原因:' . $e->getMessage());
|
|
@@ -808,7 +801,8 @@ class Report extends BaseController
|
|
|
$param = get_params();
|
|
|
$handle = $this->Pushmessage->handleParam($param);
|
|
|
$param = $handle['param'];
|
|
|
- if (!isset($param["type"])) {
|
|
|
+ if (!isset($param["type"])) {//在
|
|
|
+
|
|
|
$id = isset($param['id']) ? $param['id'] : 0;
|
|
|
$this->model->where("id", $id)->update(["status" => 4]);
|
|
|
|
|
@@ -848,37 +842,18 @@ class Report extends BaseController
|
|
|
}
|
|
|
$project_id = $this->model->where("id", $id)->value("project_id");
|
|
|
$this->Pushmessage->pushMessage($project_id, $handle['financial'], $handle['company']);
|
|
|
- } else {
|
|
|
+ } else {//审核项目里
|
|
|
$param['audit_time'] = time();
|
|
|
$this->Auditmodel->where('id', $param['id'])->strict(false)->field(true)->update(["audit_status" => 2, "audit_time" => time()]);
|
|
|
|
|
|
$id = $param['id'];
|
|
|
unset($param["id"]);
|
|
|
|
|
|
-
|
|
|
$detail = ProjectReport::where("id", $param["else_id"])->find();
|
|
|
- $num = $this->model->where([
|
|
|
- ["project_id", "=", $detail["project_id"],
|
|
|
- ["type", ">=", $detail["type"]]],
|
|
|
- ["status", ">", 1],
|
|
|
- ["status", "<>", 2],
|
|
|
- ["status", "<", 4]
|
|
|
- ])->count();
|
|
|
- //type,0初审,1对数,2审定
|
|
|
- $report_status = $detail["type"];
|
|
|
- if ($num == 0) {
|
|
|
- $data = ['report_time' => time(), "report_status" => $report_status];
|
|
|
- } else {
|
|
|
- $data = ['report_time' => time()];
|
|
|
- }
|
|
|
+
|
|
|
$type_status = $detail["status"];
|
|
|
- if ($type_status == 0) {
|
|
|
- ProjectReport::where("id", $param["else_id"])->update(["status" => 1, "update_time" => time()]);
|
|
|
- $this->CostModel->where('id', $param['project_id'])->strict(false)->update($data);
|
|
|
- } elseif ($type_status == 3) {
|
|
|
+ if ($type_status == 3) {
|
|
|
ProjectReport::where("id", $param["else_id"])->update(["status" => 4, "update_time" => time()]);
|
|
|
- Db::name("cost_project")->where("id", $detail["project_id"])->update(["report_status" => $report_status]);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
$people = $this->Auditmodel->where('id', $id)->value("sponsor_id");
|