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
0327b460
Commit
0327b460
authored
Jul 30, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏-区域安全指数接口优重写初稿
parent
197716b4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
17 deletions
+61
-17
SecurityIndexCountItemDto.java
.../module/statistics/api/dto/SecurityIndexCountItemDto.java
+45
-0
AQZSDPStatisticsMapper.java
.../module/statistics/api/mapper/AQZSDPStatisticsMapper.java
+4
-4
AQZSDPStatisticsMapper.xml
...-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
+5
-5
AQZSDPStatisticsController.java
.../statistcs/biz/controller/AQZSDPStatisticsController.java
+7
-8
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/dto/SecurityIndexCountItemDto.java
0 → 100644
View file @
0327b460
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistics
.
api
.
dto
;
import
lombok.Data
;
/**
* @author Administrator
*/
@Data
public
class
SecurityIndexCountItemDto
{
private
String
regionCode
;
private
String
regionName
;
/**
* 充装检查率
*/
private
String
czjc
;
/**
* 许可有效率
*/
String
xuke
;
/**
* 使用登记办理率
*/
String
shiyongdengji
;
/**
* 检验超期率
*/
String
jianyanchaoqi
;
/**
* 检验合格率
*/
String
jianyanhege
;
/**
* 充装检查率
*/
String
czjchege
;
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/mapper/AQZSDPStatisticsMapper.java
View file @
0327b460
...
@@ -46,10 +46,10 @@ public interface AQZSDPStatisticsMapper {
...
@@ -46,10 +46,10 @@ public interface AQZSDPStatisticsMapper {
/**
/**
* 单位按照资质状态分组下的统计数量
* 单位按照资质状态分组下的统计数量
*
*
* @param
region
Code 区域
* @param
org
Code 区域
* @return List<KeyValueDto>
* @return List<KeyValueDto>
*/
*/
List
<
KeyValueDto
>
queryLicenseEfficiencyOfRegion
(
@Param
(
value
=
"
regionCode"
)
String
region
Code
);
List
<
KeyValueDto
>
queryLicenseEfficiencyOfRegion
(
@Param
(
value
=
"
orgCode"
)
String
org
Code
);
/**
/**
* 查询单个单位的有效期信息
* 查询单个单位的有效期信息
*
*
...
@@ -58,8 +58,8 @@ public interface AQZSDPStatisticsMapper {
...
@@ -58,8 +58,8 @@ public interface AQZSDPStatisticsMapper {
*/
*/
KeyValueDto
queryLicenseEfficiencyOneCompany
(
@Param
(
value
=
"appId"
)
String
appId
);
KeyValueDto
queryLicenseEfficiencyOneCompany
(
@Param
(
value
=
"appId"
)
String
appId
);
Map
<
String
,
Object
>
getInspectionExpiredRate
(
@Param
(
value
=
"
regionCode"
)
String
region
Code
,
@Param
(
value
=
"appId"
)
String
appId
);
Map
<
String
,
Object
>
getInspectionExpiredRate
(
@Param
(
value
=
"
orgCode"
)
String
org
Code
,
@Param
(
value
=
"appId"
)
String
appId
);
Map
<
String
,
Object
>
getInspectionResultRate
(
@Param
(
value
=
"
regionCode"
)
String
region
Code
,
@Param
(
value
=
"appId"
)
String
appId
);
Map
<
String
,
Object
>
getInspectionResultRate
(
@Param
(
value
=
"
orgCode"
)
String
org
Code
,
@Param
(
value
=
"appId"
)
String
appId
);
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
View file @
0327b460
...
@@ -246,8 +246,8 @@
...
@@ -246,8 +246,8 @@
<where>
<where>
cu.data_sources = '陕西省内企业'
cu.data_sources = '陕西省内企业'
AND cu.unit_type LIKE '%充装单位%'
AND cu.unit_type LIKE '%充装单位%'
<if
test=
"
regionCode != null and region
Code != ''"
>
<if
test=
"
orgCode != null and org
Code != ''"
>
and cu.
org_code like concat(#{region
Code}, '%')
and cu.
supervise_org_code like concat(#{org
Code}, '%')
</if>
</if>
<if
test=
"appId != null and appId != ''"
>
<if
test=
"appId != null and appId != ''"
>
and cu.app_id = #{appId}
and cu.app_id = #{appId}
...
@@ -264,8 +264,8 @@
...
@@ -264,8 +264,8 @@
<where>
<where>
cu.data_sources = '陕西省内企业'
cu.data_sources = '陕西省内企业'
AND cu.unit_type LIKE '%充装单位%'
AND cu.unit_type LIKE '%充装单位%'
<if
test=
"
regionCode != null and region
Code != ''"
>
<if
test=
"
orgCode != null and org
Code != ''"
>
and cu.
org_code like concat( #{region
Code}, '%')
and cu.
supervise_org_code like concat( #{org
Code}, '%')
</if>
</if>
<if
test=
"appId != null and appId != ''"
>
<if
test=
"appId != null and appId != ''"
>
and cu.app_id = #{appId}
and cu.app_id = #{appId}
...
@@ -303,7 +303,7 @@
...
@@ -303,7 +303,7 @@
where
where
cu.data_sources = '陕西省内企业'
cu.data_sources = '陕西省内企业'
AND cu.unit_type LIKE '%充装单位%'
AND cu.unit_type LIKE '%充装单位%'
and cu.
org_code like concat('%', #{region
Code}, '%')
and cu.
supervise_org_code like concat(#{org
Code}, '%')
GROUP BY strKey
GROUP BY strKey
</select>
</select>
</mapper>
</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/AQZSDPStatisticsController.java
View file @
0327b460
...
@@ -20,7 +20,7 @@ import java.util.List;
...
@@ -20,7 +20,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
@RestController
@RestController
@Api
(
tags
=
"大屏-安全追溯统计Api"
)
@Api
(
tags
=
"大屏-安全追溯
及气瓶
统计Api"
)
@RequestMapping
(
value
=
"/dp/aqzs"
)
@RequestMapping
(
value
=
"/dp/aqzs"
)
public
class
AQZSDPStatisticsController
{
public
class
AQZSDPStatisticsController
{
...
@@ -33,20 +33,19 @@ public class AQZSDPStatisticsController {
...
@@ -33,20 +33,19 @@ public class AQZSDPStatisticsController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"大屏-气瓶-区域安全指数"
)
@ApiOperation
(
value
=
"大屏-气瓶-区域安全指数"
)
@PostMapping
(
value
=
"/security-index"
)
@PostMapping
(
value
=
"/security-index"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getSecurityIndex
(
@
RequestBody
Map
<
String
,
Object
>
map
)
throws
Exception
{
public
ResponseModel
<
Map
<
String
,
Object
>>
getSecurityIndex
(
@
Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
bindingResult
)
throws
Exception
{
Object
regionCode
=
map
.
get
(
"cityCode"
);
List
<
FieldError
>
fieldErrors
=
bindingResult
.
getFieldErrors
(
);
if
(
ObjectUtils
.
isEmpty
(
regionCode
))
{
if
(
!
fieldErrors
.
isEmpty
(
))
{
regionCode
=
"610000"
;
throw
new
BadRequest
(
fieldErrors
.
get
(
0
).
getDefaultMessage
())
;
}
}
Map
<
String
,
Object
>
result
=
statisticsService
.
getSecurityIndex
(
dpFilterParamDto
);
Map
<
String
,
Object
>
result
=
statisticsService
.
getSecurityIndex
(
regionCode
.
toString
());
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/earlyWarning/child"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏-气瓶-区域安全指数统计"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏-气瓶-区域安全指数统计"
)
@RequestMapping
(
value
=
"/earlyWarning/child"
,
method
=
RequestMethod
.
POST
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getChildEarlyWarning
(
@RequestBody
Map
<
String
,
Object
>
map
)
throws
Exception
{
public
ResponseModel
<
Map
<
String
,
Object
>>
getChildEarlyWarning
(
@RequestBody
Map
<
String
,
Object
>
map
)
throws
Exception
{
Object
regionCode
=
map
.
get
(
"cityCode"
);
Object
regionCode
=
map
.
get
(
"cityCode"
);
if
(
ObjectUtils
.
isEmpty
(
regionCode
))
{
if
(
ObjectUtils
.
isEmpty
(
regionCode
))
{
...
...
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/AQZSDPStatisticsServiceImpl.java
View file @
0327b460
This diff is collapsed.
Click to expand it.
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