|
@@ -160,7 +160,7 @@ class Audit extends BaseController
|
|
|
$order = empty($param['order']) ? 'id desc' : $param['order'];
|
|
|
|
|
|
$list2 = $this->Auditmodel->alias('a')->join("cost_project c", "a.project_id=c.id", 'left')
|
|
|
- ->field("a.*,c.project_status,c.sent_review_amount,c.engineering_type,c.review_unit_name")->where($where)->order($order)
|
|
|
+ ->field("a.*,c.project_status,c.sent_review_amount,c.engineering_type,c.review_unit_name,c.proprietor_status")->where($where)->order($order)
|
|
|
->paginate($rows, false, ['query' => $param])
|
|
|
->each(function ($item) {
|
|
|
|
|
@@ -309,8 +309,8 @@ class Audit extends BaseController
|
|
|
$id = isset($param['id']) ? $param['id'] : 0;
|
|
|
|
|
|
$detail = $this->model->getCostProjectById($id);
|
|
|
-
|
|
|
$comment = Db::name("project_comment")->where("project_id", $id)->order('create_time', 'desc')->select();
|
|
|
+
|
|
|
$file_array = Db::name('ProjectFile')
|
|
|
->field('mf.id,mf.topic_id,mf.admin_id,f.name,f.filesize,f.filepath,f.fileext,f.create_time,f.admin_id,a.nickname as admin_name')
|
|
|
->alias('mf')
|
|
@@ -2413,7 +2413,7 @@ class Audit extends BaseController
|
|
|
$this->model->update(["id" => $project_id, "proprietor_status" => 2]);//改为待接收
|
|
|
|
|
|
}
|
|
|
- $this->model->update(["id" => $project_id, "proprietor_status" => 2]);
|
|
|
+// $this->model->update(["id" => $project_id, "proprietor_status" => 2]);
|
|
|
|
|
|
$sponsor_id = $this->Auditmodel->where('id', $id)->value('sponsor_id');
|
|
|
// $fiscal_nature = Db::name('CostProject')->where('project_id', $project_id)->value('fiscal_nature');
|