Browse Source

update

yangzhenli
yangzhenli 1 year ago
parent
commit
3c23fd2836
  1. 16
      jnpf-tendering-biz/src/main/resources/mapper/Bidding_project_statisticsMapper.xml

16
jnpf-tendering-biz/src/main/resources/mapper/Bidding_project_statisticsMapper.xml

@ -27,9 +27,9 @@ @@ -27,9 +27,9 @@
SUM(CASE WHEN Item_classification = '5' THEN 1 ELSE 0 END) AS six,
SUM(CASE WHEN Item_classification = '6' THEN 1 ELSE 0 END) AS seven
FROM
jnpf_cloud.bidding_project_subscribe main
bidding_project_subscribe main
where main.id in (
select main_id from jnpf_cloud.bidding_project_subscribe_child child where 1=1 and root_child_flag='0'and main.main_status='7'
select main_id from bidding_project_subscribe_child child where 1=1 and root_child_flag='0'and main.main_status='7'
<if test="sql != null and sql !=''">
and ${sql}
</if>
@ -51,9 +51,9 @@ @@ -51,9 +51,9 @@
</foreach>
</if>
from
jnpf_cloud.bidding_project_subscribe main
bidding_project_subscribe main
where main.id in (
select main_id from jnpf_cloud.bidding_project_subscribe_child child where 1=1 and root_child_flag='0'and main.main_status='7'
select main_id from bidding_project_subscribe_child child where 1=1 and root_child_flag='0'and main.main_status='7'
<if test="sql != null and sql !=''">
and ${sql}
</if>
@ -75,9 +75,9 @@ @@ -75,9 +75,9 @@
SUM(CASE WHEN Item_classification = '5' THEN project_amount ELSE 0 END) AS six,
SUM(CASE WHEN Item_classification = '6' THEN project_amount ELSE 0 END) AS seven
FROM
jnpf_cloud.bidding_project_subscribe main
bidding_project_subscribe main
where main.id in (
select main_id from jnpf_cloud.bidding_project_subscribe_child child where 1=1 and root_child_flag='0'and main.main_status='7'
select main_id from bidding_project_subscribe_child child where 1=1 and root_child_flag='0'and main.main_status='7'
<if test="sql != null and sql !=''">
and ${sql}
</if>
@ -99,7 +99,7 @@ @@ -99,7 +99,7 @@
main.project_name
</if>
FROM
jnpf_cloud.bidding_project_subscribe main
bidding_project_subscribe main
<where>
main.reporting_corp=#{param.projectName}
<if test="param.statisticalType != null and (param.statisticalType =='1'.toString() or param.statisticalType =='3'.toString())">
@ -110,7 +110,7 @@ @@ -110,7 +110,7 @@
</if>
and main.id in (
select main_id from jnpf_cloud.bidding_project_subscribe_child child
select main_id from bidding_project_subscribe_child child
where
root_child_flag='0'
and main.main_status='7'

Loading…
Cancel
Save