|
@@ -1,6 +1,7 @@
|
|
|
package com.winhc.bigdata.spark.ng.dynamic.utils
|
|
|
|
|
|
import com.alibaba.fastjson.JSON
|
|
|
+import com.winhc.bigdata.spark.ng.dynamic.NgCompanyRiskLevelType.NgCompanyRiskLevelType
|
|
|
import com.winhc.bigdata.spark.ng.dynamic._
|
|
|
import org.apache.commons.lang3.StringUtils
|
|
|
|
|
@@ -13,7 +14,7 @@ import scala.collection.mutable
|
|
|
abstract class DailyAggHandle() extends NgCompanyDynamicHandle {
|
|
|
override def filter: (String, String, Seq[String], Map[String, String], Map[String, String]) => Boolean = (update_type: String, biz_date: String, change_fields: Seq[String], old_data: Map[String, String], new_data: Map[String, String]) => update_type.equals("insert")
|
|
|
|
|
|
- def getDynamicInfo(new_data: Map[String, String]): (String, Map[String, String])
|
|
|
+ def getDynamicInfo(new_data: Map[String, String]): (String, Map[String, Any])
|
|
|
|
|
|
def getAssociationEntityInfo(new_data: Map[String, String]): Seq[AssociationEntityInfo]
|
|
|
|
|
@@ -92,7 +93,7 @@ abstract class DailyAggHandle() extends NgCompanyDynamicHandle {
|
|
|
|
|
|
*/
|
|
|
protected def getEntity(json: String, id_key: String, name_key: String
|
|
|
- , risk_level: NgCompanyRiskLevelType.RiskLevelType //变更风险等级
|
|
|
+ , risk_level: NgCompanyRiskLevelType //变更风险等级
|
|
|
, rta_info: String //描述
|
|
|
): Seq[AssociationEntityInfo] = {
|
|
|
if (StringUtils.isEmpty(json)) {
|