|
@@ -0,0 +1,78 @@
|
|
|
+package com.winhc.bigdata.spark.jobs.dynamic.tables
|
|
|
+
|
|
|
+import com.winhc.bigdata.spark.jobs.dynamic.CompanyDynamicHandle
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author yyn
|
|
|
+ * @Date 2020/8/12
|
|
|
+ * @Description TODO
|
|
|
+ */
|
|
|
+//送达公告
|
|
|
+case class company_send_announcement_list()extends CompanyDynamicHandle {
|
|
|
+ /**
|
|
|
+ * 信息描述
|
|
|
+ *
|
|
|
+ * @param old_map
|
|
|
+ * @param new_map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ override def get_rta_desc(old_map: Map[String, String], new_map: Map[String, String]): String = new_map("title")
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 变更内容
|
|
|
+ *
|
|
|
+ * @param old_map
|
|
|
+ * @param new_map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ override def get_change_content(old_map: Map[String, String], new_map: Map[String, String], cname: String = null): String = {
|
|
|
+ s"""发布日期:$new_map("start_date")\n
|
|
|
+ |法院名称:$new_map("court")\n""".stripMargin
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 变更时间
|
|
|
+ *
|
|
|
+ * @param new_map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+// override def get_change_time(new_map: Map[String, String]): String = new_map("biz_date")
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 风险等级
|
|
|
+ *
|
|
|
+ * @param old_map
|
|
|
+ * @param new_map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ override def get_info_risk_level(old_map: Map[String, String], new_map: Map[String, String]): String = {
|
|
|
+ if(new_map("defendant_cids").contains("cid"))//原告
|
|
|
+ {
|
|
|
+ "警示信息"
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ "提示信息"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param rowkey
|
|
|
+ * @param cid
|
|
|
+ * @param change_fields
|
|
|
+ * @param old_map
|
|
|
+ * @param new_map
|
|
|
+ * @return cid
|
|
|
+ * cname
|
|
|
+ * info_type
|
|
|
+ * rta_desc
|
|
|
+ * change_content
|
|
|
+ * change_time
|
|
|
+ * biz_id
|
|
|
+ * sub_info_type
|
|
|
+ * info_risk_level
|
|
|
+ * winhc_suggest
|
|
|
+ */
|
|
|
+ override def handle(rowkey: String, bizDate: String, cid: String, change_fields: Seq[String], old_map: Map[String, String], new_map: Map[String, String], cname: String, suggestion: String): Seq[(String, String, String, String, String, String, String, String, String, String)] = {
|
|
|
+ super.handle(rowkey, bizDate, cid, change_fields, old_map, new_map, cname, "该企业发布送达公告信息")
|
|
|
+ }
|
|
|
+}
|