Browse Source

所有议题以及项目统计去掉指定网格的数据

hotfix/yujt_opt
zhangyuan 5 years ago
parent
commit
d69db09af3
  1. 390
      epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_comm_query_month.ktr
  2. 42
      epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_grid_query.ktr
  3. 1224
      epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_grid_query_month.ktr
  4. 20
      epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_grid_query_year.ktr

390
epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_comm_query_month.ktr

@ -867,6 +867,11 @@ FROM
epdc_issue i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND ISSUE_STATE ='2'
AND find_in_set('${commId}', i.ALL_DEPT_IDS)
AND DATE_FORMAT(i.CREATED_TIME, '%Y%m') = DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 1 MONTH), '%Y%m')</sql>
@ -878,62 +883,16 @@ WHERE
<cached_row_meta_active>N</cached_row_meta_active>
<row-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>participate_of_news</name>
<length>34</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>participate_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>read_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>read_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<type>Integer</type>
<storagetype>normal</storagetype>
<name>like_of_news</name>
<length>32</length>
<name>topic_finish_num</name>
<length>15</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>like_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<origin>月新增结案议题数</origin>
<comments>topic_finish_num</comments>
<conversion_Mask>####0;-####0</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<grouping_symbol>,</grouping_symbol>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
@ -979,6 +938,11 @@ FROM
epdc_item i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND i.ITEM_STATE = '10'
AND find_in_set('${commId}', i.ALL_DEPT_IDS)
AND DATE_FORMAT(i.CREATED_TIME, '%Y%m') = DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 1 MONTH), '%Y%m')</sql>
@ -990,62 +954,16 @@ WHERE
<cached_row_meta_active>N</cached_row_meta_active>
<row-meta>
<value-meta>
<type>BigNumber</type>
<type>Integer</type>
<storagetype>normal</storagetype>
<name>participate_of_news</name>
<length>34</length>
<name>project_finish_num</name>
<length>15</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>participate_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<origin>月新增结案项目数</origin>
<comments>project_finish_num</comments>
<conversion_Mask>####0;-####0</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>read_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>read_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>like_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>like_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<grouping_symbol>,</grouping_symbol>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
@ -1091,6 +1009,11 @@ FROM
epdc_issue i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND find_in_set('${commId}', i.ALL_DEPT_IDS)
AND DATE_FORMAT(i.CREATED_TIME, '%Y%m') = DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 1 MONTH), '%Y%m')</sql>
<limit>0</limit>
@ -1101,62 +1024,16 @@ WHERE
<cached_row_meta_active>N</cached_row_meta_active>
<row-meta>
<value-meta>
<type>BigNumber</type>
<type>Integer</type>
<storagetype>normal</storagetype>
<name>participate_of_news</name>
<length>34</length>
<name>new_case_num</name>
<length>15</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>participate_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<origin>月新增议题数</origin>
<comments>new_case_num</comments>
<conversion_Mask>####0;-####0</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>read_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>read_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>like_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>like_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<grouping_symbol>,</grouping_symbol>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
@ -1202,6 +1079,11 @@ FROM
epdc_item i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND find_in_set('${commId}', i.ALL_DEPT_IDS)
AND DATE_FORMAT(i.CREATED_TIME, '%Y%m') = DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 1 MONTH), '%Y%m')</sql>
<limit>0</limit>
@ -1212,62 +1094,16 @@ WHERE
<cached_row_meta_active>N</cached_row_meta_active>
<row-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>participate_of_news</name>
<length>34</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>participate_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>read_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>read_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<type>Integer</type>
<storagetype>normal</storagetype>
<name>like_of_news</name>
<length>32</length>
<name>new_project_num</name>
<length>15</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>like_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<origin>月新增项目数</origin>
<comments>new_project_num</comments>
<conversion_Mask>####0;-####0</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<grouping_symbol>,</grouping_symbol>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
@ -1313,6 +1149,11 @@ FROM
epdc_issue i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND find_in_set('${commId}', i.ALL_DEPT_IDS);</sql>
<limit>0</limit>
<lookup/>
@ -1322,62 +1163,16 @@ WHERE
<cached_row_meta_active>N</cached_row_meta_active>
<row-meta>
<value-meta>
<type>BigNumber</type>
<type>Integer</type>
<storagetype>normal</storagetype>
<name>participate_of_news</name>
<length>34</length>
<name>case_num</name>
<length>15</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>participate_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<origin>议题数</origin>
<comments>case_num</comments>
<conversion_Mask>####0;-####0</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>read_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>read_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>like_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>like_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<grouping_symbol>,</grouping_symbol>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
@ -1695,6 +1490,11 @@ FROM
epdc_item i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND find_in_set('${commId}', i.ALL_DEPT_IDS);</sql>
<limit>0</limit>
<lookup/>
@ -1704,62 +1504,16 @@ WHERE
<cached_row_meta_active>N</cached_row_meta_active>
<row-meta>
<value-meta>
<type>BigNumber</type>
<type>Integer</type>
<storagetype>normal</storagetype>
<name>participate_of_news</name>
<length>34</length>
<name>project_num</name>
<length>15</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>participate_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<origin>项目数</origin>
<comments>project_num</comments>
<conversion_Mask>####0;-####0</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>read_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>read_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>
<collator_disabled>Y</collator_disabled>
<collator_strength>0</collator_strength>
<sort_descending>N</sort_descending>
<output_padding>N</output_padding>
<date_format_lenient>N</date_format_lenient>
<date_format_locale>zh_CN</date_format_locale>
<date_format_timezone>Asia/Shanghai</date_format_timezone>
<lenient_string_to_number>N</lenient_string_to_number>
</value-meta>
<value-meta>
<type>BigNumber</type>
<storagetype>normal</storagetype>
<name>like_of_news</name>
<length>32</length>
<precision>0</precision>
<origin>新闻参与量阅读量点赞量</origin>
<comments>like_of_news</comments>
<conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask>
<decimal_symbol>.</decimal_symbol>
<grouping_symbol/>
<grouping_symbol>,</grouping_symbol>
<currency_symbol/>
<trim_type>none</trim_type>
<case_insensitive>N</case_insensitive>

42
epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_grid_query.ktr

@ -1098,6 +1098,11 @@ FROM
WHERE
DEL_FLAG = '0'
AND ISSUE_STATE = '2'
AND grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND find_in_set(${gridId}, ALL_DEPT_IDS);</sql>
<limit>0</limit>
<lookup/>
@ -1209,6 +1214,11 @@ FROM
WHERE
DEL_FLAG = '0'
AND ITEM_STATE = '10'
AND grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND find_in_set(${gridId}, ALL_DEPT_IDS);</sql>
<limit>0</limit>
<lookup/>
@ -1588,6 +1598,7 @@ FROM
epdc_group
WHERE
DEL_FLAG = '0'
AND STATE = '10'
AND YEAR (CREATED_TIME) = YEAR (NOW())
AND find_in_set(${gridId}, ALL_DEPT_IDS);</sql>
<limit>0</limit>
@ -1723,6 +1734,11 @@ FROM
WHERE
DEL_FLAG = '0'
AND ITEM_STATE = '10'
AND grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND DATE_FORMAT(CREATED_TIME, '%Y%m') = DATE_FORMAT(NOW(), '%Y%m')
AND find_in_set(${gridId}, ALL_DEPT_IDS);</sql>
<limit>0</limit>
@ -1843,6 +1859,11 @@ FROM
epdc_issue
WHERE
DEL_FLAG = '0'
AND grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND DATE_FORMAT(CREATED_TIME, '%Y%m') = DATE_FORMAT(NOW(), '%Y%m')
AND GRID_ID = ${gridId}
GROUP BY
@ -1856,6 +1877,11 @@ FROM
epdc_item
WHERE
DEL_FLAG = '0'
AND grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND DATE_FORMAT(CREATED_TIME, '%Y%m') = DATE_FORMAT(NOW(), '%Y%m')
AND GRID_ID = ${gridId}
GROUP BY
@ -1995,6 +2021,7 @@ FROM
epdc_group
WHERE
DEL_FLAG = '0'
AND STATE = '10'
AND DATE_FORMAT(CREATED_TIME, '%Y%m') = DATE_FORMAT(CURDATE(), '%Y%m')
AND find_in_set(${gridId}, ALL_DEPT_IDS);</sql>
<limit>0</limit>
@ -2129,6 +2156,11 @@ FROM
epdc_item i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND DATE_FORMAT(i.CREATED_TIME, '%Y%m') = DATE_FORMAT(NOW(), '%Y%m')
AND find_in_set(${gridId}, i.ALL_DEPT_IDS);</sql>
<limit>0</limit>
@ -2240,6 +2272,11 @@ FROM
epdc_issue i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND find_in_set(${gridId}, i.ALL_DEPT_IDS);</sql>
<limit>0</limit>
<lookup/>
@ -3883,6 +3920,11 @@ FROM
epdc_item i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND find_in_set(${gridId}, i.ALL_DEPT_IDS);</sql>
<limit>0</limit>
<lookup/>

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

File diff suppressed because it is too large

20
epdc-cloud-property/doc/kettle/screen-yushan/screen_totality_grid_query_year.ktr

@ -812,6 +812,11 @@ FROM
WHERE
DEL_FLAG = '0'
AND ITEM_STATE = '10'
AND grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND YEAR (CREATED_TIME) = YEAR ( date_sub(now(), INTERVAL 1 YEAR) )
AND find_in_set(${gridId}, ALL_DEPT_IDS);</sql>
<limit>0</limit>
@ -932,6 +937,11 @@ FROM
epdc_issue
WHERE
DEL_FLAG = '0'
AND grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND CREATED_TIME BETWEEN STR_TO_DATE( CONCAT( YEAR ( NOW())- 1, '-01-01' ), '%Y-%m-%d' )
AND STR_TO_DATE( CONCAT( YEAR ( NOW()), '-01-01' ), '%Y-%m-%d' )
AND GRID_ID = ${gridId}
@ -946,6 +956,11 @@ AND STR_TO_DATE( CONCAT( YEAR ( NOW()), '-01-01' ), '%Y-%m-%d' )
epdc_item
WHERE
DEL_FLAG = '0'
AND grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND CREATED_TIME BETWEEN STR_TO_DATE( CONCAT( YEAR ( NOW())- 1, '-01-01' ), '%Y-%m-%d' )
AND STR_TO_DATE( CONCAT( YEAR ( NOW()), '-01-01' ), '%Y-%m-%d' )
AND GRID_ID = ${gridId}
@ -1493,6 +1508,11 @@ FROM
epdc_item i
WHERE
i.DEL_FLAG = '0'
AND i.grid_id NOT IN (
1258690654403125249,
1258690914995232770,
1258691044142047233
)
AND YEAR (i.CREATED_TIME) = YEAR ( date_sub(now(), INTERVAL 1 YEAR) )
AND find_in_set(${gridId}, i.ALL_DEPT_IDS);</sql>
<limit>0</limit>

Loading…
Cancel
Save