Browse Source

重复变量修改。

hotfix/yujt_opt
zhangyuan 5 years ago
parent
commit
dfd8a253b4
  1. 2
      epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_grid_query_month.ktr
  2. 70
      epdc-cloud-property/doc/kettle/screen-yushan/screen_ys_grid_rank_month_update_year.ktr

2
epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_grid_query_month.ktr

@ -2837,7 +2837,7 @@ AND del_flag = '0'</sql>
<fields>
<field>
<field_name>project_num</field_name>
<variable_name>project_num</variable_name>
<variable_name>project_num_month</variable_name>
<variable_type>PARENT_JOB</variable_type>
<default_value/>
</field>

70
epdc-cloud-property/doc/kettle/screen-yushan/screen_ys_grid_rank_month_update_year.ktr

@ -566,7 +566,7 @@ VALUES
</GUI>
</step>
<step>
<name>网格治理排行表-年</name>
<name>网格排名表 2</name>
<type>ExecSQL</type>
<description/>
<distribute>Y</distribute>
@ -581,21 +581,20 @@ VALUES
<single_statement>N</single_statement>
<replace_variables>Y</replace_variables>
<quoteString>N</quoteString>
<sql>INSERT INTO ys_grid_gov_rank (
comm_id,
comm_name,
<sql>INSERT INTO ys_grid_rank (
cal_date,
grid_name,
name,
grid_id,
comm_id,
comm_name,
topic_num,
project_num,
project_finish_num,
finish_rate,
create_time,
update_time
)
VALUES
(
${commId}, '${commName}', DATE_FORMAT(CURDATE(), '%Y'), '${communityGrid}', ${gridId}, ${project_num_year}, ${finish_project_num_year}, IFNULL(${finish_project_num_year} / ${project_num_year}, 0), NOW(), null
DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 1 MONTH), '%Y-%m'), '${communityGrid}', ${gridId}, ${commId}, '${commName}', ${topic_num}, ${project_num}, NOW(), null
)</sql>
<set_params>N</set_params>
<insert_field/>
@ -613,13 +612,13 @@ VALUES
</output>
</remotesteps>
<GUI>
<xloc>464</xloc>
<yloc>448</yloc>
<xloc>608</xloc>
<yloc>256</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>网格注册信息表</name>
<name>网格治理排行表-年</name>
<type>ExecSQL</type>
<description/>
<distribute>Y</distribute>
@ -634,21 +633,21 @@ VALUES
<single_statement>N</single_statement>
<replace_variables>Y</replace_variables>
<quoteString>N</quoteString>
<sql>INSERT INTO ys_grid_reg (
<sql>INSERT INTO ys_grid_gov_rank (
comm_id,
comm_name,
cal_date,
name,
grid_name,
grid_id,
reg_user_num,
reg_party_num,
reg_group_num,
project_num,
project_finish_num,
finish_rate,
create_time,
update_time
)
VALUES
(
${commId}, '${commName}', DATE_FORMAT(NOW(),'%Y'), '${communityGrid}', ${gridId}, ${reg_user_num_year}, ${reg_party_num_year}, ${reg_group_num_year}, NOW(), null
${commId}, '${commName}', DATE_FORMAT(CURDATE(), '%Y'), '${communityGrid}', ${gridId}, ${project_num_year}, ${finish_project_num_year}, IFNULL(${finish_project_num_year} / ${project_num_year}, 0), NOW(), null
)</sql>
<set_params>N</set_params>
<insert_field/>
@ -667,12 +666,12 @@ VALUES
</remotesteps>
<GUI>
<xloc>464</xloc>
<yloc>352</yloc>
<yloc>448</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>网格排名表 2</name>
<name>网格治理排行表-月</name>
<type>ExecSQL</type>
<description/>
<distribute>Y</distribute>
@ -687,20 +686,21 @@ VALUES
<single_statement>N</single_statement>
<replace_variables>Y</replace_variables>
<quoteString>N</quoteString>
<sql>INSERT INTO ys_grid_rank (
cal_date,
name,
grid_id,
<sql>INSERT INTO ys_grid_gov_rank (
comm_id,
comm_name,
topic_num,
cal_date,
grid_name,
grid_id,
project_num,
project_finish_num,
finish_rate,
create_time,
update_time
)
VALUES
(
DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 1 MONTH), '%Y-%m'), '${communityGrid}', ${gridId}, ${commId}, '${commName}', ${topic_num}, ${project_num}, NOW(), null
${commId}, '${commName}', DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 1 MONTH), '%Y-%m'), '${communityGrid}', ${gridId}, ${project_num_month}, ${finish_project_num}, IFNULL(${finish_project_num} / ${project_num}, 0), NOW(), null
)</sql>
<set_params>N</set_params>
<insert_field/>
@ -719,12 +719,12 @@ VALUES
</remotesteps>
<GUI>
<xloc>608</xloc>
<yloc>256</yloc>
<yloc>480</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>网格治理排行表-月</name>
<name>网格注册信息表</name>
<type>ExecSQL</type>
<description/>
<distribute>Y</distribute>
@ -739,21 +739,21 @@ VALUES
<single_statement>N</single_statement>
<replace_variables>Y</replace_variables>
<quoteString>N</quoteString>
<sql>INSERT INTO ys_grid_gov_rank (
<sql>INSERT INTO ys_grid_reg (
comm_id,
comm_name,
cal_date,
grid_name,
name,
grid_id,
project_num,
project_finish_num,
finish_rate,
reg_user_num,
reg_party_num,
reg_group_num,
create_time,
update_time
)
VALUES
(
${commId}, '${commName}', DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 1 MONTH), '%Y-%m'), '${communityGrid}', ${gridId}, ${project_num}, ${finish_project_num}, IFNULL(${finish_project_num} / ${project_num}, 0), NOW(), null
${commId}, '${commName}', DATE_FORMAT(NOW(),'%Y'), '${communityGrid}', ${gridId}, ${reg_user_num_year}, ${reg_party_num_year}, ${reg_group_num_year}, NOW(), null
)</sql>
<set_params>N</set_params>
<insert_field/>
@ -771,8 +771,8 @@ VALUES
</output>
</remotesteps>
<GUI>
<xloc>608</xloc>
<yloc>480</yloc>
<xloc>464</xloc>
<yloc>352</yloc>
<draw>Y</draw>
</GUI>
</step>

Loading…
Cancel
Save