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
d9c57158
Commit
d9c57158
authored
Mar 04, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改视频导入功能
parent
48968f59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
VideoDownloadVO.java
...yeejoin/equipmanage/common/entity/vo/VideoDownloadVO.java
+4
-4
VideoServiceImpl.java
...om/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
+2
-2
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 @
d9c57158
...
...
@@ -13,10 +13,10 @@ import java.io.Serializable;
*/
@Data
public
class
VideoDownloadVO
implements
Serializable
{
@ExcelProperty
(
value
=
"名称"
,
index
=
0
)
@ExcelProperty
(
value
=
"名称
(必填)
"
,
index
=
0
)
private
String
name
;
@ExcelProperty
(
value
=
"编号"
,
index
=
1
)
@ExcelProperty
(
value
=
"编号
(必填)
"
,
index
=
1
)
private
String
code
;
@ExcelProperty
(
value
=
"视频地址"
,
index
=
2
)
...
...
@@ -31,7 +31,7 @@ public class VideoDownloadVO implements Serializable {
@ExcelProperty
(
value
=
"关联消防设备编码(多个分号分隔)"
,
index
=
5
)
private
String
equipmentSpecificCodes
;
@ExcelProperty
(
value
=
"详细地址"
,
index
=
6
)
@ExcelProperty
(
value
=
"详细地址
(必填)
"
,
index
=
6
)
private
String
address
;
@ExcelProperty
(
value
=
"备注"
,
index
=
7
)
...
...
@@ -40,7 +40,7 @@ public class VideoDownloadVO implements Serializable {
@ExcelProperty
(
value
=
"关联电力设备编码(多个分号分隔)"
,
index
=
8
)
private
String
importantEquipmentCodes
;
@ExcelProperty
(
value
=
"视频类型(枪机/球机)"
,
index
=
9
)
@ExcelProperty
(
value
=
"视频类型(枪机/球机)
(必填)
"
,
index
=
9
)
private
String
type
;
@ExcelProperty
(
value
=
"图片地址"
,
index
=
10
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
View file @
d9c57158
...
...
@@ -404,7 +404,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
VideoDownloadVO
x
=
videoDownloadVOS
.
get
(
i
);
// 数据校验
if
(
ValidationUtil
.
isEmpty
(
x
.
getName
())
||
ValidationUtil
.
isEmpty
(
x
.
getCode
())
||
ValidationUtil
.
isEmpty
(
x
.
getUrl
())
||
ValidationUtil
.
isEmpty
(
x
.
getToken
())
//
|| ValidationUtil.isEmpty(x.getUrl()) || ValidationUtil.isEmpty(x.getToken())
||
ValidationUtil
.
isEmpty
(
x
.
getAddress
()))
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":请检查非空字段"
);
}
...
...
@@ -428,7 +428,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
video
.
setAddress
(
x
.
getAddress
());
video
.
setImg
(
x
.
getImg
());
video
.
setType
(
x
.
getType
());
video
.
setTypeCode
(
ObjectUtils
.
isEmpty
(
VideoTypeEnum
.
getCode
(
x
.
getType
()))?
VideoTypeEnum
.
getCode
(
x
.
getType
()):
""
);
video
.
setTypeCode
(
!
ObjectUtils
.
isEmpty
(
VideoTypeEnum
.
getCode
(
x
.
getType
()))?
VideoTypeEnum
.
getCode
(
x
.
getType
()):
""
);
videos
.
add
(
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