提交 49e0566f 编写于 作者: wuyunfeng's avatar wuyunfeng

修改流量dw层表处理逻辑

上级 fc07074a
...@@ -75,7 +75,7 @@ object MyConfigSession { ...@@ -75,7 +75,7 @@ object MyConfigSession {
|app_version,device_type,created_time,date_time,module_class1,module_class2 from ${MyConfigSession.HIVE_TABLE1} |app_version,device_type,created_time,date_time,module_class1,module_class2 from ${MyConfigSession.HIVE_TABLE1}
| where app_version >= '3.1.7' | where app_version >= '3.1.7'
| AND ((action_type ='ACTION_CLICK' and action_code != 'null' ) OR action_type ='ACTION_VIEW' ) | AND ((action_type ='ACTION_CLICK' and action_code != 'null' ) OR action_type ='ACTION_VIEW' )
| and (menu_code != '0' and menu_code !='null' and menu_code !='' and length(menu_code) <= 3 ) | and (menu_code != '0' and menu_code !='null' and menu_code !='' and (length(menu_code) <= 3 or length(menu_code)=7) )
""".stripMargin """.stripMargin
//从dw_fact_log_session_TERM表中筛选数据 //从dw_fact_log_session_TERM表中筛选数据
...@@ -85,7 +85,7 @@ object MyConfigSession { ...@@ -85,7 +85,7 @@ object MyConfigSession {
|app_version,device_type,device_brand,device_model,net_type,created_time,date_time,module_class1,module_class2 from ${MyConfigSession.HIVE_TABLE4} |app_version,device_type,device_brand,device_model,net_type,created_time,date_time,module_class1,module_class2 from ${MyConfigSession.HIVE_TABLE4}
| where app_version >= '3.1.7' | where app_version >= '3.1.7'
| AND ((action_type ='ACTION_CLICK' and action_code != 'null' ) OR action_type ='ACTION_VIEW' ) | AND ((action_type ='ACTION_CLICK' and action_code != 'null' ) OR action_type ='ACTION_VIEW' )
| and (menu_code != '0' and menu_code !='null' and menu_code !='' and length(menu_code) <= 3 and cast(menu_code as int ) is not null) | and (menu_code != '0' and menu_code !='null' and menu_code !='' and (length(menu_code) <= 3 or length(menu_code)=7) and cast(menu_code as int ) is not null)
""".stripMargin """.stripMargin
......
...@@ -363,8 +363,8 @@ class SessionProcessTerm { ...@@ -363,8 +363,8 @@ class SessionProcessTerm {
if ("MenuCode_081".equals(menu_code_new)) { if ("MenuCode_081".equals(menu_code_new)) {
menu_code_new = "081" //针对异常menu_code值单独处理 menu_code_new = "081" //针对异常menu_code值单独处理
} }
//匹配menu_code:如果上述截取出来的menu_code为(''||null||0||length(menu_code)>3 ) and action is ACTION_VIEW //匹配menu_code:如果上述截取出来的menu_code为(''||null||0||length(menu_code)>3 && !component_tag.contains("#") ) and action is ACTION_VIEW
if ((menu_code_new.equals("") || menu_code_new.equals("null") || menu_code_new.equals("0") || menu_code_new.length > 3) if ((menu_code_new.equals("") || menu_code_new.equals("null") || menu_code_new.equals("0") || (menu_code_new.length > 3 && !component_tag.contains("#")) )
&& action_type.equals("ACTION_VIEW")) { && action_type.equals("ACTION_VIEW")) {
menu_code_new = "0" //关联不上的显示为0 menu_code_new = "0" //关联不上的显示为0
import scala.util.control.Breaks._ import scala.util.control.Breaks._
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册