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
ac7ea879
Commit
ac7ea879
authored
Mar 03, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改视频添加导入设备可为空
parent
77452fd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
VideoController.java
...a/com/yeejoin/equipmanage/controller/VideoController.java
+6
-1
VideoServiceImpl.java
...om/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/VideoController.java
View file @
ac7ea879
...
@@ -26,6 +26,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
...
@@ -26,6 +26,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.equipmanage.common.entity.Video
;
import
com.yeejoin.equipmanage.common.entity.Video
;
import
com.yeejoin.equipmanage.common.entity.dto.VideoDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.VideoDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.VideoSaveDto
;
import
com.yeejoin.equipmanage.common.entity.dto.VideoSaveDto
;
...
@@ -68,7 +69,7 @@ public class VideoController extends AbstractBaseController {
...
@@ -68,7 +69,7 @@ public class VideoController extends AbstractBaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
Video
saveVideo
(
@RequestBody
VideoSaveDto
video
)
{
public
Video
saveVideo
(
@RequestBody
VideoSaveDto
video
)
{
Video
video1
=
video
.
getVideo
();
Video
video1
=
video
.
getVideo
();
ReginParams
usrinfo
=
getSelectedOrgInfo
();
if
(
StringUtils
.
isNotEmpty
(
video1
.
getAddress
()))
{
if
(
StringUtils
.
isNotEmpty
(
video1
.
getAddress
()))
{
String
[]
addressData
=
video1
.
getAddress
().
split
(
"@address@"
);
String
[]
addressData
=
video1
.
getAddress
().
split
(
"@address@"
);
if
(
addressData
.
length
>
1
)
{
if
(
addressData
.
length
>
1
)
{
...
@@ -80,6 +81,10 @@ public class VideoController extends AbstractBaseController {
...
@@ -80,6 +81,10 @@ public class VideoController extends AbstractBaseController {
if
(
StringUtils
.
isNotEmpty
(
langLatObj
.
getString
(
"latitude"
)))
{
if
(
StringUtils
.
isNotEmpty
(
langLatObj
.
getString
(
"latitude"
)))
{
video1
.
setLatitude
(
Double
.
valueOf
(
langLatObj
.
getString
(
"latitude"
)));
video1
.
setLatitude
(
Double
.
valueOf
(
langLatObj
.
getString
(
"latitude"
)));
}
}
video1
.
setOrgCode
(
usrinfo
.
getCompany
().
getOrgCode
());
video1
.
setCreatorId
(
usrinfo
.
getUserModel
().
getSequenceNbr
());
video1
.
setCreatorName
(
usrinfo
.
getUserModel
().
getRealName
());
video1
.
setCompanyName
(
usrinfo
.
getCompany
().
getCompanyName
());
video
.
setVideo
(
video1
);
video
.
setVideo
(
video1
);
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
View file @
ac7ea879
...
@@ -404,7 +404,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
...
@@ -404,7 +404,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
// 数据校验
// 数据校验
if
(
ValidationUtil
.
isEmpty
(
x
.
getName
())
||
ValidationUtil
.
isEmpty
(
x
.
getCode
())
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
())
||
ValidationUtil
.
isEmpty
(
x
.
getEquipmentSpecificCodes
())
)
{
||
ValidationUtil
.
isEmpty
(
x
.
getAddress
()))
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":请检查非空字段"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":请检查非空字段"
);
}
}
if
(
videoCodeSet
.
contains
(
x
.
getCode
().
trim
()))
{
if
(
videoCodeSet
.
contains
(
x
.
getCode
().
trim
()))
{
...
...
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