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
614156a1
Commit
614156a1
authored
Feb 07, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
a011495d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
IEquipmentCategoryService.java
...eejoin/equipmanage/service/IEquipmentCategoryService.java
+1
-1
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+6
-1
EquipmentCategoryMapper.xml
...uip/src/main/resources/mapper/EquipmentCategoryMapper.xml
+11
-11
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentCategoryService.java
View file @
614156a1
...
...
@@ -47,7 +47,7 @@ public interface IEquipmentCategoryService extends IService<EquipmentCategory> {
int
checkUsed
(
List
<
String
>
ids
);
List
<
EquipmentCategory
>
getEquipmentCategoryList
(
Integer
head
);
List
<
EquipmentCategory
>
getEquipmentCategoryListNew
(
Integer
head
,
String
typ
e
);
List
<
EquipmentCategory
>
getEquipmentCategoryListNew
(
Integer
head
,
String
carCode
,
String
waterCod
e
);
List
<
Map
<
String
,
Object
>>
getequipmentListEQNew
();
List
<
EquipmentCategory
>
getEquipmentCategoryListNotFacilities
(
Integer
head
)
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
614156a1
...
...
@@ -151,6 +151,11 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
@Value
(
"${redis_equip_type_count}"
)
private
String
equipTypeAndCount
;
//消防车辆code,前缀
private
final
String
carCode
=
"2"
;
//消防水源code前缀
private
final
String
waterCode
=
"9360"
;
@Override
public
List
<
EquipCountBySystemVO
>
getEquipCountBySystemId
(
Long
systemId
)
{
return
this
.
baseMapper
.
getEquipCountBySystemId
(
systemId
);
...
...
@@ -1161,7 +1166,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
public
Object
refreshEquipmentTypeAndCountNew
(
String
bizOrgCode
)
{
//获取装备分类
List
<
EquipmentCategory
>
responseList
=
this
.
iEquipmentCategoryService
.
getEquipmentCategoryListNew
(
Integer
.
valueOf
(
equipmentCategoryLeftTypeCode
),
"eq"
);
.
getEquipmentCategoryListNew
(
Integer
.
valueOf
(
equipmentCategoryLeftTypeCode
),
carCode
,
waterCode
);
if
(
responseList
==
null
||
responseList
.
size
()
<
1
)
{
return
null
;
}
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
614156a1
...
...
@@ -318,16 +318,17 @@
ec.create_date,
i.`name` as industryName,
-- industry_code = 2代表消防设备
IF(LEFT(ec.CODE, 1) = #{head} and ec.industry_code = 2, 'car', 'equipment')
AS type
FROM wl_equipment_category ec
left join wl_industry i on ec.industry_code = i.code
<where>
<if
test=
"type != null"
>
and left(ec.code,1) != '2'
and left(ec.code,4) !='9306'
and ec.industry_code = 2
</if>
IF(LEFT(ec.CODE, 1) = #{head} and ec.industry_code = 2, 'car', 'equipment') AS type
FROM wl_equipment_category ec
left join wl_industry i on ec.industry_code = i.code
<where>
and ec.industry_code = 2
<if
test=
"carCode != null"
>
and left(ec.code,1) != #{carCode}
</if>
<if
test=
"waterCode != null"
>
and left(ec.code,4) !=#{waterCode}
</if>
</where>
</select>
...
...
@@ -348,7 +349,6 @@
AND ( `e`.`category_id` = `c`.`id` )
AND ( `s`.`biz_org_code` != '' )
)
</select>
...
...
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