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
5ac98081
Commit
5ac98081
authored
Jul 31, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.监管大屏新增施工情况列表(近30天)接口
2。监管大屏新增施工单位施工总量排名TOP10接口
parent
a573b87f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
137 additions
and
0 deletions
+137
-0
DPStatisticsMapper.java
...in/amos/boot/module/jg/api/mapper/DPStatisticsMapper.java
+4
-0
DPStatisticsMapper.xml
...e-jg-api/src/main/resources/mapper/DPStatisticsMapper.xml
+97
-0
JGDPStatisticsController.java
...le/statistcs/biz/controller/JGDPStatisticsController.java
+22
-0
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+14
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/DPStatisticsMapper.java
View file @
5ac98081
...
...
@@ -76,4 +76,8 @@ public interface DPStatisticsMapper {
Long
constructionNoticeCount
(
@Param
(
"orgCode"
)
String
orgCode
);
Long
changeCountByOrgCode
(
@Param
(
"orgCode"
)
String
orgCode
);
List
<
Map
<
String
,
Object
>>
selectNoticeList
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
);
List
<
Map
<
String
,
Object
>>
selectNoticeCountTopTen
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"time"
)
String
time
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/DPStatisticsMapper.xml
View file @
5ac98081
...
...
@@ -637,4 +637,101 @@
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
) T
</select>
<select
id=
"selectNoticeList"
resultType=
"java.util.Map"
>
SELECT
CONCAT ( T.city_name, T.county_name ) AS location,
T.install_unit_name AS constructionCompany,
T.use_unit_name AS useCompany,
T.install_start_date AS constructionDate
FROM
tzs_jg_installation_notice T
WHERE
install_start_date
>
= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION ALL
SELECT
CONCAT ( T.city_name, T.county_name ) AS location,
T.install_unit_name AS constructionCompany,
T.use_unit_name AS useCompany,
T.plan_date AS constructionDate
FROM
tzs_jg_maintain_notice T
WHERE
plan_date
>
= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION ALL
SELECT
CONCAT ( T.city_name, T.county_name ) AS location,
T.install_unit_name AS constructionCompany,
T.use_unit_name AS useCompany,
T.plan_date AS constructionDate
FROM
tzs_jg_reform_notice T
WHERE
plan_date
>
= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' ) UNION ALL
SELECT
CONCAT ( T.city_name, T.county_name ) AS location,
T.install_unit_name AS constructionCompany,
T.use_unit_name AS useCompany,
T.plan_date AS constructionDate
FROM
tzs_jg_transfer_notice T
WHERE
plan_date
>
= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
</select>
<select
id=
"selectNoticeCountTopTen"
resultType=
"java.util.Map"
>
SELECT SUM( T.num ) AS count,
T.company
FROM
(
SELECT COUNT
( 1 ) AS num,
T.install_unit_name AS company,
T.install_unit_credit_code
FROM
tzs_jg_installation_notice T
WHERE
install_start_date
>
= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
GROUP BY
T.install_unit_credit_code UNION ALL
SELECT COUNT
( 1 ) AS num,
T.install_unit_name AS company,
T.install_unit_credit_code
FROM
tzs_jg_maintain_notice T
WHERE
plan_date
>
= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
GROUP BY
T.install_unit_credit_code UNION ALL
SELECT
( 1 ) AS num,
T.install_unit_name AS company,
T.install_unit_credit_code
FROM
tzs_jg_reform_notice T
WHERE
plan_date
>
= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
GROUP BY
T.install_unit_credit_code UNION ALL
SELECT
( 1 ) AS num,
T.install_unit_name AS company,
T.install_unit_credit_code
FROM
tzs_jg_transfer_notice T
WHERE
plan_date
>
= #{time}
AND T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
GROUP BY
T.install_unit_credit_code
) T
GROUP BY
T.install_unit_credit_code
ORDER BY
COUNT DESC
</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 @
5ac98081
...
...
@@ -268,4 +268,26 @@ public class JGDPStatisticsController {
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
JGCenterMapCountForOverview
(
dpFilterParamDto
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"监管大屏-右屏-施工情况列表(近30天)"
,
notes
=
"监管大屏-右屏-施工情况列表(近30天)"
)
@PostMapping
(
value
=
"/noticeList"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
noticeList
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
List
<
FieldError
>
fieldErrors
=
result
.
getFieldErrors
();
if
(!
fieldErrors
.
isEmpty
())
{
throw
new
BadRequest
(
fieldErrors
.
get
(
0
).
getDefaultMessage
());
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
noticeList
(
dpFilterParamDto
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"监管大屏-右屏-施工单位施工总量排名TOP10"
,
notes
=
"大屏总览-右屏-施工单位施工总量排名TOP10"
)
@PostMapping
(
value
=
"/noticeCountTop"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
noticeCountTop
(
@Validated
@RequestBody
DPFilterParamDto
dpFilterParamDto
,
BindingResult
result
)
{
List
<
FieldError
>
fieldErrors
=
result
.
getFieldErrors
();
if
(!
fieldErrors
.
isEmpty
())
{
throw
new
BadRequest
(
fieldErrors
.
get
(
0
).
getDefaultMessage
());
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
noticeCountTop
(
dpFilterParamDto
));
}
}
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 @
5ac98081
...
...
@@ -1647,4 +1647,18 @@ public class JGDPStatisticsServiceImpl {
}).
collect
(
Collectors
.
toList
());
return
result
;
}
public
List
<
Map
<
String
,
Object
>>
noticeList
(
DPFilterParamDto
dpFilterParamDto
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
time
=
LocalDate
.
now
().
minusDays
(
29
).
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
));
List
<
Map
<
String
,
Object
>>
list
=
dpStatisticsMapper
.
selectNoticeList
(
orgCode
,
time
);
return
list
;
}
public
List
<
Map
<
String
,
Object
>>
noticeCountTop
(
DPFilterParamDto
dpFilterParamDto
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
time
=
LocalDate
.
now
().
minusDays
(
29
).
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
));
List
<
Map
<
String
,
Object
>>
list
=
dpStatisticsMapper
.
selectNoticeCountTopTen
(
orgCode
,
time
);
return
list
;
}
}
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