Commit 3c636f98 authored by suhuiguang's avatar suhuiguang

feat(statis):行政审批局

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