|
@@ -5,7 +5,6 @@ import java.util.{Calendar, Date, Locale}
|
|
|
import org.apache.commons.lang3.StringUtils
|
|
|
import org.apache.commons.lang3.time.DateFormatUtils
|
|
|
import org.apache.spark.sql.SparkSession
|
|
|
-import java.util.regex.Pattern
|
|
|
|
|
|
/**
|
|
|
* @Author: XuJiakai
|
|
@@ -66,11 +65,4 @@ object BaseUtil {
|
|
|
c.add(Calendar.DATE, 1 * n)
|
|
|
DateFormatUtils.format(c.getTime.getTime, pattern)
|
|
|
}
|
|
|
-
|
|
|
- def cleanup(col :String): String ={
|
|
|
- if(StringUtils.isNotBlank(col)){
|
|
|
- pattern.matcher(col).replaceAll("")
|
|
|
- }else{""}
|
|
|
- }
|
|
|
-
|
|
|
}
|