|
@@ -51,13 +51,10 @@ case class general_handler(s: SparkSession,
|
|
|
|
|
|
val clean_up =
|
|
|
s"""
|
|
|
- |${
|
|
|
- inter_cols.contains("company_id") match {
|
|
|
- case true => "company_id <> '0' AND"
|
|
|
- case false => ""
|
|
|
- }
|
|
|
- }
|
|
|
- |trim(concat_ws('',${md5_fields.mkString(",")})) <> ''
|
|
|
+ |company_id <> '0'
|
|
|
+ |AND company_id is not null
|
|
|
+ |AND ${md5_fields.map(" " + _ + " is not null ").mkString("AND")}
|
|
|
+ |AND trim(concat_ws('',${md5_fields.mkString(",")})) <> ''
|
|
|
|""".stripMargin
|
|
|
|
|
|
val up = inter_cols.contains("update_time") match {
|