Browse Source

fix: 动态 公司状态 过滤存续转在业

许家凯 3 years ago
parent
commit
c8e4d93850

+ 5 - 0
src/main/scala/com/winhc/bigdata/spark/ng/dynamic/handle/company.scala

@@ -170,9 +170,14 @@ case class company(is_inc: Boolean) extends NgCompanyDynamicHandle {
       Seq(record)
     }
 
+    val companyStatus_std = Seq("存续", "在业").toSet
+
     //todo 公司状态变化
     @deprecated
     def companyStateChange(before: String, after: String): Seq[CompanyDynamicRecord] = {
+      if (companyStatus_std.contains(before) && companyStatus_std.contains(after)) {
+        return Seq.empty
+      }
       val r = (after.contains("销")) ? NgCompanyRiskLevelType.Caution | NgCompanyRiskLevelType.Prompt
       val record = getSingleRecordChange("101006", "公司状态变化", company_id, company_name, before, after, riskLevel = r)
       Seq(record)