...
|
...
|
@@ -2768,6 +2768,22 @@ class CommonController extends RestBaseController |
|
|
return $res;
|
|
|
}
|
|
|
|
|
|
//根据项目id获取月检title
|
|
|
public function getCheckTitleById($project_id){
|
|
|
$res = Db::name('check')
|
|
|
->where('project_id',$project_id)
|
|
|
->field('id,ins_m_time')
|
|
|
->order('id desc')
|
|
|
->select()
|
|
|
->toArray();
|
|
|
$project = $this->getProjectName($project_id);
|
|
|
foreach($res as &$value) {
|
|
|
$value['title'] = $project['project_name'] . '月检' . date('Y-m-d', $value['ins_m_time']);
|
|
|
unset($value['ins_m_time']);
|
|
|
}
|
|
|
return $res;
|
|
|
}
|
|
|
|
|
|
//乙方领导id查询独立年检title
|
|
|
public function getYearsTitle(){
|
|
|
$u_s_id_s = $this->getUidB();
|
...
|
...
|
|