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
5370abde
Commit
5370abde
authored
Apr 18, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.bug18365
parent
d60eb398
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
ReportAnalysisController.java
...ot/module/jg/biz/controller/ReportAnalysisController.java
+0
-2
ReportAnalysisServiceImpl.java
...module/jg/biz/service/impl/ReportAnalysisServiceImpl.java
+17
-12
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/ReportAnalysisController.java
View file @
5370abde
...
@@ -7,8 +7,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.ReportAnalysisSearchDTO;
...
@@ -7,8 +7,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.ReportAnalysisSearchDTO;
import
com.yeejoin.amos.boot.module.jg.api.service.IReportAnalysisService
;
import
com.yeejoin.amos.boot.module.jg.api.service.IReportAnalysisService
;
import
com.yeejoin.amos.boot.module.jg.api.vo.JgBizCountBaseVo
;
import
com.yeejoin.amos.boot.module.jg.api.vo.JgBizCountBaseVo
;
import
com.yeejoin.amos.boot.module.jg.api.vo.JgBizEquipStateCountVo
;
import
com.yeejoin.amos.boot.module.jg.api.vo.JgBizEquipStateCountVo
;
import
com.yeejoin.amos.boot.module.ymt.api.common.StringUtil
;
import
com.yeejoin.amos.feign.rule.model.FactBaseModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/ReportAnalysisServiceImpl.java
View file @
5370abde
...
@@ -99,8 +99,8 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
...
@@ -99,8 +99,8 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
* 缓存根节点的数据的接收机构数据
* 缓存根节点的数据的接收机构数据
*/
*/
public
void
initRootOrgReceiveTree2Redis
()
{
public
void
initRootOrgReceiveTree2Redis
()
{
getCompanyBos
(
rootOrgCode
,
true
);
getCompanyBos
(
rootOrgCode
,
true
);
getCompanyBos
(
rootOrgCode
,
false
);
getCompanyBos
(
rootOrgCode
,
false
);
}
}
private
void
initEquipCategoryCache
()
{
private
void
initEquipCategoryCache
()
{
...
@@ -146,7 +146,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
...
@@ -146,7 +146,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
JgBizCountBaseVo
vo
=
new
JgBizCountBaseVo
();
JgBizCountBaseVo
vo
=
new
JgBizCountBaseVo
();
vo
.
setBizGroup
(
"施工告知"
);
vo
.
setBizGroup
(
"施工告知"
);
vo
.
setBizType
(
c
.
getBizType
());
vo
.
setBizType
(
c
.
getBizType
());
vo
.
setReceiveCompanyName
(
getReceiveCompanyNameReal
(
c
.
getReceiveCompanyCode
(),
companyCodeNameMap
.
get
(
c
.
getReceiveCompanyCode
()
)));
vo
.
setReceiveCompanyName
(
companyCodeNameMap
.
get
(
c
.
getReceiveCompanyCode
(
)));
vo
.
setEquListName
(
getEquipCategoryNameByCode
(
c
.
getEquList
()));
vo
.
setEquListName
(
getEquipCategoryNameByCode
(
c
.
getEquList
()));
vo
.
setEquCategoryName
(
getEquipCategoryNameByCode
(
c
.
getEquCategory
()));
vo
.
setEquCategoryName
(
getEquipCategoryNameByCode
(
c
.
getEquCategory
()));
vo
.
setEquDefineName
(
getEquipCategoryNameByCode
(
c
.
getEquDefine
()));
vo
.
setEquDefineName
(
getEquipCategoryNameByCode
(
c
.
getEquDefine
()));
...
@@ -157,7 +157,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
...
@@ -157,7 +157,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
}
private
String
getReceiveCompanyNameReal
(
String
receiveCompanyCode
,
String
defaultName
){
private
String
getReceiveCompanyNameReal
(
String
receiveCompanyCode
,
String
defaultName
)
{
return
commonService
.
getRegName
(
receiveCompanyCode
,
defaultName
);
return
commonService
.
getRegName
(
receiveCompanyCode
,
defaultName
);
}
}
...
@@ -219,7 +219,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
...
@@ -219,7 +219,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
return
countVoSet
.
stream
().
map
(
c
->
{
return
countVoSet
.
stream
().
map
(
c
->
{
JgBizCountBaseVo
vo
=
new
JgBizCountBaseVo
();
JgBizCountBaseVo
vo
=
new
JgBizCountBaseVo
();
vo
.
setBizGroup
(
"维保备案"
);
vo
.
setBizGroup
(
"维保备案"
);
return
buildJgBizCountBaseVo
(
countDataBOList
,
c
,
vo
,
mainLaunchesStatusList
);
return
buildJgBizCountBaseVo
(
countDataBOList
,
c
,
vo
,
mainLaunchesStatusList
,
false
);
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
}
...
@@ -230,14 +230,19 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
...
@@ -230,14 +230,19 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
return
countVoSet
.
stream
().
map
(
c
->
{
return
countVoSet
.
stream
().
map
(
c
->
{
JgBizCountBaseVo
vo
=
new
JgBizCountBaseVo
();
JgBizCountBaseVo
vo
=
new
JgBizCountBaseVo
();
vo
.
setBizGroup
(
"使用登记"
);
vo
.
setBizGroup
(
"使用登记"
);
return
buildJgBizCountBaseVo
(
countDataBOList
,
c
,
vo
,
registerLaunchesStatusList
);
return
buildJgBizCountBaseVo
(
countDataBOList
,
c
,
vo
,
registerLaunchesStatusList
,
true
);
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
}
private
JgBizCountBaseVo
buildJgBizCountBaseVo
(
List
<
JgBizCountDataBO
>
countDataBOList
,
JgBizCountDataDto
c
,
JgBizCountBaseVo
vo
,
List
<
String
>
registerLaunchesStatusList
)
{
private
JgBizCountBaseVo
buildJgBizCountBaseVo
(
List
<
JgBizCountDataBO
>
countDataBOList
,
JgBizCountDataDto
c
,
JgBizCountBaseVo
vo
,
List
<
String
>
registerLaunchesStatusList
,
Boolean
isRegName
)
{
vo
.
setBizType
(
c
.
getBizType
());
vo
.
setBizType
(
c
.
getBizType
());
vo
.
setReceiveCompanyName
(
getReceiveCompanyNameReal
(
c
.
getReceiveCompanyCode
(),
companyCodeNameMap
.
get
(
c
.
getReceiveCompanyCode
())));
if
(
isRegName
)
{
vo
.
setReceiveCompanyName
(
getReceiveCompanyNameReal
(
c
.
getReceiveCompanyCode
(),
companyCodeNameMap
.
get
(
c
.
getReceiveCompanyCode
())));
}
else
{
vo
.
setReceiveCompanyName
(
companyCodeNameMap
.
get
(
c
.
getReceiveCompanyCode
()));
}
vo
.
setEquListName
(
getEquipCategoryNameByCode
(
c
.
getEquList
()));
vo
.
setEquListName
(
getEquipCategoryNameByCode
(
c
.
getEquList
()));
vo
.
setEquCategoryName
(
getEquipCategoryNameByCode
(
c
.
getEquCategory
()));
vo
.
setEquCategoryName
(
getEquipCategoryNameByCode
(
c
.
getEquCategory
()));
vo
.
setEquDefineName
(
getEquipCategoryNameByCode
(
c
.
getEquDefine
()));
vo
.
setEquDefineName
(
getEquipCategoryNameByCode
(
c
.
getEquDefine
()));
...
@@ -313,7 +318,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
...
@@ -313,7 +318,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
private
List
<
CompanyBo
>
getCompanyBos
(
String
orgCode
,
boolean
isReg
)
{
private
List
<
CompanyBo
>
getCompanyBos
(
String
orgCode
,
boolean
isReg
)
{
List
<
CompanyBo
>
companyBoList
=
commonMapper
.
queryJGCompanyCodeName
(
orgCode
);
List
<
CompanyBo
>
companyBoList
=
commonMapper
.
queryJGCompanyCodeName
(
orgCode
);
// 设置接收机构名称与使用标志上登记机构名称一样
// 设置接收机构名称与使用标志上登记机构名称一样
if
(
isReg
)
{
if
(
isReg
)
{
this
.
setCompany2RealName
(
companyBoList
);
this
.
setCompany2RealName
(
companyBoList
);
}
}
synchronized
(
this
)
{
synchronized
(
this
)
{
...
@@ -331,7 +336,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
...
@@ -331,7 +336,7 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
}
}
private
void
setCompany2RealName
(
List
<
CompanyBo
>
companyBoList
)
{
private
void
setCompany2RealName
(
List
<
CompanyBo
>
companyBoList
)
{
companyBoList
.
forEach
(
c
->
{
companyBoList
.
forEach
(
c
->
{
c
.
setCompanyName
(
getReceiveCompanyNameReal
(
c
.
getCompanyCode
(),
c
.
getCompanyName
()));
c
.
setCompanyName
(
getReceiveCompanyNameReal
(
c
.
getCompanyCode
(),
c
.
getCompanyName
()));
});
});
}
}
...
@@ -389,11 +394,11 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
...
@@ -389,11 +394,11 @@ public class ReportAnalysisServiceImpl implements IReportAnalysisService {
private
void
filledParentCompanyName
(
JgBizCountDataDto
c
,
JgBizEquipStateCountVo
vo
)
{
private
void
filledParentCompanyName
(
JgBizCountDataDto
c
,
JgBizEquipStateCountVo
vo
)
{
// 生产环境特殊数据处理,之前未限制只能选所
// 生产环境特殊数据处理,之前未限制只能选所
if
(
c
.
getReceiveCompanyCode
().
split
(
"\\*"
).
length
==
2
)
{
if
(
c
.
getReceiveCompanyCode
().
split
(
"\\*"
).
length
==
2
)
{
// 直接上级(区县)
// 直接上级(区县)
String
parentOrgCode
=
c
.
getReceiveCompanyCode
().
substring
(
0
,
c
.
getReceiveCompanyCode
().
lastIndexOf
(
"*"
));
String
parentOrgCode
=
c
.
getReceiveCompanyCode
().
substring
(
0
,
c
.
getReceiveCompanyCode
().
lastIndexOf
(
"*"
));
vo
.
setCountyManagementUnitName
(
orgCodeNameMap
.
get
(
parentOrgCode
));
vo
.
setCountyManagementUnitName
(
orgCodeNameMap
.
get
(
parentOrgCode
));
}
else
if
(
c
.
getReceiveCompanyCode
().
split
(
"\\*"
).
length
>
2
)
{
}
else
if
(
c
.
getReceiveCompanyCode
().
split
(
"\\*"
).
length
>
2
)
{
// 直接上级(区县)
// 直接上级(区县)
String
parentOrgCode
=
c
.
getReceiveCompanyCode
().
substring
(
0
,
c
.
getReceiveCompanyCode
().
lastIndexOf
(
"*"
));
String
parentOrgCode
=
c
.
getReceiveCompanyCode
().
substring
(
0
,
c
.
getReceiveCompanyCode
().
lastIndexOf
(
"*"
));
vo
.
setCountyManagementUnitName
(
orgCodeNameMap
.
get
(
parentOrgCode
));
vo
.
setCountyManagementUnitName
(
orgCodeNameMap
.
get
(
parentOrgCode
));
...
...
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