|
@@ -14,6 +14,9 @@ func EntPerson(entId int64, isAll bool) (map[string]string, map[string]string, m
|
|
|
phoneData := map[string]string{}
|
|
|
nameData := map[string]string{}
|
|
|
positionData := map[int]string{}
|
|
|
+ if entId == 0 {
|
|
|
+ return phoneData, nameData, positionData
|
|
|
+ }
|
|
|
//在职人员查询
|
|
|
personList := IC.MainMysql.SelectBySql(fmt.Sprintf(`SELECT a.phone,IF(a.name = "我" AND b.role_id = 1 ,"%s",a.name) AS name,b.role_id FROM %s a
|
|
|
LEFT JOIN entniche_user_role b on a.id = b.user_id
|