Quellcode durchsuchen

添加股权抵押摘要

xufei vor 3 Jahren
Ursprung
Commit
ddc7d460eb

+ 28 - 0
src/main/scala/com/winhc/bigdata/spark/ng/utils/CompanySummaryNg_new.scala

@@ -408,6 +408,34 @@ object CompanySummaryNg_new {
       ))
     )
 
+    , SummaryArgs(table_name = "company_equity_pledge_holder"
+      , companyIdField = "company_id"
+      , where = "company_id is not null and length(company_id) = 32 "
+      , groupByInfo = GroupByInfoNg(field = "deleted", value_alias = Seq(
+        ("0", s"company_equity_pledge_holder_del_0_company")
+        , ("1", s"company_equity_pledge_holder_del_1_company")
+      ))
+    )
+
+    , SummaryArgs(table_name = "company_equity_pledge_holder"
+      , companyIdField = "holder_id"
+      , distinctField = "rowkey,holder_id"
+      , where = "holder_id is not null and length(holder_id) = 32 "
+      , groupByInfo = GroupByInfoNg(field = "deleted", value_alias = Seq(
+        ("0", s"company_equity_pledge_holder_del_0_holder")
+        , ("1", s"company_equity_pledge_holder_del_1_holder")
+      ))
+    )
+    , SummaryArgs(table_name = "company_equity_pledge_holder"
+      , companyIdField = "pledgee_id"
+      , distinctField = "rowkey,pledgee_id"
+      , where = "pledgee_id is not null and length(pledgee_id) = 32 "
+      , groupByInfo = GroupByInfoNg(field = "deleted", value_alias = Seq(
+        ("0", s"company_equity_pledge_holder_del_0_pledgee")
+        , ("1", s"company_equity_pledge_holder_del_1_pledgee")
+      ))
+    )
+
   )
 
 

+ 9 - 1
src/main/scala/com/winhc/bigdata/spark/ng/utils/PersonSummaryNg_new.scala

@@ -159,7 +159,15 @@ object PersonSummaryNg_new {
         , ("1", s"company_equity_info_del_1_pledgee")
       ))
     )
-
+    , SummaryArgs(table_name = "company_equity_pledge_holder"
+      , companyIdField = "holder_id"
+      , distinctField = "rowkey,holder_id"
+      , where = "holder_id is not null and length(holder_id) = 33 "
+      , groupByInfo = GroupByInfoNg(field = "deleted", value_alias = Seq(
+        ("0", s"company_equity_pledge_holder_del_0_holder")
+        , ("1", s"company_equity_pledge_holder_del_1_holder")
+      ))
+    )
 
   )