Răsfoiți Sursa

crm版本号返回

WH01243 1 an în urmă
părinte
comite
ce671c5309
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      service/infoService.go

+ 1 - 2
service/infoService.go

@@ -25,8 +25,7 @@ func (l *InfoService) Myinfo(sid string) []byte {
 			//查询所有部门标识
 			entId := gconv.String(info_m["entId"])
 			entDeptId := gconv.String(info_m["entDeptId"])
-			deptArr := entity.JyMysql.SelectBySql("select GROUP_CONCAT(DISTINCT b.id)  as depIDArr from entniche_department_parent a"
-			"     INNER JOIN entniche_department b "
+			deptArr := entity.JyMysql.SelectBySql("select GROUP_CONCAT(DISTINCT b.id)  as depIDArr from entniche_department_parent a     INNER JOIN entniche_department b "
 			"on (b.ent_id=? and (b.id=? or (a.pid=? and a.id=b.id)))", entId, entDeptId, entDeptId)
 			if len(*deptArr) > 0 {
 				depIDArr = common.InterfaceToStr((*deptArr)[0]["depIDArr"])