Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
99e8d6c3
Commit
99e8d6c3
authored
Sep 25, 2024
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大瓶监管下钻列表、树、筛选下拉接口实现
parent
bb4566a2
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1465 additions
and
5 deletions
+1465
-5
FeignAuthRequestInterceptor.java
...os/boot/biz/common/feign/FeignAuthRequestInterceptor.java
+3
-0
DPFilterParamDto.java
...oin/amos/boot/module/common/api/dto/DPFilterParamDto.java
+14
-0
DPFilterParamForDetailDto.java
...boot/module/common/api/dto/DPFilterParamForDetailDto.java
+10
-0
JgBusinessTypeEnum.java
...amos/boot/module/common/api/enums/JgBusinessTypeEnum.java
+44
-0
JGStatisticsMapper.java
...boot/module/statistics/api/mapper/JGStatisticsMapper.java
+22
-5
JGStatisticsMapper.xml
...tics-api/src/main/resources/mapper/JGStatisticsMapper.xml
+1165
-0
JGDPStatisticsController.java
...le/statistcs/biz/controller/JGDPStatisticsController.java
+28
-0
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+52
-0
jgdp_businessType.json
...istics-biz/src/main/resources/json/jgdp_businessType.json
+127
-0
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/feign/FeignAuthRequestInterceptor.java
View file @
99e8d6c3
...
...
@@ -13,6 +13,9 @@ import javax.servlet.http.HttpServletRequest;
*/
public
class
FeignAuthRequestInterceptor
implements
RequestInterceptor
{
public
FeignAuthRequestInterceptor
()
{
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setToken
(
"abac3a97-1fe0-4cf0-88a2-12c9104b1f81"
);
}
...
...
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/DPFilterParamDto.java
View file @
99e8d6c3
...
...
@@ -33,6 +33,12 @@ public class DPFilterParamDto {
private
String
businessKey
;
/**
* 具体业务类型 例如:安装告知、维修告知等
* code对应统计服务中的jgdp_businessType.json
*/
private
String
businessTypeCode
;
/**
* month , year
*/
private
String
searchType
;
...
...
@@ -66,4 +72,12 @@ public class DPFilterParamDto {
* 所在单位名称
*/
private
String
unitName
;
/**
* 设备种类code
*/
private
String
equListCode
;
/**
* 设备类别code
*/
private
String
equCategoryCode
;
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/DPFilterParamForDetailDto.java
View file @
99e8d6c3
...
...
@@ -21,6 +21,11 @@ public class DPFilterParamForDetailDto {
* 业务类型
*/
private
String
businessType
;
/**
* 具体业务类型 例如:安装告知、维修告知等
* code对应统计服务中的jgdp_businessType.json
*/
private
String
businessTypeCode
;
/**
* 时间筛选
...
...
@@ -44,6 +49,11 @@ public class DPFilterParamForDetailDto {
private
String
treeValue
;
/**
* 设备种类
*/
private
String
equListCode
;
/**
* 设备类别
*/
private
String
equCategoryCode
;
...
...
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/enums/JgBusinessTypeEnum.java
0 → 100644
View file @
99e8d6c3
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
enums
;
import
java.util.ArrayList
;
import
java.util.EnumSet
;
import
java.util.HashMap
;
import
java.util.List
;
public
enum
JgBusinessTypeEnum
{
SGGZ
(
"sggz"
,
"施工告知"
),
SYDJ
(
"sydj"
,
"使用登记"
),
BGDJ
(
"bgdj"
,
"变更登记"
),
TYQY
(
"tyqy"
,
"停用启用"
),
ZXBX
(
"zxbf"
,
"注销报废"
);
private
JgBusinessTypeEnum
(
String
code
,
String
name
){
this
.
code
=
code
;
this
.
name
=
name
;
}
private
String
code
;
private
String
name
;
public
String
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
public
static
List
<
HashMap
<
String
,
Object
>>
getEnumList
()
{
List
<
HashMap
<
String
,
Object
>>
list
=
new
ArrayList
<>();
for
(
JgBusinessTypeEnum
testEnum
:
EnumSet
.
allOf
(
JgBusinessTypeEnum
.
class
))
{
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"title"
,
testEnum
.
name
);
map
.
put
(
"value"
,
testEnum
.
code
);
list
.
add
(
map
);
}
return
list
;
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/mapper/JGStatisticsMapper.java
View file @
99e8d6c3
...
...
@@ -12,6 +12,7 @@ import java.util.Map;
public
interface
JGStatisticsMapper
{
List
<
Map
<
String
,
Object
>>
maintenanceCountTopTen
(
@Param
(
"dpFilterParamDto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"regionCodeList"
)
List
<
Integer
>
regionCodeList
);
List
<
Map
<
String
,
Object
>>
maintenanceCount
(
@Param
(
"dpFilterParamDto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"regionCodeList"
)
List
<
Integer
>
regionCodeList
);
List
<
Map
<
String
,
Object
>>
installEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
...
...
@@ -23,7 +24,6 @@ public interface JGStatisticsMapper {
List
<
Map
<
String
,
Object
>>
transferEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
useEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
List
<
Map
<
String
,
Object
>>
changeReformEquCount
(
@Param
(
"cityCode"
)
String
cityCode
,
@Param
(
"startTime"
)
String
startTime
);
...
...
@@ -57,21 +57,38 @@ public interface JGStatisticsMapper {
Long
changeCountByOrgCode
(
@Param
(
"orgCode"
)
String
orgCode
);
List
<
Map
<
String
,
Object
>>
selectNoticeList
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
);
Page
<
Map
<
String
,
Object
>>
selectNoticeDetailList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
,
@Param
(
"dto"
)
DPFilterParamForDetailDto
dpFilterParamDto
);
Page
<
Map
<
String
,
Object
>>
selectAZNoticeDetailList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
,
@Param
(
"dto"
)
DPFilterParamForDetailDto
dpFilterParamDto
);
Page
<
Map
<
String
,
Object
>>
selectWXNoticeDetailList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
,
@Param
(
"dto"
)
DPFilterParamForDetailDto
dpFilterParamDto
);
Page
<
Map
<
String
,
Object
>>
selectGZNoticeDetailList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
,
@Param
(
"dto"
)
DPFilterParamForDetailDto
dpFilterParamDto
);
Page
<
Map
<
String
,
Object
>>
selectYZNoticeDetailList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
,
@Param
(
"dto"
)
DPFilterParamForDetailDto
dpFilterParamDto
);
List
<
Map
<
String
,
Object
>>
selectNoticeCountTopTen
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
);
List
<
CountDto
>
queryNoticeAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CountDto
>
queryNoticeAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CountDto
>
queryUseAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CountDto
>
queryChangeAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CountDto
>
queryChangeAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CountDto
>
queryDisableAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CountDto
>
queryCancelAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
Page
<
Map
<
String
,
Object
>>
countBizFinishedNumForDPListSGGZ
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
filterParamDto
,
@Param
(
"treeValue"
)
String
treeValue
);
Page
<
Map
<
String
,
Object
>>
countBizFinishedNumForDPListSYDJ
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
filterParamDto
,
@Param
(
"treeValue"
)
String
treeValue
);
Page
<
Map
<
String
,
Object
>>
countBizFinishedNumForDPListBGDJ
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
filterParamDto
,
@Param
(
"treeValue"
)
String
treeValue
);
Page
<
Map
<
String
,
Object
>>
countBizFinishedNumForDPListTYQY
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
filterParamDto
,
@Param
(
"treeValue"
)
String
treeValue
);
List
<
CountDto
>
queryDisableAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCod
e
);
Page
<
Map
<
String
,
Object
>>
countBizFinishedNumForDPListZXBF
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
filterParamDto
,
@Param
(
"treeValue"
)
String
treeValu
e
);
List
<
CountDto
>
queryCancelAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCod
e
);
Page
<
Map
<
String
,
Object
>>
countBizFinishedNumForDPListAll
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
filterParamDto
,
@Param
(
"treeValue"
)
String
treeValu
e
);
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/JGStatisticsMapper.xml
View file @
99e8d6c3
...
...
@@ -921,4 +921,1169 @@
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
order by T.plan_date desc
</select>
<select
id=
"countBizFinishedNumForDPListSGGZ"
resultType=
"java.util.Map"
>
<if
test=
"treeValue != null or dto.businessTypeCode == 'gz_az'"
>
SELECT
tjin.sequence_nbr AS sequenceNbr,
'安装告知' AS businessType,
tjin.apply_no AS applyNo,
tjin.equ_list AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjin.equ_category_code ) AS equCategory,
tjin.install_unit_name AS unitName,
tjin.receive_org_name AS receiveOrgName,
tjin.create_date AS createDate,
tjin.handle_date AS handleDate,
CASE
WHEN notice_status = 6616 THEN
'已完成' ELSE '进行中'
END AS status
FROM
"tzs_jg_installation_notice" tjin
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and notice_status != 6617
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(handle_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(handle_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and install_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and equ_category_code = #{dto.equCategoryCode}
</if>
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'gz_wx'"
>
SELECT
tjmn.sequence_nbr AS sequenceNbr,
'维修告知' AS businessType,
tjmn.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjmn.equ_list_code ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjmn.equ_category ) AS equCategory,
tjmn.install_unit_name AS unitName,
tjmn.receive_org_name AS receiveOrgName,
tjmn.create_date AS createDate,
tjmn.accept_date AS handleDate,
CASE
WHEN notice_status = 6616 THEN
'已完成' ELSE'进行中'
END AS status
FROM
"tzs_jg_maintain_notice" tjmn
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and notice_status != 6617
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(accept_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(accept_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and install_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and equ_category = #{dto.equCategoryCode}
</if>
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'gz_gz'"
>
SELECT
tjrn.sequence_nbr AS sequenceNbr,
'改造告知' AS businessType,
tjrn.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjrn.equ_list_code ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjrn.equ_category_code ) AS equCategory,
tjrn.install_unit_name AS unitName,
tjrn.receive_org_name AS receiveOrgName,
tjrn.create_date AS createDate,
tjrn.accept_date AS handleDate,
CASE
WHEN notice_status = 6616 THEN
'已完成' ELSE'进行中'
END AS status
FROM
"tzs_jg_reform_notice" tjrn
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and notice_status != 6617
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(accept_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(accept_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and install_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and equ_category_code = #{dto.equCategoryCode}
</if>
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'gz_yz'"
>
SELECT
tn.sequence_nbr AS sequenceNbr,
'移装告知' AS businessType,
tn.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_LIST ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_CATEGORY ) AS equCategory,
tn.install_unit_name AS unitName,
tn.receive_org_name AS receiveOrgName,
tn.create_date AS createDate,
tn.handle_date AS handleDate,
CASE
WHEN notice_status = 6616 THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_transfer_notice tn
LEFT JOIN tzs_jg_transfer_notice_eq tne ON tn.sequence_nbr = tne.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tne.equ_id = ri.RECORD
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and notice_status != 6617
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(handle_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(handle_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tn.install_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tn.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and tn.equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tn.sequence_nbr
</if>
order by createDate desc
</select>
<select
id=
"countBizFinishedNumForDPListSYDJ"
resultType=
"java.util.Map"
>
<if
test=
"treeValue != null or dto.businessTypeCode == 'sy_dj'"
>
SELECT
tjur.sequence_nbr AS sequenceNbr,
'使用登记' AS businessType,
tjur.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_LIST ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_CATEGORY ) AS equCategory,
tjur.use_unit_name AS unitName,
tjur.receive_org_name AS receiveOrgName,
tjur.create_date AS createDate,
tjur.audit_pass_date AS handleDate,
CASE
WHEN tjur.status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_use_registration tjur
LEFT JOIN tzs_jg_use_registration_eq tne ON tjur.sequence_nbr = tne.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tne.equ_id = ri.RECORD
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and tjur.status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjur.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjur.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'car_cyl_dj'"
>
SELECT
tjvi.sequence_nbr AS sequenceNbr,
'车用气瓶登记' AS businessType,
tjvi.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_LIST ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_CATEGORY ) AS equCategory,
tjvi.install_unit_name AS unitName,
tjvi.receive_org_name AS receiveOrgName,
tjvi.create_date AS createDate,
tjvi.audit_pass_date AS handleDate,
CASE
WHEN tjvi.status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_vehicle_information tjvi
LEFT JOIN tzs_jg_vehicle_information_eq tjvie ON tjvi.sequence_nbr = tjvie.vehicle_id
LEFT JOIN idx_biz_jg_register_info ri ON tjvie.equ_id = ri.RECORD
WHERE
tjvi.org_branch_code like CONCAT(#{orgCode}, '%')
and tjvi.status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjur.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjvi.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjvi.sequence_nbr
</if>
order by createDate desc
</select>
<select
id=
"countBizFinishedNumForDPListBGDJ"
resultType=
"java.util.Map"
>
<if
test=
"treeValue != null or dto.businessTypeCode == 'dj_gz'"
>
SELECT
tjcrr.sequence_nbr AS sequenceNbr,
'改造变更登记' AS businessType,
tjcrr.apply_no AS applyNo,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_LIST)) as equList,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_CATEGORY)) as equCategory,
tjcrr.install_unit_name AS unitName,
tjcrr.receive_org_name AS receiveOrgName,
tjcrr.create_date AS createDate,
tjcrr.audit_pass_date AS handleDate,
CASE
WHEN tjcrr.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_change_registration_reform tjcrr
LEFT JOIN tzs_jg_change_registration_reform_eq tjcrre ON tjcrr.sequence_nbr = tjcrre.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tjcrre.equ_id = ri.RECORD
WHERE
tjcrr.receive_company_org_code like CONCAT(#{orgCode}, '%')
and tjcrr.audit_status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjur.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjvi.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjcrr.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'dj_yz'"
>
SELECT
tjcrt.sequence_nbr AS sequenceNbr,
'改造变更登记' AS businessType,
tjcrt.apply_no AS applyNo,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_LIST)) as equList,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_CATEGORY)) as equCategory,
tjcrt.use_unit_name AS unitName,
tjcrt.receive_org_name AS receiveOrgName,
tjcrt.create_date AS createDate,
tjcrt.audit_pass_date AS handleDate,
CASE
WHEN tjcrt.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_change_registration_transfer tjcrt
LEFT JOIN tzs_jg_change_registration_transfer_eq tjcrte ON tjcrt.sequence_nbr = tjcrte.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tjcrte.equ_id = ri.RECORD
WHERE
tjcrt.receive_company_org_code like CONCAT( #{orgCode}, '%')
and tjcrt.audit_status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjcrt.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjcrt.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjcrt.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'dj_dw'"
>
SELECT
tjcru.sequence_nbr AS sequenceNbr,
'单位变更登记' AS businessType,
tjcru.apply_no AS applyNo,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_LIST)) as equList,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_CATEGORY)) as equCategory,
tjcru.use_unit_name AS unitName,
tjcru.receive_org_name AS receiveOrgName,
tjcru.create_date AS createDate,
tjcru.audit_pass_date AS handleDate,
CASE
WHEN tjcru.status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_change_registration_unit tjcru
LEFT JOIN tzs_jg_change_registration_unit_eq tjcrue ON tjcru.sequence_nbr = tjcrue.unit_change_registration_id
LEFT JOIN idx_biz_jg_register_info ri ON tjcrue.equ_id = ri.RECORD
WHERE
tjcru.receive_company_org_code like CONCAT(#{orgCode}, '%')
and tjcru.status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjcru.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjcru.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjcru.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'dj_gm'"
>
SELECT
tjcrn.sequence_nbr AS sequenceNbr,
'更名变更登记' AS businessType,
tjcrn.apply_no AS applyNo,
'' equList,
'' equCategory,
tjcrn.use_unit_name AS unitName,
tjcrn.receive_org_name AS receiveOrgName,
tjcrn.create_date AS createDate,
tjcrn.audit_pass_date AS handleDate,
CASE
WHEN tjcrn.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_change_registration_name tjcrn
LEFT JOIN privilege_company pc ON pc.company_code = tjcrn.receive_org_code
WHERE
pc.org_code LIKE CONCAT ( #{orgCode}, '%' )
AND tjcrn.audit_status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjcrn.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjcrn.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<!-- 因更名变更是将单位下所有设备都修改,未存设备id,故筛选设备种类和类别默认筛选不到数据-->
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and 1 = 2
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and 1 = 2
</if>
GROUP BY tjcrn.sequence_nbr
</if>
order by createDate desc
</select>
<select
id=
"countBizFinishedNumForDPListTYQY"
resultType=
"java.util.Map"
>
<if
test=
"treeValue != null or dto.businessTypeCode == 'sb_ty'"
>
SELECT
tjed.sequence_nbr AS sequenceNbr,
'停用' AS businessType,
tjed.apply_no AS applyNo,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_LIST ) ) AS equList,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_CATEGORY ) ) AS equCategory,
tjed.use_unit_name AS unitName,
tjed.receive_org_name AS receiveOrgName,
tjed.create_date AS createDate,
tjed.audit_pass_date AS handleDate,
CASE
WHEN tjed.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_enable_disable tjed
LEFT JOIN tzs_jg_enable_disable_eq tjede ON tjed.sequence_nbr = tjede.enable_disable_apply_id
LEFT JOIN idx_biz_jg_register_info ri ON tjede.equ_id = ri.RECORD
LEFT JOIN privilege_company pc ON pc.company_code = tjed.receive_company_code
WHERE
pc.org_code LIKE CONCAT ( #{orgCode}, '%' )
AND tjed.audit_status != '已作废'
AND tjed.apply_type = 'SB_TY'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjed.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjed.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjed.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'sb_qy'"
>
SELECT
tjed.sequence_nbr AS sequenceNbr,
'启用' AS businessType,
tjed.apply_no AS applyNo,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_LIST ) ) AS equList,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_CATEGORY ) ) AS equCategory,
tjed.use_unit_name AS unitName,
tjed.receive_org_name AS receiveOrgName,
tjed.create_date AS createDate,
tjed.audit_pass_date AS handleDate,
CASE
WHEN tjed.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_enable_disable tjed
LEFT JOIN tzs_jg_enable_disable_eq tjede ON tjed.sequence_nbr = tjede.enable_disable_apply_id
LEFT JOIN idx_biz_jg_register_info ri ON tjede.equ_id = ri.RECORD
LEFT JOIN privilege_company pc ON pc.company_code = tjed.receive_company_code
WHERE
pc.org_code LIKE CONCAT ( #{orgCode}, '%' )
AND tjed.audit_status != '已作废'
AND tjed.apply_type = 'SB_QY'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjed.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjed.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjed.sequence_nbr
</if>
order by createDate desc
</select>
<select
id=
"countBizFinishedNumForDPListZXBF"
resultType=
"java.util.Map"
>
<if
test=
"treeValue != null or dto.businessTypeCode == 'bf_yz'"
>
SELECT
tjsc.sequence_nbr AS sequenceNbr,
'注销' AS businessType,
tjsc.apply_no AS applyNo,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_LIST ) ) AS equList,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_CATEGORY ) ) AS equCategory,
tjsc.use_unit_name AS unitName,
tjsc.receive_org_name AS receiveOrgName,
tjsc.create_date AS createDate,
tjsc.audit_pass_date AS handleDate,
CASE
WHEN tjsc.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_scrap_cancel tjsc
LEFT JOIN tzs_jg_scrap_cancel_eq tjsce ON tjsc.sequence_nbr = tjsce.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tjsce.equ_id = ri.RECORD
LEFT JOIN privilege_company pc ON pc.company_code = tjsc.receive_org_code
WHERE
pc.org_code LIKE CONCAT ( #{orgCode}, '%' )
AND tjsc.audit_status != '已作废'
AND tjsc.cancel_type = '2'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjsc.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjsc.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjsc.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'bf_zx'"
>
SELECT
tjsc.sequence_nbr AS sequenceNbr,
'报废' AS businessType,
tjsc.apply_no AS applyNo,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_LIST ) ) AS equList,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_CATEGORY ) ) AS equCategory,
tjsc.use_unit_name AS unitName,
tjsc.receive_org_name AS receiveOrgName,
tjsc.create_date AS createDate,
tjsc.audit_pass_date AS handleDate,
CASE
WHEN tjsc.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_scrap_cancel tjsc
LEFT JOIN tzs_jg_scrap_cancel_eq tjsce ON tjsc.sequence_nbr = tjsce.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tjsce.equ_id = ri.RECORD
LEFT JOIN privilege_company pc ON pc.company_code = tjsc.receive_org_code
WHERE
pc.org_code LIKE CONCAT ( #{orgCode}, '%' )
AND tjsc.audit_status != '已作废'
AND tjsc.cancel_type = '1'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjsc.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjsc.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjsc.sequence_nbr
</if>
order by createDate desc
</select>
<select
id=
"countBizFinishedNumForDPListAll"
resultType=
"java.util.Map"
>
<if
test=
"treeValue != null or dto.businessTypeCode == 'gz_az'"
>
SELECT
tjin.sequence_nbr AS sequenceNbr,
'安装告知' AS businessType,
tjin.apply_no AS applyNo,
tjin.equ_list AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjin.equ_category_code ) AS equCategory,
tjin.install_unit_name AS unitName,
tjin.receive_org_name AS receiveOrgName,
tjin.create_date AS createDate,
tjin.handle_date AS handleDate,
CASE
WHEN notice_status = 6616 THEN
'已完成' ELSE '进行中'
END AS status
FROM
"tzs_jg_installation_notice" tjin
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and notice_status != 6617
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(handle_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(handle_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and install_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and equ_category_code = #{dto.equCategoryCode}
</if>
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'gz_wx'"
>
SELECT
tjmn.sequence_nbr AS sequenceNbr,
'维修告知' AS businessType,
tjmn.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjmn.equ_list_code ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjmn.equ_category ) AS equCategory,
tjmn.install_unit_name AS unitName,
tjmn.receive_org_name AS receiveOrgName,
tjmn.create_date AS createDate,
tjmn.accept_date AS handleDate,
CASE
WHEN notice_status = 6616 THEN
'已完成' ELSE'进行中'
END AS status
FROM
"tzs_jg_maintain_notice" tjmn
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and notice_status != 6617
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(accept_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(accept_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and install_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and equ_category = #{dto.equCategoryCode}
</if>
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'gz_gz'"
>
SELECT
tjrn.sequence_nbr AS sequenceNbr,
'改造告知' AS businessType,
tjrn.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjrn.equ_list_code ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = tjrn.equ_category_code ) AS equCategory,
tjrn.install_unit_name AS unitName,
tjrn.receive_org_name AS receiveOrgName,
tjrn.create_date AS createDate,
tjrn.accept_date AS handleDate,
CASE
WHEN notice_status = 6616 THEN
'已完成' ELSE'进行中'
END AS status
FROM
"tzs_jg_reform_notice" tjrn
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and notice_status != 6617
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(accept_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(accept_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and install_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and equ_category_code = #{dto.equCategoryCode}
</if>
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'gz_yz'"
>
SELECT
tn.sequence_nbr AS sequenceNbr,
'移装告知' AS businessType,
tn.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_LIST ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_CATEGORY ) AS equCategory,
tn.install_unit_name AS unitName,
tn.receive_org_name AS receiveOrgName,
tn.create_date AS createDate,
tn.handle_date AS handleDate,
CASE
WHEN notice_status = 6616 THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_transfer_notice tn
LEFT JOIN tzs_jg_transfer_notice_eq tne ON tn.sequence_nbr = tne.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tne.equ_id = ri.RECORD
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and notice_status != 6617
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(handle_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(handle_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tn.install_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tn.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and tn.equ_list_code = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tn.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'sy_dj'"
>
SELECT
tjur.sequence_nbr AS sequenceNbr,
'使用登记' AS businessType,
tjur.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_LIST ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_CATEGORY ) AS equCategory,
tjur.use_unit_name AS unitName,
tjur.receive_org_name AS receiveOrgName,
tjur.create_date AS createDate,
tjur.audit_pass_date AS handleDate,
CASE
WHEN tjur.status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_use_registration tjur
LEFT JOIN tzs_jg_use_registration_eq tne ON tjur.sequence_nbr = tne.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tne.equ_id = ri.RECORD
WHERE
receive_company_org_code like CONCAT(#{orgCode}, '%')
and tjur.status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjur.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjur.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'car_cyl_dj'"
>
SELECT
tjvi.sequence_nbr AS sequenceNbr,
'车用气瓶登记' AS businessType,
tjvi.apply_no AS applyNo,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_LIST ) AS equList,
(SELECT tec.name FROM tz_equipment_category tec WHERE tec.code = ri.EQU_CATEGORY ) AS equCategory,
tjvi.install_unit_name AS unitName,
tjvi.receive_org_name AS receiveOrgName,
tjvi.create_date AS createDate,
tjvi.audit_pass_date AS handleDate,
CASE
WHEN tjvi.status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_vehicle_information tjvi
LEFT JOIN tzs_jg_vehicle_information_eq tjvie ON tjvi.sequence_nbr = tjvie.vehicle_id
LEFT JOIN idx_biz_jg_register_info ri ON tjvie.equ_id = ri.RECORD
WHERE
tjvi.org_branch_code like CONCAT(#{orgCode}, '%')
and tjvi.status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjur.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjvi.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjvi.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'dj_gz'"
>
SELECT
tjcrr.sequence_nbr AS sequenceNbr,
'改造变更登记' AS businessType,
tjcrr.apply_no AS applyNo,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_LIST)) as equList,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_CATEGORY)) as equCategory,
tjcrr.install_unit_name AS unitName,
tjcrr.receive_org_name AS receiveOrgName,
tjcrr.create_date AS createDate,
tjcrr.audit_pass_date AS handleDate,
CASE
WHEN tjcrr.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_change_registration_reform tjcrr
LEFT JOIN tzs_jg_change_registration_reform_eq tjcrre ON tjcrr.sequence_nbr = tjcrre.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tjcrre.equ_id = ri.RECORD
WHERE
tjcrr.receive_company_org_code like CONCAT(#{orgCode}, '%')
and tjcrr.audit_status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjur.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjvi.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjcrr.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'dj_yz'"
>
SELECT
tjcrt.sequence_nbr AS sequenceNbr,
'改造变更登记' AS businessType,
tjcrt.apply_no AS applyNo,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_LIST)) as equList,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_CATEGORY)) as equCategory,
tjcrt.use_unit_name AS unitName,
tjcrt.receive_org_name AS receiveOrgName,
tjcrt.create_date AS createDate,
tjcrt.audit_pass_date AS handleDate,
CASE
WHEN tjcrt.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_change_registration_transfer tjcrt
LEFT JOIN tzs_jg_change_registration_transfer_eq tjcrte ON tjcrt.sequence_nbr = tjcrte.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tjcrte.equ_id = ri.RECORD
WHERE
tjcrt.receive_company_org_code like CONCAT( #{orgCode}, '%')
and tjcrt.audit_status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjcrt.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjcrt.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjcrt.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'dj_dw'"
>
SELECT
tjcru.sequence_nbr AS sequenceNbr,
'单位变更登记' AS businessType,
tjcru.apply_no AS applyNo,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_LIST)) as equList,
GROUP_CONCAT(DISTINCT (SELECT name from tz_equipment_category where code = ri.EQU_CATEGORY)) as equCategory,
tjcru.use_unit_name AS unitName,
tjcru.receive_org_name AS receiveOrgName,
tjcru.create_date AS createDate,
tjcru.audit_pass_date AS handleDate,
CASE
WHEN tjcru.status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_change_registration_unit tjcru
LEFT JOIN tzs_jg_change_registration_unit_eq tjcrue ON tjcru.sequence_nbr = tjcrue.unit_change_registration_id
LEFT JOIN idx_biz_jg_register_info ri ON tjcrue.equ_id = ri.RECORD
WHERE
tjcru.receive_company_org_code like CONCAT(#{orgCode}, '%')
and tjcru.status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjcru.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjcru.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjcru.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null or dto.businessTypeCode == 'dj_gm'"
>
SELECT
tjcrn.sequence_nbr AS sequenceNbr,
'更名变更登记' AS businessType,
tjcrn.apply_no AS applyNo,
'' equList,
'' equCategory,
tjcrn.use_unit_name AS unitName,
tjcrn.receive_org_name AS receiveOrgName,
tjcrn.create_date AS createDate,
tjcrn.audit_pass_date AS handleDate,
CASE
WHEN tjcrn.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_change_registration_name tjcrn
LEFT JOIN privilege_company pc ON pc.company_code = tjcrn.receive_org_code
WHERE
pc.org_code LIKE CONCAT ( #{orgCode}, '%' )
AND tjcrn.audit_status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjcrn.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjcrn.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<!-- 因更名变更是将单位下所有设备都修改,未存设备id,故筛选设备种类和类别默认筛选不到数据-->
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and 1 = 2
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and 1 = 2
</if>
GROUP BY tjcrn.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null"
>
SELECT
tjed.sequence_nbr AS sequenceNbr,
CASE
WHEN tjed.apply_type = 'SB_TY' THEN
'停用' ELSE '启用'
END AS businessType,
tjed.apply_no AS applyNo,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_LIST ) ) AS equList,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_CATEGORY ) ) AS equCategory,
tjed.use_unit_name AS unitName,
tjed.receive_org_name AS receiveOrgName,
tjed.create_date AS createDate,
tjed.audit_pass_date AS handleDate,
CASE
WHEN tjed.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_enable_disable tjed
LEFT JOIN tzs_jg_enable_disable_eq tjede ON tjed.sequence_nbr = tjede.enable_disable_apply_id
LEFT JOIN idx_biz_jg_register_info ri ON tjede.equ_id = ri.RECORD
LEFT JOIN privilege_company pc ON pc.company_code = tjed.receive_company_code
WHERE
pc.org_code LIKE CONCAT ( #{orgCode}, '%' )
AND tjed.audit_status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjed.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjed.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjed.sequence_nbr
</if>
<if
test=
"treeValue != null"
>
union all
</if>
<if
test=
"treeValue != null"
>
SELECT
tjsc.sequence_nbr AS sequenceNbr,
CASE
WHEN tjsc.cancel_type = '2' THEN
'注销' ELSE '报废'
END AS businessType,
tjsc.apply_no AS applyNo,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_LIST ) ) AS equList,
GROUP_CONCAT ( DISTINCT ( SELECT NAME FROM tz_equipment_category WHERE code = ri.EQU_CATEGORY ) ) AS equCategory,
tjsc.use_unit_name AS unitName,
tjsc.receive_org_name AS receiveOrgName,
tjsc.create_date AS createDate,
tjsc.audit_pass_date AS handleDate,
CASE
WHEN tjsc.audit_status = '已完成' THEN
'已完成' ELSE'进行中'
END AS status
FROM
tzs_jg_scrap_cancel tjsc
LEFT JOIN tzs_jg_scrap_cancel_eq tjsce ON tjsc.sequence_nbr = tjsce.equip_transfer_id
LEFT JOIN idx_biz_jg_register_info ri ON tjsce.equ_id = ri.RECORD
LEFT JOIN privilege_company pc ON pc.company_code = tjsc.receive_org_code
WHERE
pc.org_code LIKE CONCAT ( #{orgCode}, '%' )
AND tjsc.audit_status != '已作废'
<if
test=
"dto.beginDate != null and dto.beginDate != ''"
>
and date_ge(CAST(audit_pass_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate != null and dto.endDate != ''"
>
and date_le(CAST(audit_pass_date as date),#{dto.endDate})
</if>
<if
test=
"dto.companyName != null and dto.companyName != ''"
>
and tjsc.use_unit_name like CONCAT('%', #{dto.companyName}, '%')
</if>
<if
test=
"dto.superviseUnitName != null and dto.superviseUnitName != ''"
>
and tjsc.receive_org_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri.EQU_CATEGORY = #{dto.equCategoryCode}
</if>
GROUP BY tjsc.sequence_nbr
</if>
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/JGDPStatisticsController.java
View file @
99e8d6c3
...
...
@@ -533,4 +533,32 @@ public class JGDPStatisticsController {
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getRegistrationRecords
(
page
,
dto
,
cityCode
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"监管大屏-监管下钻列表左侧树"
,
notes
=
"监管大屏-监管下钻列表左侧树"
)
@GetMapping
(
value
=
"/getJgBusinessType"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getJgBusinessType
()
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getJgBusinessType
());
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"监管大屏-监管下钻列表"
,
notes
=
"监管大屏-监管下钻列表"
)
@PostMapping
(
value
=
"/getJgBusinessList"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getJgBusinessList
(
@Validated
@RequestBody
DPFilterParamForDetailDto
dpFilterParamForDetailDto
,
BindingResult
result
,
@RequestParam
(
value
=
"current"
,
defaultValue
=
"1"
)
Integer
current
,
@RequestParam
(
value
=
"size"
,
defaultValue
=
"20"
)
Integer
size
)
{
List
<
FieldError
>
fieldErrors
=
result
.
getFieldErrors
();
if
(!
fieldErrors
.
isEmpty
())
{
throw
new
BadRequest
(
fieldErrors
.
get
(
0
).
getDefaultMessage
());
}
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
current
,
size
);
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getJgBusinessList
(
dpFilterParamForDetailDto
,
page
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"监管大屏-监管下钻列表具体业务类型"
,
notes
=
"监管大屏-监管下钻列表具体业务类型"
)
@GetMapping
(
value
=
"/getJgBusinessAllType"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getJgBusinessAllType
(
@RequestParam
(
value
=
"treeValue"
)
String
treeValue
)
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getJgBusinessAllType
(
treeValue
));
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
View file @
99e8d6c3
...
...
@@ -22,6 +22,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamForDetailDto;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.dto.LegendDataDto
;
import
com.yeejoin.amos.boot.module.common.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.JgBusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.NoticBusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.FourColorCountDataDto
;
...
...
@@ -32,6 +33,7 @@ import com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage;
import
com.yeejoin.amos.boot.module.jg.api.entity.SafetyProblemTracing
;
import
com.yeejoin.amos.boot.module.jg.api.enums.*
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.*
;
import
com.yeejoin.amos.boot.module.statistcs.biz.utils.JsonUtils
;
import
com.yeejoin.amos.boot.module.statistics.api.mapper.JGStatisticsMapper
;
import
com.yeejoin.amos.boot.module.statistics.api.mapper.ZLStatisticsMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentCategoryDto
;
...
...
@@ -171,6 +173,9 @@ public class JGDPStatisticsServiceImpl {
@Value
(
"classpath:/json/registrationBasic.json"
)
private
Resource
registrationBasicJson
;
@Value
(
"classpath:/json/jgdp_businessType.json"
)
private
Resource
allBusinessType
;
private
JgUseRegistrationMapper
useRegistrationMapper
;
private
JgEnableDisableMapper
enableDisableMapper
;
...
...
@@ -3317,4 +3322,51 @@ public class JGDPStatisticsServiceImpl {
resultMap
.
put
(
"stationRate"
,
stationRates
);
return
resultMap
;
}
public
List
<
Map
<
String
,
Object
>>
getJgBusinessType
()
{
List
<
HashMap
<
String
,
Object
>>
enumList
=
JgBusinessTypeEnum
.
getEnumList
();
List
<
Map
<
String
,
Object
>>
result
=
new
ArrayList
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"title"
,
"监督管理全部业务类型"
);
map
.
put
(
"value"
,
"all"
);
map
.
put
(
"children"
,
enumList
);
result
.
add
(
map
);
return
result
;
}
public
Page
<
Map
<
String
,
Object
>>
getJgBusinessList
(
DPFilterParamForDetailDto
dpFilterParamForDetailDto
,
Page
<
Map
<
String
,
Object
>>
page
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamForDetailDto
.
getCityCode
());
Page
<
Map
<
String
,
Object
>>
maps
=
null
;
DPFilterParamDto
filterParamDto
=
new
DPFilterParamDto
();
filterParamDto
.
setCityCode
(
dpFilterParamForDetailDto
.
getCityCode
());
filterParamDto
.
setCompanyName
(
dpFilterParamForDetailDto
.
getCompanyName
());
filterParamDto
.
setSuperviseUnitName
(
dpFilterParamForDetailDto
.
getSuperviseUnitName
());
filterParamDto
.
setBusinessTypeCode
(
dpFilterParamForDetailDto
.
getBusinessTypeCode
());
filterParamDto
.
setEquCategoryCode
(
dpFilterParamForDetailDto
.
getEquCategoryCode
());
filterParamDto
.
setEquListCode
(
dpFilterParamForDetailDto
.
getEquListCode
());
if
(
null
!=
dpFilterParamForDetailDto
.
getTimeSearchOne
())
{
filterParamDto
.
setBeginDate
(
dpFilterParamForDetailDto
.
getTimeSearchOne
().
getBeginDate
());
filterParamDto
.
setEndDate
(
dpFilterParamForDetailDto
.
getTimeSearchOne
().
getEndDate
());
}
String
treeValue
=
dpFilterParamForDetailDto
.
getBusinessTypeCode
()
!=
""
?
null
:
dpFilterParamForDetailDto
.
getTreeValue
();
if
(
JgBusinessTypeEnum
.
SGGZ
.
getCode
().
equals
(
dpFilterParamForDetailDto
.
getTreeValue
()))
{
maps
=
jgStatisticsMapper
.
countBizFinishedNumForDPListSGGZ
(
page
,
orgCode
,
filterParamDto
,
treeValue
);
}
else
if
(
JgBusinessTypeEnum
.
SYDJ
.
getCode
().
equals
(
dpFilterParamForDetailDto
.
getTreeValue
()))
{
maps
=
jgStatisticsMapper
.
countBizFinishedNumForDPListSYDJ
(
page
,
orgCode
,
filterParamDto
,
treeValue
);
}
else
if
(
JgBusinessTypeEnum
.
BGDJ
.
getCode
().
equals
(
dpFilterParamForDetailDto
.
getTreeValue
()))
{
maps
=
jgStatisticsMapper
.
countBizFinishedNumForDPListBGDJ
(
page
,
orgCode
,
filterParamDto
,
treeValue
);
}
else
if
(
JgBusinessTypeEnum
.
TYQY
.
getCode
().
equals
(
dpFilterParamForDetailDto
.
getTreeValue
()))
{
maps
=
jgStatisticsMapper
.
countBizFinishedNumForDPListTYQY
(
page
,
orgCode
,
filterParamDto
,
treeValue
);
}
else
if
(
JgBusinessTypeEnum
.
ZXBX
.
getCode
().
equals
(
dpFilterParamForDetailDto
.
getTreeValue
()))
{
maps
=
jgStatisticsMapper
.
countBizFinishedNumForDPListZXBF
(
page
,
orgCode
,
filterParamDto
,
treeValue
);
}
else
{
maps
=
jgStatisticsMapper
.
countBizFinishedNumForDPListAll
(
page
,
orgCode
,
filterParamDto
,
treeValue
);
}
return
maps
;
}
public
List
<
Map
<
String
,
Object
>>
getJgBusinessAllType
(
String
treeValue
)
{
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
resourceJson
=
JsonUtils
.
getResourceJson
(
allBusinessType
);
return
resourceJson
.
get
(
treeValue
);
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/jgdp_businessType.json
0 → 100644
View file @
99e8d6c3
{
"sggz"
:
[
{
"name"
:
"安装告知"
,
"code"
:
"gz_az"
},
{
"name"
:
"改造告知"
,
"code"
:
"gz_gz"
},
{
"name"
:
"维修告知"
,
"code"
:
"gz_wx"
},
{
"name"
:
"移装告知"
,
"code"
:
"gz_yz"
}
],
"sydj"
:
[
{
"name"
:
"使用登记"
,
"code"
:
"sy_dj"
},
{
"name"
:
"车用气瓶登记"
,
"code"
:
"car_cyl_dj"
}
],
"bgdj"
:
[
{
"name"
:
"改造变更登记"
,
"code"
:
"dj_gz"
},
{
"name"
:
"移装变更登记"
,
"code"
:
"dj_yz"
},
{
"name"
:
"单位变更登记"
,
"code"
:
"dj_dw"
},
{
"name"
:
"更名变更登记"
,
"code"
:
"dj_gm"
}
],
"tyqy"
:
[
{
"name"
:
"启用"
,
"code"
:
"sb_qy"
},
{
"name"
:
"停用"
,
"code"
:
"sb_ty"
}
],
"zxbf"
:
[
{
"name"
:
"注销"
,
"code"
:
"bf_yz"
},
{
"name"
:
"报废"
,
"code"
:
"bf_zx"
}
],
"all"
:
[
{
"name"
:
"安装告知"
,
"code"
:
"gz_az"
},
{
"name"
:
"改造告知"
,
"code"
:
"gz_gz"
},
{
"name"
:
"维修告知"
,
"code"
:
"gz_wx"
},
{
"name"
:
"移装告知"
,
"code"
:
"gz_yz"
},
{
"name"
:
"使用登记"
,
"code"
:
"sy_dj"
},
{
"name"
:
"车用气瓶登记"
,
"code"
:
"car_cyl_dj"
},
{
"name"
:
"改造变更登记"
,
"code"
:
"dj_gz"
},
{
"name"
:
"移装变更登记"
,
"code"
:
"dj_yz"
},
{
"name"
:
"单位变更登记"
,
"code"
:
"dj_dw"
},
{
"name"
:
"更名变更登记"
,
"code"
:
"dj_gm"
},
{
"name"
:
"启用"
,
"code"
:
"sb_qy"
},
{
"name"
:
"停用"
,
"code"
:
"sb_ty"
},
{
"name"
:
"注销"
,
"code"
:
"bf_yz"
},
{
"name"
:
"报废"
,
"code"
:
"bf_zx"
}
]
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment