Commit 34901a6b by zsy

zsy

parent 9696fa0b
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<created_user>admin</created_user> <created_user>admin</created_user>
<created_date>2021/03/03 10:49:37.387</created_date> <created_date>2021/03/03 10:49:37.387</created_date>
<modified_user>admin</modified_user> <modified_user>admin</modified_user>
<modified_date>2021/03/12 14:35:42.282</modified_date> <modified_date>2021/03/12 15:15:35.290</modified_date>
<parameters> <parameters>
</parameters> </parameters>
<connection> <connection>
...@@ -1074,7 +1074,7 @@ a.question_config_id, ...@@ -1074,7 +1074,7 @@ a.question_config_id,
a.question_block_id, a.question_block_id,
a.create_time, a.create_time,
a.record_id, a.record_id,
(case when to_date(${start_time},'yyyy-mm-dd')='2000-01-01' then 1 else 0 end) as is_execute (case when ${start_time}='2000-01-01' then 1 else 0 end) as is_execute
from union_yuejuan_source.bus_exam_question_del_log a from union_yuejuan_source.bus_exam_question_del_log a
left join union_yuejuan_source_process.bus_exam_question_del_log b on a.id=b.id left join union_yuejuan_source_process.bus_exam_question_del_log b on a.id=b.id
where b.id is null;</sql> where b.id is null;</sql>
......
...@@ -428,7 +428,7 @@ ...@@ -428,7 +428,7 @@
<created_user>admin</created_user> <created_user>admin</created_user>
<created_date>2021/03/03 10:49:15.361</created_date> <created_date>2021/03/03 10:49:15.361</created_date>
<modified_user>admin</modified_user> <modified_user>admin</modified_user>
<modified_date>2020/12/16 14:19:38.438</modified_date> <modified_date>2021/03/12 15:14:09.696</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private> <is_key_private>N</is_key_private>
</info> </info>
...@@ -488,11 +488,54 @@ ...@@ -488,11 +488,54 @@
<order> <order>
<hop> <hop>
<from>Table input</from> <from>Table input</from>
<to>字段选择</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>字段选择</from>
<to>Set Variables</to> <to>Set Variables</to>
<enabled>Y</enabled> <enabled>Y</enabled>
</hop> </hop>
</order> </order>
<step> <step>
<name>Table input</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>intelligent_monitor_greenplum_neiwang</connection>
<sql>select
(case when (select count(id) from union_yuejuan_source_process.gp_time_interval where status=1)>0
then (select max(end_time)-interval '4 s' from union_yuejuan_source_process.gp_time_interval where status=1)
else '2000-01-01 00:00:00' end) as start_time,
(case when (select count(id) from union_yuejuan_source_process.gp_time_interval where status=1)>0
then (select max(end_time)-interval '4 s' from union_yuejuan_source_process.gp_time_interval where status=1)
else '2000-01-01 00:00:00' end) as start_time_date</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>N</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>176</xloc>
<yloc>160</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Set Variables</name> <name>Set Variables</name>
<type>SetVariable</type> <type>SetVariable</type>
<description/> <description/>
...@@ -510,6 +553,12 @@ ...@@ -510,6 +553,12 @@
<variable_type>ROOT_JOB</variable_type> <variable_type>ROOT_JOB</variable_type>
<default_value/> <default_value/>
</field> </field>
<field>
<field_name>start_time_date</field_name>
<variable_name>start_time_date</variable_name>
<variable_type>ROOT_JOB</variable_type>
<default_value/>
</field>
</fields> </fields>
<use_formatting>Y</use_formatting> <use_formatting>Y</use_formatting>
<attributes/> <attributes/>
...@@ -521,14 +570,14 @@ ...@@ -521,14 +570,14 @@
</output> </output>
</remotesteps> </remotesteps>
<GUI> <GUI>
<xloc>336</xloc> <xloc>480</xloc>
<yloc>160</yloc> <yloc>160</yloc>
<draw>Y</draw> <draw>Y</draw>
</GUI> </GUI>
</step> </step>
<step> <step>
<name>Table input</name> <name>字段选择</name>
<type>TableInput</type> <type>SelectValues</type>
<description/> <description/>
<distribute>Y</distribute> <distribute>Y</distribute>
<custom_distribution/> <custom_distribution/>
...@@ -537,16 +586,51 @@ ...@@ -537,16 +586,51 @@
<method>none</method> <method>none</method>
<schema_name/> <schema_name/>
</partitioning> </partitioning>
<connection>intelligent_monitor_greenplum_neiwang</connection> <fields>
<sql>select <field>
(case when (select count(id) from union_yuejuan_source_process.gp_time_interval where status=1)>0 <name>start_time</name>
then (select max(end_time)-interval '4 s' from union_yuejuan_source_process.gp_time_interval where status=1) <rename/>
else '2000-01-01 00:00:00' end) as start_time</sql> </field>
<limit>0</limit> <field>
<lookup/> <name>start_time_date</name>
<execute_each_row>N</execute_each_row> <rename/>
<variables_active>N</variables_active> </field>
<lazy_conversion_active>N</lazy_conversion_active> <select_unspecified>N</select_unspecified>
<meta>
<name>start_time</name>
<rename>start_time</rename>
<type>Timestamp</type>
<length>6</length>
<precision>-2</precision>
<conversion_mask/>
<date_format_lenient>false</date_format_lenient>
<date_format_locale/>
<date_format_timezone/>
<lenient_string_to_number>false</lenient_string_to_number>
<encoding/>
<decimal_symbol/>
<grouping_symbol/>
<currency_symbol/>
<storage_type/>
</meta>
<meta>
<name>start_time_date</name>
<rename>start_time_date</rename>
<type>Date</type>
<length>6</length>
<precision>-2</precision>
<conversion_mask/>
<date_format_lenient>false</date_format_lenient>
<date_format_locale/>
<date_format_timezone/>
<lenient_string_to_number>false</lenient_string_to_number>
<encoding/>
<decimal_symbol/>
<grouping_symbol/>
<currency_symbol/>
<storage_type/>
</meta>
</fields>
<attributes/> <attributes/>
<cluster_schema/> <cluster_schema/>
<remotesteps> <remotesteps>
...@@ -556,7 +640,7 @@ else '2000-01-01 00:00:00' end) as start_time</sql> ...@@ -556,7 +640,7 @@ else '2000-01-01 00:00:00' end) as start_time</sql>
</output> </output>
</remotesteps> </remotesteps>
<GUI> <GUI>
<xloc>176</xloc> <xloc>304</xloc>
<yloc>160</yloc> <yloc>160</yloc>
<draw>Y</draw> <draw>Y</draw>
</GUI> </GUI>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment