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
d9a598c7
Commit
d9a598c7
authored
Mar 04, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改视频导入
parent
759b2387
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
0 deletions
+49
-0
VideoDownloadVO.java
...yeejoin/equipmanage/common/entity/vo/VideoDownloadVO.java
+6
-0
VideoTypeEnum.java
...a/com/yeejoin/equipmanage/common/enums/VideoTypeEnum.java
+39
-0
VideoServiceImpl.java
...om/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
+4
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/VideoDownloadVO.java
View file @
d9a598c7
...
@@ -39,5 +39,11 @@ public class VideoDownloadVO implements Serializable {
...
@@ -39,5 +39,11 @@ public class VideoDownloadVO implements Serializable {
@ExcelProperty
(
value
=
"关联电力设备编码(多个分号分隔)"
,
index
=
8
)
@ExcelProperty
(
value
=
"关联电力设备编码(多个分号分隔)"
,
index
=
8
)
private
String
importantEquipmentCodes
;
private
String
importantEquipmentCodes
;
@ExcelProperty
(
value
=
"视频类型(枪机/球机)"
,
index
=
9
)
private
String
type
;
@ExcelProperty
(
value
=
"图片地址"
,
index
=
10
)
private
String
img
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/enums/VideoTypeEnum.java
0 → 100644
View file @
d9a598c7
package
com
.
yeejoin
.
equipmanage
.
common
.
enums
;
/**
* 画布资源枚举
* @author DELL
*
*/
public
enum
VideoTypeEnum
{
gun
(
"枪机"
,
"51000000"
),
ball
(
"球机"
,
"52000000"
);
VideoTypeEnum
(
String
name
,
String
code
)
{
this
.
name
=
name
;
this
.
code
=
code
;
}
private
String
name
;
private
String
code
;
public
String
getName
()
{
return
name
;
}
public
String
getCode
()
{
return
code
;
}
public
static
String
getCode
(
String
name
)
{
for
(
VideoTypeEnum
c
:
VideoTypeEnum
.
values
())
{
if
(
c
.
getName
()
==
name
)
{
return
c
.
code
;
}
}
return
""
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
View file @
d9a598c7
...
@@ -47,6 +47,7 @@ import com.yeejoin.equipmanage.common.entity.vo.VideoDownloadVO;
...
@@ -47,6 +47,7 @@ import com.yeejoin.equipmanage.common.entity.vo.VideoDownloadVO;
import
com.yeejoin.equipmanage.common.entity.vo.VideoListVo
;
import
com.yeejoin.equipmanage.common.entity.vo.VideoListVo
;
import
com.yeejoin.equipmanage.common.enums.EquipmentSpeIndexEnum
;
import
com.yeejoin.equipmanage.common.enums.EquipmentSpeIndexEnum
;
import
com.yeejoin.equipmanage.common.enums.IndustryEnum
;
import
com.yeejoin.equipmanage.common.enums.IndustryEnum
;
import
com.yeejoin.equipmanage.common.enums.VideoTypeEnum
;
import
com.yeejoin.equipmanage.common.utils.HttpContentTypeUtil
;
import
com.yeejoin.equipmanage.common.utils.HttpContentTypeUtil
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.fegin.VideoFeignClient
;
import
com.yeejoin.equipmanage.fegin.VideoFeignClient
;
...
@@ -425,6 +426,9 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
...
@@ -425,6 +426,9 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
video
.
setCode
(
x
.
getCode
());
video
.
setCode
(
x
.
getCode
());
video
.
setRemark
(
x
.
getRemark
());
video
.
setRemark
(
x
.
getRemark
());
video
.
setAddress
(
x
.
getAddress
());
video
.
setAddress
(
x
.
getAddress
());
video
.
setImg
(
x
.
getImg
());
video
.
setType
(
x
.
getType
());
video
.
setTypeCode
(
ObjectUtils
.
isEmpty
(
VideoTypeEnum
.
getCode
(
x
.
getType
()))?
VideoTypeEnum
.
getCode
(
x
.
getType
()):
""
);
videos
.
add
(
video
);
videos
.
add
(
video
);
this
.
baseMapper
.
insert
(
video
);
this
.
baseMapper
.
insert
(
video
);
// 处理监控和建筑关系
// 处理监控和建筑关系
...
...
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