|
|
|
@ -575,7 +575,9 @@ WHERE old_change_promote_id in ({$promoteData})";
|
|
|
|
|
if (!empty($_GET['title'])) {
|
|
|
|
|
$map['title'] = ['like', "%{$_GET['title']}%"];
|
|
|
|
|
}
|
|
|
|
|
$list = M('service_agreement', 'tab_')->where($map)->page($p, $row)->select();
|
|
|
|
|
$list = M('service_agreement', 'tab_')
|
|
|
|
|
->field("tab_service_agreement.*, group_concat(distinct(tab_promote_company.company_name)) as company_name")
|
|
|
|
|
->join('tab_promote_company on tab_promote_company.service_agreement_show = tab_service_agreement.id', 'LEFT')->where($map)->page($p, $row)->order("status desc")->select();
|
|
|
|
|
$count = M('service_agreement', 'tab_')->where($map)->count();
|
|
|
|
|
$page = set_pagination($count, $row);
|
|
|
|
|
if ($page) {
|
|
|
|
@ -617,4 +619,11 @@ WHERE old_change_promote_id in ({$promoteData})";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function serviceAgreementSetDefault($id)
|
|
|
|
|
{
|
|
|
|
|
M('service_agreement', 'tab_')->save(['status'=>1]);
|
|
|
|
|
M('service_agreement', 'tab_')->where(['id'=>$id])->save(['status'=>2]);
|
|
|
|
|
return $this->success('设置完成');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|