|
@@ -0,0 +1,28 @@
|
|
|
+
|
|
|
+package com.winhc.bigdata.spark.jobs.chance.table
|
|
|
+
|
|
|
+import com.winhc.bigdata.spark.jobs.chance.CompanyChangeHandle
|
|
|
+import com.winhc.bigdata.spark.utils.ChangeExtractUtils
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author: Yan Yongnian
|
|
|
+ * @Date: 2020/8/5
|
|
|
+ * @Description:
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+//破产公告
|
|
|
+
|
|
|
+case class bankruptcy_open_case(equCols: Seq[String]) extends CompanyChangeHandle with Serializable {
|
|
|
+
|
|
|
+ override def getLabel(oldMap: Map[String, String], newMap: Map[String, String]): String = {
|
|
|
+ val str = ChangeExtractUtils.getTags(newMap, "破产重整", Array("case_no", "case_type", "agency_court", "applicant", "respondent", "public_date"))
|
|
|
+ str
|
|
|
+ }
|
|
|
+
|
|
|
+ override def getBizTime(newMap: Map[String, String]): String = newMap("public_date")
|
|
|
+
|
|
|
+ override def getUpdateTitle(newMap: Map[String, String]): String = getValueOrNull(newMap("case_no"), s"${newMap("case_no")}破产重整发生变更")
|
|
|
+
|
|
|
+ override def getInsertTitle(newMap: Map[String, String]): String = getValueOrNull(newMap("case_no"), s"新增${newMap("case_no")}破产重整")
|
|
|
+}
|