|
menuSql = fmt.Sprintf(`SELECT * from %s WHERE (id IN (%s) OR (parentid IN (%s) AND status = 0)) %s ORDER BY FIELD(id , %s);`, entity.ConfigJson.WorkTableOut, strings.Join(pIds, ","), strings.Join(pIds, ","), moreSql, strings.Join(pIds, ","))
|
|
menuSql = fmt.Sprintf(`SELECT * from %s WHERE (id IN (%s) OR (parentid IN (%s) AND status = 0)) %s ORDER BY FIELD(id , %s);`, entity.ConfigJson.WorkTableOut, strings.Join(pIds, ","), strings.Join(pIds, ","), moreSql, strings.Join(pIds, ","))
|
|
entId, _ = strconv.ParseInt(in.EntId, 10, 64)
|
|
entId, _ = strconv.ParseInt(in.EntId, 10, 64)
|