diff --git a/intelligent/single_yuejuan/transfer/total_control/set_variable/set_variable_neiwang.ktr b/intelligent/single_yuejuan/transfer/total_control/set_variable/set_variable_neiwang.ktr
index ab77871..54b2205 100644
--- a/intelligent/single_yuejuan/transfer/total_control/set_variable/set_variable_neiwang.ktr
+++ b/intelligent/single_yuejuan/transfer/total_control/set_variable/set_variable_neiwang.ktr
@@ -429,34 +429,26 @@
     <created_user>admin</created_user>
     <created_date>2020/01/04 14:20:10.613</created_date>
     <modified_user>admin</modified_user>
-    <modified_date>2021/06/08 14:08:39.364</modified_date>
+    <modified_date>2021/07/30 10:03:17.637</modified_date>
     <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
     <is_key_private>N</is_key_private>
   </info>
   <notepads>
   </notepads>
   <connection>
-    <name>intelligent_single_yuejuan_neiwang</name>
-    <server>10.1.103.251</server>
-    <type>MYSQL</type>
+    <name>intelligent_greenplum_neiwang</name>
+    <server>10.1.103.241</server>
+    <type>POSTGRESQL</type>
     <access>Native</access>
-    <database>union_yuejuan_yun</database>
-    <port>3306</port>
-    <username>dev</username>
-    <password>Encrypted 2be98afc86aa7f28ebf00a469fec3fd89</password>
+    <database>intelligent</database>
+    <port>5432</port>
+    <username>gpadmin</username>
+    <password>Encrypted 2be98afc86aa7f2e4cb13ba69fec3fd89</password>
     <servername/>
     <data_tablespace/>
     <index_tablespace/>
     <attributes>
       <attribute>
-        <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
-        <attribute>500</attribute>
-      </attribute>
-      <attribute>
-        <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
-        <attribute>true</attribute>
-      </attribute>
-      <attribute>
         <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
         <attribute>N</attribute>
       </attribute>
@@ -470,7 +462,7 @@
       </attribute>
       <attribute>
         <code>PORT_NUMBER</code>
-        <attribute>3306</attribute>
+        <attribute>5432</attribute>
       </attribute>
       <attribute>
         <code>PRESERVE_RESERVED_WORD_CASE</code>
@@ -481,10 +473,6 @@
         <attribute>N</attribute>
       </attribute>
       <attribute>
-        <code>STREAM_RESULTS</code>
-        <attribute>Y</attribute>
-      </attribute>
-      <attribute>
         <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
         <attribute>Y</attribute>
       </attribute>
@@ -568,16 +556,16 @@
       <method>none</method>
       <schema_name/>
     </partitioning>
-    <connection>intelligent_single_yuejuan_neiwang</connection>
+    <connection>intelligent_greenplum_neiwang</connection>
     <sql>select 
-id as task_id,
-exam_id,
-create_time as end_time,
-case when (select count(*) from task_list where task_status>1)>0
-then (select max(create_time) from task_list where task_status>1)
+a.id as task_id,
+a.exam_id,
+a.create_time as end_time,
+case when (select count(*) from single_yuejuan_source_process.task_list where task_status=2)>0
+then (select max(create_time) from single_yuejuan_source_process.task_list where task_status=2)
 else '2000-01-01 00:00:00' end start_time
-from task_list
-where task_status=1 and del_flag=0 and source_type=1</sql>
+from single_yuejuan_source_process.task_list a
+order by a.create_time limit 1</sql>
     <limit>0</limit>
     <lookup/>
     <execute_each_row>N</execute_each_row>
diff --git a/intelligent/union_yuejuan/transfer/total_control/set_variable/set_variable_neiwang.ktr b/intelligent/union_yuejuan/transfer/total_control/set_variable/set_variable_neiwang.ktr
index 632b32b..80a8616 100644
--- a/intelligent/union_yuejuan/transfer/total_control/set_variable/set_variable_neiwang.ktr
+++ b/intelligent/union_yuejuan/transfer/total_control/set_variable/set_variable_neiwang.ktr
@@ -429,7 +429,7 @@
     <created_user>admin</created_user>
     <created_date>2020/01/04 14:20:10.613</created_date>
     <modified_user>admin</modified_user>
-    <modified_date>2021/07/26 13:58:10.469</modified_date>
+    <modified_date>2021/07/30 10:05:23.900</modified_date>
     <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
     <is_key_private>N</is_key_private>
   </info>
@@ -570,14 +570,14 @@
     </partitioning>
     <connection>intelligent_union_yuejuan_neiwang</connection>
     <sql>select 
-id as task_id,
-exam_id,
-create_time as end_time,
-case when (select count(*) from task_list where task_status>1 and source_type=3)>0
-then (select max(create_time) from task_list where task_status>1 and source_type=3)
+a.id as task_id,
+a.exam_id,
+a.create_time as end_time,
+case when (select count(*) from union_yuejuan_source_process.task_list where task_status=2)>0
+then (select max(create_time) from union_yuejuan_source_process.task_list where task_status=2)
 else '2000-01-01 00:00:00' end start_time
-from task_list
-where task_status=1 and del_flag=0 and source_type=3</sql>
+from union_yuejuan_source_process.task_list a
+order by a.create_time limit 1</sql>
     <limit>0</limit>
     <lookup/>
     <execute_each_row>N</execute_each_row>