Commit 3c636f98 authored by suhuiguang's avatar suhuiguang

feat(statis):行政审批局

1.区域统计适配行政审批
parent 955389a0
......@@ -674,6 +674,7 @@
tzs_jg_installation_notice T
WHERE
T.notice_status = 6616
and T.receive_org_credit_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -703,6 +704,7 @@
tzs_jg_maintain_notice T
WHERE
T.notice_status = 6616
and T.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -732,6 +734,7 @@
tzs_jg_reform_notice T
WHERE
T.notice_status = 6616
and T.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -761,6 +764,7 @@
tzs_jg_transfer_notice T
WHERE
T.notice_status = 6616
and T.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -790,7 +794,9 @@
FROM
tzs_jg_use_registration T
WHERE
T.audit_status = '已完成' and T.is_delete = 0
T.audit_status = '已完成'
and T.is_delete = 0
and T.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -811,7 +817,7 @@
<if test="dto.endDate !=null and dto.endDate !=''">
and date_le(CAST(T.reg_date as date),#{dto.endDate})
</if>
GROUP BY bi.supervise_org_code
GROUP BY T.receive_company_code
union all
SELECT
round(avg(T.audit_pass_date::date - T.reg_date::date + 1),1) as strValue,
......@@ -820,6 +826,7 @@
tzs_jg_vehicle_information T
WHERE
T.status = '已完成'
and T.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -840,7 +847,7 @@
<if test="dto.endDate !=null and dto.endDate !=''">
and date_le(CAST(T.reg_date as date),#{dto.endDate})
</if>
GROUP BY bi.supervise_org_code
GROUP BY T.receive_company_code
</select>
<select id="queryChangeAvgDayByReceiveCompany" resultType="com.yeejoin.amos.boot.biz.common.dto.CountDto">
SELECT
......@@ -850,6 +857,7 @@
tzs_jg_change_registration_name crn
WHERE
crn.audit_status = '已完成'
and crn.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -881,6 +889,7 @@
tzs_jg_change_registration_reform T
WHERE
T.audit_status = '已完成'
and T.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -910,6 +919,7 @@
tzs_jg_change_registration_transfer T
WHERE
T.audit_status = '已完成'
and T.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -939,6 +949,7 @@
tzs_jg_change_registration_unit T
WHERE
T.status = '已完成'
and T.receive_org_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -968,6 +979,7 @@
tzs_jg_change_vehicle_registration_unit T
WHERE
T.status = '已完成'
and T.receive_org_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -1005,6 +1017,7 @@
tzs_jg_enable_disable crn
WHERE
crn.audit_status = '已完成'
and crn.receive_company_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......@@ -1044,6 +1057,7 @@
tzs_jg_scrap_cancel crn
WHERE
crn.audit_status = '已完成'
and crn.receive_org_code <![CDATA[<>]]> ''
<choose>
<when test='dto.cityCode != null and dto.cityCode == "610000"'>
and 1=1
......
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