|
@@ -86,10 +86,10 @@ class Maintain extends Apic
|
|
|
$map['mt.orderno'] = $orderno;
|
|
|
}
|
|
|
if(!empty($projectname)){
|
|
|
- $map['uc.projectname'] = $projectname;
|
|
|
+ $map['uc.projectname'] = ['LIKE','%'.$projectname.'%'];
|
|
|
}
|
|
|
if(!empty($header)){
|
|
|
- $map['uc.header'] = $header;
|
|
|
+ $map['uc.header'] = ['LIKE','%'.$header.'%'];
|
|
|
}
|
|
|
if($status != 'ALL'){
|
|
|
$map['mt.status'] = $status;
|
|
@@ -190,12 +190,14 @@ class Maintain extends Apic
|
|
|
$info = Db::name($this->table)->alias('mt')
|
|
|
->join('user_company uc','mt.uc_id = uc.id','LEFT')
|
|
|
->join('user','mt.user_id = user.id','LEFT')
|
|
|
- ->field('mt.*,uc.projectname,uc.header,uc.projectaddress,user.username as user_username,user.nickname as user_nickname')
|
|
|
+ ->join('worker','mt.worker_id = worker.id','LEFT')
|
|
|
+ ->field('mt.*,uc.projectname,uc.header,uc.header_mobile,uc.projectaddress,user.nickname as user_nickname,user.mobile as user_mobile,worker.truename as worker_truename,worker.mobile as worker_mobile')
|
|
|
->where('mt.id',$id)->where('mt.company_id',$this->auth->company_id)
|
|
|
->find();
|
|
|
|
|
|
$maintain_model = new Maintainmodel();
|
|
|
$info['status_text'] = $maintain_model->status_data($info['status']);
|
|
|
+ $info['status_colorType'] = $maintain_model->status_colorType($info['status']);
|
|
|
|
|
|
//假状态
|
|
|
$info['fake_status'] = $this->fake_status($info['status']);
|