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
6c49815c
Commit
6c49815c
authored
Oct 14, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: BUG#23962 站端设备平台v5>消防自动化>消防资源>消防设施>消防装备,左下角装备定义的数量的查询接口查询出的数据,和设备卡片的数据不一致
parent
121d2911
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+2
-2
ISourceStatistics.java
...va/com/yeejoin/equipmanage/service/ISourceStatistics.java
+1
-1
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+1
-1
SourcesStatisticsImpl.java
...ejoin/equipmanage/service/impl/SourcesStatisticsImpl.java
+5
-3
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+0
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
6c49815c
...
...
@@ -537,10 +537,10 @@ public class FireFightingSystemController extends AbstractBaseController {
}
}
if
(
flag
==
0
)
{
String
classificationCode
=
equipTypeAmountPage
.
getEquipmentClassificationCode
().
replaceAll
(
"0+$"
,
""
);
String
classificationCode
=
equipTypeAmountPage
.
getEquipmentClassificationCode
().
replaceAll
(
"0+$"
,
""
)
.
trim
()
;
return
fireFightingSystemService
.
getColaCategoryAmountEquList
(
inhierarchy
,
classificationCode
,
equipTypeAmountPage
);
}
else
{
String
classificationCode
=
equipTypeAmountPage
.
getEquipmentClassificationCode
().
replaceAll
(
"0+$"
,
""
);
String
classificationCode
=
equipTypeAmountPage
.
getEquipmentClassificationCode
().
replaceAll
(
"0+$"
,
""
)
.
trim
()
;
return
fireFightingSystemService
.
getColaCategoryAmountEquList
(
inhierarchy
,
classificationCode
.
length
()
%
2
==
0
?
classificationCode
:
classificationCode
+
"0"
,
equipTypeAmountPage
);
}
// return fireFightingSystemService.getColaCategoryAmountEquList(inhierarchy, equipTypeAmountPage.getEquipmentClassificationCode(), equipTypeAmountPage);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/ISourceStatistics.java
View file @
6c49815c
...
...
@@ -12,7 +12,7 @@ public interface ISourceStatistics {
* @param categoryCode 资源分类code
* @return int 数量
*/
int
equipCategoryStatistics
(
String
bizOrgCode
,
SourceTypeEnum
sourceType
,
String
categoryCode
);
int
equipCategoryStatistics
(
String
bizOrgCode
,
SourceTypeEnum
sourceType
,
String
categoryCode
,
boolean
isRoot
);
/**
* 初始化所有有分类数据(装备、车辆),bizOrgCode + "_" + sourceType.getCode() + "_" + categoryCode
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
6c49815c
...
...
@@ -1350,7 +1350,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
List
<
EquipmentCategory
>
list
=
new
ArrayList
<>();
Map
<
String
,
List
<
EquipmentCategory
>>
tmpMap
=
new
HashMap
<
String
,
List
<
EquipmentCategory
>>();
equipmentCategorys
.
forEach
(
action
->
{
int
num
=
sourceStatistics
.
equipCategoryStatistics
(
bizOrgCode
,
sourceTypeEnum
,
action
.
getCode
());
int
num
=
sourceStatistics
.
equipCategoryStatistics
(
bizOrgCode
,
sourceTypeEnum
,
action
.
getCode
()
,
Objects
.
isNull
(
action
.
getParentId
())
);
action
.
setCount
(
Double
.
parseDouble
(
num
+
""
));
if
(
action
.
getParentId
()
==
null
)
{
list
.
add
(
action
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/SourcesStatisticsImpl.java
View file @
6c49815c
...
...
@@ -23,12 +23,14 @@ public class SourcesStatisticsImpl implements ISourceStatistics {
@Override
public
int
equipCategoryStatistics
(
String
bizOrgCode
,
SourceTypeEnum
sourceType
,
String
categoryCode
)
{
public
int
equipCategoryStatistics
(
String
bizOrgCode
,
SourceTypeEnum
sourceType
,
String
categoryCode
,
boolean
isRoot
)
{
// 计算处通用code,用来上下级匹配如12001010000->1200101
String
treeCode
=
subStringZero
(
categoryCode
);
treeCode
=
treeCode
.
length
()
%
2
==
0
?
treeCode
:
treeCode
+
"0"
;
if
(!
isRoot
&&
treeCode
.
length
()
%
2
!=
0
)
{
treeCode
=
treeCode
+
"0"
;
}
Set
<
String
>
keys
=
redisUtil
.
getKeys
(
buildPattenKey
(
bizOrgCode
,
sourceType
.
getCode
(),
treeCode
));
if
(
keys
.
size
()
>
0
)
{
if
(
!
keys
.
isEmpty
()
)
{
//求和
return
this
.
sumNumber
(
keys
);
}
else
{
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
6c49815c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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