diff --git a/application/models/operator_model.php b/application/models/operator_model.php index de601a02..f608bc6f 100644 --- a/application/models/operator_model.php +++ b/application/models/operator_model.php @@ -130,10 +130,10 @@ class Operator_model extends CI_Model //获取作者的昵称 function get_author_nikename($user_code){ $sql=" - SELECT top 1 isnull(UserInfo.NickName,'') as NickName,UserInfo.customPic, UserInfo.userid, UserInfo.sex, UserInfo.Email,Userinfo.intro + SELECT top 1 isnull(uio.NickName,'') as NickName,uio.customPic, uio.userid, uio.sex, uio.Email,uio.intro ,OPI_SN,OPI_Name,OPI_Email,OPI_FirstName,OPI_Code FROM tourmanager.dbo.OperatorInfo left JOIN - UserInfo ON UserInfo.Email = tourmanager.dbo.OperatorInfo.OPI_Email + tourmanager.dbo.UserInfo uio ON uio.Email = tourmanager.dbo.OperatorInfo.OPI_Email WHERE tourmanager.dbo.OperatorInfo.OPI_Code = '{$user_code}' ";