|
@@ -34,8 +34,52 @@ object args_company_job {
|
|
|
, explode_args("defendant_info", "$.litigant_id", "defendant_info_id_explode")
|
|
|
)
|
|
|
)
|
|
|
+ , args_company_job("company_court_announcement", Seq("case_no", "announcement_type", "publish_date", "court_name")
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',case_no_trim(case_no),announcement_type,split_date(cast(publish_date as String)),court_name )))"
|
|
|
+ , is_super_filter = false
|
|
|
+ , where = "is_json_str(plaintiff_info) and is_json_str(litigant_info)"
|
|
|
+ , explode_args = Seq(
|
|
|
+ explode_args("plaintiff_info", "$.litigant_id", "plaintiff_info_id_explode")
|
|
|
+ , explode_args("litigant_info", "$.litigant_id", "litigant_info_id_explode")
|
|
|
+ )
|
|
|
+ )
|
|
|
+ , args_company_job("company_send_announcement", Seq("court", "start_date", "title")
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',court,split_date(cast(start_date as String)),title )))"
|
|
|
+ , is_super_filter = false
|
|
|
+ , where = "is_json_str(litigant_info) and is_json_str(defendant_info) and is_json_str(plaintiff_info)"
|
|
|
+ , explode_args = Seq(
|
|
|
+ explode_args("plaintiff_info", "$.litigant_id", "plaintiff_info_id_explode")
|
|
|
+ , explode_args("defendant_info", "$.litigant_id", "defendant_info_id_explode")
|
|
|
+ )
|
|
|
+ )
|
|
|
+ , args_company_job("company_court_register", Seq("case_no", "filing_date")
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',case_no_trim(case_no),split_date(cast(filing_date as String)) )))"
|
|
|
+ , is_super_filter = false
|
|
|
+ , where = "is_json_str(litigant_info) and is_json_str(defendant_info) and is_json_str(plaintiff_info)"
|
|
|
+ , explode_args = Seq(
|
|
|
+ explode_args("plaintiff_info", "$.litigant_id", "plaintiff_info_id_explode")
|
|
|
+ , explode_args("defendant_info", "$.litigant_id", "defendant_info_id_explode")
|
|
|
+ )
|
|
|
+ )
|
|
|
+ , args_company_job("company_zxr_final_case", Seq("case_no")
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',case_no )))"
|
|
|
+ , is_super_filter = false
|
|
|
+ )
|
|
|
+ , args_company_job("company_tax_contravention", Seq("case_info", "company_id")
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',case_info,company_id )))"
|
|
|
+ , is_super_filter = false
|
|
|
+ )
|
|
|
+ , args_company_job("company_own_tax", Seq("tax_balance", "tax_category", "company_id")
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',tax_balance,tax_category,company_id )))"
|
|
|
+ , is_super_filter = false
|
|
|
+ )
|
|
|
+ , args_company_job("company_check_info", Seq("check_type", "check_result", "check_org","check_date","company_id")
|
|
|
+ , rowkey_udf = "md5(cleanup(concat_ws('',check_type,check_result,check_org,split_date(cast(check_date as String)),company_id )))"
|
|
|
+ , is_super_filter = false
|
|
|
+ )
|
|
|
)
|
|
|
|
|
|
+
|
|
|
def get_args_company_job(tn: String): args_company_job = {
|
|
|
tab_md5_fields.find(p => tn.equals(p.tableName)).getOrElse(throw new NullPointerException("tn is not fount"))
|
|
|
}
|