def parseIds(ids: String): Seq[Long] = { ids.split(",").flatMap(id => Try(id.trim.toLong).toOption) }
转载于:https://my.oschina.net/hycky/blog/1786097
def parseIds(ids: String): Seq[Long] = { ids.split(",").flatMap(id => Try(id.trim.toLong).toOption) }
转载于:https://my.oschina.net/hycky/blog/1786097