...
|
...
|
@@ -184,7 +184,7 @@ func SeleteGetChanceTypeList(companyid int64) []protocol.ChanceTypeBase { |
|
|
}
|
|
|
|
|
|
func SelectCompanyUserList(pageIndex int, pageSize int, companyid int64, userName string) protocol.SelectCompanyUserList {
|
|
|
datasql := `SELECT a.id,d.nick_name,c.name AS department_name,c.id AS department_id
|
|
|
datasql := `SELECT b.id,a.id as user_company_id,d.nick_name,c.name AS department_name,c.id AS department_id
|
|
|
FROM user_company AS a
|
|
|
LEFT JOIN user_department AS b ON a.id = b.user_company_id
|
|
|
LEFT JOIN department AS c ON b.department_id = c.id
|
...
|
...
|
|