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
a21e7472
Commit
a21e7472
authored
Sep 27, 2024
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
总览中屏右侧使用单位统计添加个人主体
parent
e528499f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
EnterpriseBizServiceImpl.java
.../statistcs/biz/service/impl/EnterpriseBizServiceImpl.java
+1
-1
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+2
-1
TzBaseEnterpriseInfoMapper.java
...oot/module/ymt/api/mapper/TzBaseEnterpriseInfoMapper.java
+1
-1
No files found.
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/EnterpriseBizServiceImpl.java
View file @
a21e7472
...
@@ -106,7 +106,7 @@ public class EnterpriseBizServiceImpl {
...
@@ -106,7 +106,7 @@ public class EnterpriseBizServiceImpl {
}
}
IPage
<
TzBaseEnterpriseInfoDto
>
tzBaseEnterpriseInfoDtoIPage
=
tzBaseEnterpriseInfoMapper
.
pageList2
(
page
,
tzBaseEnterpriseInfoDto
,
orgCodeList
);
IPage
<
TzBaseEnterpriseInfoDto
>
tzBaseEnterpriseInfoDtoIPage
=
tzBaseEnterpriseInfoMapper
.
pageList2
(
page
,
tzBaseEnterpriseInfoDto
,
orgCodeList
,
unitTypeList
);
if
(
ValidationUtil
.
isEmpty
(
tzBaseEnterpriseInfoDtoIPage
.
getRecords
()))
{
if
(
ValidationUtil
.
isEmpty
(
tzBaseEnterpriseInfoDtoIPage
.
getRecords
()))
{
logger
.
info
(
"查询到的数据为空"
);
logger
.
info
(
"查询到的数据为空"
);
return
tzBaseEnterpriseInfoDtoIPage
;
return
tzBaseEnterpriseInfoDtoIPage
;
...
...
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 @
a21e7472
...
@@ -111,6 +111,7 @@ public class JGDPStatisticsServiceImpl {
...
@@ -111,6 +111,7 @@ public class JGDPStatisticsServiceImpl {
* 单位类型-使用单位
* 单位类型-使用单位
*/
*/
private
final
static
String
COMPANY_TYPE_USE
=
"使用单位"
;
private
final
static
String
COMPANY_TYPE_USE
=
"使用单位"
;
private
final
static
String
COMPANY_TYPE_PERSON
=
"个人主体"
;
/**
/**
* 单位类型-安装改造维修单位
* 单位类型-安装改造维修单位
...
@@ -468,7 +469,7 @@ public class JGDPStatisticsServiceImpl {
...
@@ -468,7 +469,7 @@ public class JGDPStatisticsServiceImpl {
return
;
return
;
}
}
List
<
CountDto
>
countDtos
=
enterpriseInfoMapper
.
countByUnitTypeAndOrgCode
(
orgCode
);
List
<
CountDto
>
countDtos
=
enterpriseInfoMapper
.
countByUnitTypeAndOrgCode
(
orgCode
);
result
.
put
(
DPMapStatisticsItemEnum
.
USERS_UNITS
.
getCode
(),
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_USE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
());
result
.
put
(
DPMapStatisticsItemEnum
.
USERS_UNITS
.
getCode
(),
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_USE
)
||
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_PERSON
)
).
mapToInt
(
CountDto:
:
getIntValue
).
sum
());
result
.
put
(
DPMapStatisticsItemEnum
.
CONSTRUCTION_UNITS
.
getCode
(),
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MAINTENANCE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
());
result
.
put
(
DPMapStatisticsItemEnum
.
CONSTRUCTION_UNITS
.
getCode
(),
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MAINTENANCE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
());
result
.
put
(
DPMapStatisticsItemEnum
.
MANUFACTURING_UNITS
.
getCode
(),
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MANUFACTURE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
());
result
.
put
(
DPMapStatisticsItemEnum
.
MANUFACTURING_UNITS
.
getCode
(),
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MANUFACTURE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
());
result
.
put
(
DPMapStatisticsItemEnum
.
GAS_UNITS
.
getCode
(),
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_FILLING
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
());
result
.
put
(
DPMapStatisticsItemEnum
.
GAS_UNITS
.
getCode
(),
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_FILLING
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
());
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/TzBaseEnterpriseInfoMapper.java
View file @
a21e7472
...
@@ -58,7 +58,7 @@ public interface TzBaseEnterpriseInfoMapper extends BaseMapper<TzBaseEnterpriseI
...
@@ -58,7 +58,7 @@ public interface TzBaseEnterpriseInfoMapper extends BaseMapper<TzBaseEnterpriseI
* @param orgCodeList 机构
* @param orgCodeList 机构
* @return 分页
* @return 分页
*/
*/
IPage
<
TzBaseEnterpriseInfoDto
>
pageList2
(
Page
<
TzBaseEnterpriseInfoDto
>
page
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
,
List
orgCodeList
);
IPage
<
TzBaseEnterpriseInfoDto
>
pageList2
(
Page
<
TzBaseEnterpriseInfoDto
>
page
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
,
List
orgCodeList
,
List
unitTypeList
);
/**
/**
...
...
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