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
debab54a
Commit
debab54a
authored
Jan 03, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加过滤条件
parent
f2fd2f8e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
5 deletions
+11
-5
EquipmentSpecificController.java
...n/equipmanage/controller/EquipmentSpecificController.java
+4
-1
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+1
-1
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+1
-1
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+2
-2
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+3
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentSpecificController.java
View file @
debab54a
...
@@ -380,7 +380,10 @@ public class EquipmentSpecificController extends AbstractBaseController {
...
@@ -380,7 +380,10 @@ public class EquipmentSpecificController extends AbstractBaseController {
@GetMapping
(
value
=
"/getListByEquipmentCode/{code}"
)
@GetMapping
(
value
=
"/getListByEquipmentCode/{code}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据装备分类code获取装备list"
,
notes
=
"根据装备分类code获取装备list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据装备分类code获取装备list"
,
notes
=
"根据装备分类code获取装备list"
)
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
@PathVariable
String
code
){
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
@PathVariable
String
code
){
return
equipmentSpecificSerivce
.
getListByEquipmentCode
(
code
);
ReginParams
ReginParams
=
getSelectedOrgInfo
();
String
bizCode
=
ReginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
return
equipmentSpecificSerivce
.
getListByEquipmentCode
(
code
,
bizCode
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
debab54a
...
@@ -229,7 +229,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -229,7 +229,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"equipmentId"
)
Long
fireEquipmentId
,
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"equipmentId"
)
Long
fireEquipmentId
,
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
debab54a
...
@@ -227,7 +227,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -227,7 +227,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
* @param code 装备分类逗号隔开
* @param code 装备分类逗号隔开
* @return 装备list
* @return 装备list
*/
*/
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
);
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
,
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
String
code
,
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
String
code
,
String
bizOrgCode
);
/**
/**
* 根据装备id获取物联日志
* 根据装备id获取物联日志
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
debab54a
...
@@ -1831,11 +1831,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1831,11 +1831,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
)
{
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
,
String
bizOrgCode
)
{
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
if
(
StringUtil
.
isNotEmpty
(
code
))
{
if
(
StringUtil
.
isNotEmpty
(
code
))
{
String
[]
strings
=
code
.
split
(
","
);
String
[]
strings
=
code
.
split
(
","
);
list
=
equipmentSpecificMapper
.
getFirePumpInfo
(
strings
);
list
=
equipmentSpecificMapper
.
getFirePumpInfo
(
strings
,
bizOrgCode
);
}
}
return
list
;
return
list
;
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
debab54a
...
@@ -1706,6 +1706,9 @@
...
@@ -1706,6 +1706,9 @@
wes.equipment_code LIKE
<![CDATA[CONCAT(#{item},'%')]]>
wes.equipment_code LIKE
<![CDATA[CONCAT(#{item},'%')]]>
</foreach>
</foreach>
</if>
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and wes.biz_org_code LIKE concat(#{bizOrgCode}, '%')
</if>
</where>
</where>
ORDER BY realtiemIotIndexUpdateDate DESC
ORDER BY realtiemIotIndexUpdateDate DESC
</select>
</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