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
5b184cd0
Commit
5b184cd0
authored
Aug 13, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏-监管-业务办理时效新开发原有开发错误为了数量
parent
bf241f13
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
23 deletions
+12
-23
JGStatisticsMapper.java
...boot/module/statistics/api/mapper/JGStatisticsMapper.java
+2
-2
JGStatisticsMapper.xml
...tics-api/src/main/resources/mapper/JGStatisticsMapper.xml
+7
-21
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+3
-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/mapper/JGStatisticsMapper.java
View file @
5b184cd0
...
...
@@ -64,7 +64,7 @@ public interface JGStatisticsMapper {
List
<
CountDto
>
queryChangeAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CountDto
>
queryDisableAvgDayByReceiveCompany
(
DPFilterParamDto
dpFilterParamDto
,
String
orgCode
);
List
<
CountDto
>
queryDisableAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CountDto
>
queryCancelAvgDayByReceiveCompany
(
DPFilterParamDto
dpFilterParamDto
,
String
orgCode
);
List
<
CountDto
>
queryCancelAvgDayByReceiveCompany
(
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
,
@Param
(
"orgCode"
)
String
orgCode
);
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/JGStatisticsMapper.xml
View file @
5b184cd0
...
...
@@ -305,23 +305,6 @@
ORDER BY
ur.rec_date
</select>
<select
id=
"useCountByOrgCodes"
resultType=
"java.util.Map"
>
SELECT COUNT
( 1 ),
T.receive_company_org_code AS orgCode
FROM
tzs_jg_use_registration T
WHERE
T.audit_status = '已完成'
AND
<foreach
collection=
"orgCodes"
item=
"orgCode"
separator=
"OR"
open=
"("
close=
")"
>
T.receive_company_org_code LIKE CONCAT ( #{orgCode}, '%' )
</foreach>
GROUP BY
T.receive_company_org_code
</select>
<select
id=
"certificateCountByOrgCode"
resultType=
"java.lang.Long"
>
SELECT COUNT
(1)
...
...
@@ -607,6 +590,7 @@
tzs_jg_use_registration T
WHERE
T.audit_status = '已完成'
and T.receive_company_org_code like concat(#{orgCode}, '%')
<if
test=
"dto.beginDate !=null and dto.beginDate !=''"
>
and date_ge(CAST(T.reg_date as date),#{dto.beginDate})
</if>
...
...
@@ -617,19 +601,21 @@
union all
SELECT
round(avg(T.audit_pass_date::date - T.reg_date::date + 1),1) as strValue,
T.receive_
org_code AS keyStr
pc.
org_code AS keyStr
FROM
tzs_jg_vehicle_information T
tzs_jg_vehicle_information T,
privilege_company pc
WHERE
T.status = '已完成'
and T.receive_org_code like(#{param1})
and t.receive_company_code = pc.company_code
and pc.org_code like concat(#{orgCode}, '%')
<if
test=
"dto.beginDate !=null and dto.beginDate !=''"
>
and date_ge(CAST(T.reg_date as date),#{dto.beginDate})
</if>
<if
test=
"dto.endDate !=null and dto.endDate !=''"
>
and date_le(CAST(T.reg_date as date),#{dto.endDate})
</if>
GROUP BY
T.receive_
org_code
GROUP BY
pc.
org_code
</select>
<select
id=
"queryChangeAvgDayByReceiveCompany"
resultType=
"com.yeejoin.amos.boot.biz.common.dto.CountDto"
>
SELECT
...
...
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 @
5b184cd0
...
...
@@ -904,6 +904,9 @@ public class JGDPStatisticsServiceImpl {
private
String
avgAndSumDealDate
(
List
<
CountDto
>
collect
)
{
BigDecimal
sum
=
collect
.
stream
().
map
(
c
->
new
BigDecimal
(
c
.
getStrValue
())).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
if
(
collect
.
isEmpty
()){
return
"0"
;
}
return
sum
.
divide
(
BigDecimal
.
valueOf
(
collect
.
size
()),
1
,
RoundingMode
.
HALF_UP
).
toPlainString
();
}
...
...
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