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
2ef25806
Commit
2ef25806
authored
Sep 29, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
84d8190b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
EquipmentCategoryController.java
...n/equipmanage/controller/EquipmentCategoryController.java
+2
-2
EquipmentCategoryMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentCategoryMapper.java
+2
-1
EquipmentCategoryMapper.xml
...uip/src/main/resources/mapper/EquipmentCategoryMapper.xml
+10
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentCategoryController.java
View file @
2ef25806
...
@@ -458,7 +458,7 @@ public class EquipmentCategoryController extends AbstractBaseController {
...
@@ -458,7 +458,7 @@ public class EquipmentCategoryController extends AbstractBaseController {
equipmentCategorys
.
forEach
(
action
->
{
equipmentCategorys
.
forEach
(
action
->
{
String
beginName
=
action
.
getName
();
String
beginName
=
action
.
getName
();
String
subCode
=
action
.
getCode
().
replaceAll
(
"0+$"
,
""
);
String
subCode
=
action
.
getCode
().
replaceAll
(
"0+$"
,
""
);
int
count
=
StringUtils
.
isNotEmpty
(
bizOrgCode
)?
equipmentCategoryMapper
.
countBy
Category
Code
(
subCode
,
bizOrgCode
)
:
0
;
int
count
=
StringUtils
.
isNotEmpty
(
bizOrgCode
)?
equipmentCategoryMapper
.
countBy
FireTypeAnd
Code
(
subCode
,
bizOrgCode
)
:
0
;
action
.
setName
(
action
.
getName
()
+
"("
+
count
+
")"
);
action
.
setName
(
action
.
getName
()
+
"("
+
count
+
")"
);
if
(
beginName
.
equals
(
"消防设施"
)
||
beginName
.
equals
(
"消防系统"
))
{
if
(
beginName
.
equals
(
"消防设施"
)
||
beginName
.
equals
(
"消防系统"
))
{
...
@@ -498,7 +498,7 @@ public class EquipmentCategoryController extends AbstractBaseController {
...
@@ -498,7 +498,7 @@ public class EquipmentCategoryController extends AbstractBaseController {
Map
<
String
,
List
<
EquipmentCategory
>>
tmpMap
=
new
HashMap
<
String
,
List
<
EquipmentCategory
>>();
Map
<
String
,
List
<
EquipmentCategory
>>
tmpMap
=
new
HashMap
<
String
,
List
<
EquipmentCategory
>>();
equipmentCategorys
.
forEach
(
action
->
{
equipmentCategorys
.
forEach
(
action
->
{
String
subCode
=
action
.
getCode
().
replaceAll
(
"0+$"
,
""
);
String
subCode
=
action
.
getCode
().
replaceAll
(
"0+$"
,
""
);
int
count
=
StringUtils
.
isNotEmpty
(
bizOrgCode
)?
equipmentCategoryMapper
.
countBy
Category
Code
(
subCode
,
bizOrgCode
)
:
0
;
int
count
=
StringUtils
.
isNotEmpty
(
bizOrgCode
)?
equipmentCategoryMapper
.
countBy
EquipTypeAnd
Code
(
subCode
,
bizOrgCode
)
:
0
;
action
.
setName
(
action
.
getName
()
+
"("
+
count
+
")"
);
action
.
setName
(
action
.
getName
()
+
"("
+
count
+
")"
);
if
(
action
.
getParentId
()
==
null
)
{
if
(
action
.
getParentId
()
==
null
)
{
action
.
setPatrolNum
(
count
);
action
.
setPatrolNum
(
count
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentCategoryMapper.java
View file @
2ef25806
...
@@ -57,9 +57,10 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
...
@@ -57,9 +57,10 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
List
<
EquipmentCategory
>
getEquipmentCategoryListByFacilities
(
Integer
head
);
List
<
EquipmentCategory
>
getEquipmentCategoryListByFacilities
(
Integer
head
);
int
countBy
Category
Code
(
@Param
(
"code"
)
String
code
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
int
countBy
FireTypeAnd
Code
(
@Param
(
"code"
)
String
code
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
int
countByEquipTypeAndCode
(
@Param
(
"code"
)
String
code
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
/**
/**
* 重点部位数量
* 重点部位数量
* @return
* @return
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
2ef25806
...
@@ -500,14 +500,22 @@
...
@@ -500,14 +500,22 @@
</if>
</if>
</select>
</select>
<select
id=
"countBy
Category
Code"
resultType=
"int"
>
<select
id=
"countBy
FireTypeAnd
Code"
resultType=
"int"
>
select count(*) from p_input_item
select count(*) from p_input_item
where
(equipment_type like concat(#{code}, '%') or facilities_type like concat(#{code}, '%')
)
where
facilities_type like concat(#{code}, '%'
)
AND biz_org_code like concat(#{bizOrgCode}, '%')
AND biz_org_code like concat(#{bizOrgCode}, '%')
AND is_delete = '0'
AND is_delete = '0'
AND input_type!='1'
AND input_type!='1'
</select>
</select>
<select
id=
"countByEquipTypeAndCode"
resultType=
"int"
>
select count(*) from p_input_item
where equipment_type like concat(#{code}, '%')
AND biz_org_code like concat(#{bizOrgCode}, '%')
AND is_delete = '0'
AND input_type!='1'
</select>
<select
id=
"countByKeyPartsType"
resultType=
"int"
>
<select
id=
"countByKeyPartsType"
resultType=
"int"
>
select count(*) from p_input_item
select count(*) from p_input_item
where key_parts_type is not null
where key_parts_type is not null
...
...
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