|
@@ -318,7 +318,8 @@ class Maintain extends Apic
|
|
|
->join('user_company uc','mt.uc_id = uc.id','LEFT')
|
|
|
->join('user','mt.user_id = user.id','LEFT')
|
|
|
->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')
|
|
|
+ ->join('company','mt.company_id = company.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,company.companyname')
|
|
|
->where('mt.id',$id)
|
|
|
->find();
|
|
|
|