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
56a0472d
Commit
56a0472d
authored
Oct 13, 2022
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
312adcb1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
26 deletions
+13
-26
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+4
-12
SupervisionVideoMapper.java
...om/yeejoin/equipmanage/mapper/SupervisionVideoMapper.java
+1
-1
ISupervisionVideoService.java
...yeejoin/equipmanage/service/ISupervisionVideoService.java
+2
-5
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+1
-0
SupervisionVideoServiceImpl.java
...equipmanage/service/impl/SupervisionVideoServiceImpl.java
+3
-6
SupervisionVideoMapper.xml
...quip/src/main/resources/mapper/SupervisionVideoMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
56a0472d
...
@@ -364,10 +364,10 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -364,10 +364,10 @@ public class SupervisionConfigureController extends AbstractBaseController {
}
}
@PersonIdentify
@PersonIdentify
@RequestMapping
(
value
=
"/
addVideo"
,
method
=
RequestMethod
.
GE
T
)
@RequestMapping
(
value
=
"/
replaceVideo"
,
method
=
RequestMethod
.
POS
T
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"
GE
T"
,
value
=
"添加视频"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"添加视频"
)
@ApiOperation
(
httpMethod
=
"
POS
T"
,
value
=
"添加视频"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"添加视频"
)
public
ResponseModel
addVideo
(
@RequestParam
String
ids
,
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
public
ResponseModel
replaceVideo
(
@RequestBody
String
ids
,
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
if
(!
ValidationUtil
.
isEmpty
(
personIdentity
))
{
if
(!
ValidationUtil
.
isEmpty
(
personIdentity
))
{
...
@@ -375,7 +375,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -375,7 +375,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
bizOrgCode
=
personIdentity
.
getBizOrgCode
();
bizOrgCode
=
personIdentity
.
getBizOrgCode
();
}
}
}
}
return
CommonResponseUtil
.
success
(
supervisionVideoService
.
addVide
(
ids
,
bizOrgCode
));
return
CommonResponseUtil
.
success
(
supervisionVideoService
.
replaceVideo
(
ids
,
bizOrgCode
));
}
}
@PersonIdentify
@PersonIdentify
...
@@ -394,14 +394,6 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -394,14 +394,6 @@ public class SupervisionConfigureController extends AbstractBaseController {
}
}
@PersonIdentify
@PersonIdentify
@RequestMapping
(
value
=
"/delVideo"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"删除视频"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"删除视频"
)
public
ResponseModel
delVideo
(
String
id
)
{
return
CommonResponseUtil
.
success
(
supervisionVideoService
.
deleteVideo
(
id
));
}
@PersonIdentify
@RequestMapping
(
value
=
"/queryVideoAllId"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/queryVideoAllId"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询对应站下所有视频id"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"根据id查询视频"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询对应站下所有视频id"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"根据id查询视频"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/SupervisionVideoMapper.java
View file @
56a0472d
...
@@ -14,5 +14,5 @@ public interface SupervisionVideoMapper extends BaseMapper<SupervisionVideo> {
...
@@ -14,5 +14,5 @@ public interface SupervisionVideoMapper extends BaseMapper<SupervisionVideo> {
List
<
Map
<
String
,
Object
>>
getVideoByCompany
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getVideoByCompany
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>
>
queryVideoAllId
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
String
>
queryVideoAllId
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/ISupervisionVideoService.java
View file @
56a0472d
...
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.yeejoin.equipmanage.common.entity.SupervisionVideo
;
import
com.yeejoin.equipmanage.common.entity.SupervisionVideo
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author ZeHua Li
* @author ZeHua Li
...
@@ -15,9 +14,7 @@ public interface ISupervisionVideoService extends IService<SupervisionVideo> {
...
@@ -15,9 +14,7 @@ public interface ISupervisionVideoService extends IService<SupervisionVideo> {
List
queryVideoList
(
String
bizOrgCode
);
List
queryVideoList
(
String
bizOrgCode
);
int
deleteVideo
(
String
id
);
boolean
replaceVideo
(
String
ids
,
String
bizOrgCode
);
boolean
addVide
(
String
ids
,
String
bizOrgCode
);
List
<
String
>
queryVideoAllId
(
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
queryVideoAllId
(
String
bizOrgCode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
56a0472d
...
@@ -793,6 +793,7 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -793,6 +793,7 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
model
.
setTerminal
(
"WEB"
);
model
.
setTerminal
(
"WEB"
);
Map
<
String
,
String
>
ext
=
new
HashMap
<>();
Map
<
String
,
String
>
ext
=
new
HashMap
<>();
ext
.
put
(
"isRead"
,
"1"
);
ext
.
put
(
"isRead"
,
"1"
);
model
.
setExtras
(
ext
);
Token
token
=
remoteSecurityService
.
getServerToken
();
Token
token
=
remoteSecurityService
.
getServerToken
();
systemctlFeign
.
create
(
token
.
getAppKey
(),
token
.
getProduct
(),
token
.
getToke
(),
model
);
systemctlFeign
.
create
(
token
.
getAppKey
(),
token
.
getProduct
(),
token
.
getToke
(),
model
);
return
i
;
return
i
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/SupervisionVideoServiceImpl.java
View file @
56a0472d
...
@@ -43,13 +43,10 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
...
@@ -43,13 +43,10 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
return
resList
;
return
resList
;
}
}
@Override
public
int
deleteVideo
(
String
id
)
{
return
supervisionVideoMapper
.
delete
(
new
QueryWrapper
<
SupervisionVideo
>().
eq
(
"camera_id"
,
id
));
}
@Override
@Override
public
boolean
addVide
(
String
ids
,
String
bizOrgCode
)
{
public
boolean
replaceVideo
(
String
ids
,
String
bizOrgCode
)
{
supervisionVideoMapper
.
delete
(
new
QueryWrapper
<
SupervisionVideo
>().
eq
(
"biz_org_code"
,
bizOrgCode
));
List
<
SupervisionVideo
>
list
=
new
ArrayList
<>();
List
<
SupervisionVideo
>
list
=
new
ArrayList
<>();
for
(
String
s
:
ids
.
split
(
","
))
{
for
(
String
s
:
ids
.
split
(
","
))
{
SupervisionVideo
supervisionVideo
=
new
SupervisionVideo
();
SupervisionVideo
supervisionVideo
=
new
SupervisionVideo
();
...
@@ -62,7 +59,7 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
...
@@ -62,7 +59,7 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>
>
queryVideoAllId
(
String
bizOrgCode
)
{
public
List
<
String
>
queryVideoAllId
(
String
bizOrgCode
)
{
return
supervisionVideoMapper
.
queryVideoAllId
(
bizOrgCode
);
return
supervisionVideoMapper
.
queryVideoAllId
(
bizOrgCode
);
}
}
}
}
amos-boot-system-equip/src/main/resources/mapper/SupervisionVideoMapper.xml
View file @
56a0472d
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
where wsv.biz_org_code = #{bizOrgCode}
where wsv.biz_org_code = #{bizOrgCode}
</select>
</select>
<select
id=
"queryVideoAllId"
resultType=
"java.
util.Map
"
>
<select
id=
"queryVideoAllId"
resultType=
"java.
lang.String
"
>
select wsv.camera_id
select wsv.camera_id
from wl_supervision_video wsv
from wl_supervision_video wsv
where wsv.biz_org_code
= #{bizOrgCode}
where wsv.biz_org_code
like concat(#{bizOrgCode},'%');
</select>
</select>
</mapper>
</mapper>
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