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
aaa8fa21
Commit
aaa8fa21
authored
Aug 25, 2024
by
张森
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl' into develop_dl
parents
e101adf5
a30cbf07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
SupervisionVideoServiceImpl.java
...equipmanage/service/impl/SupervisionVideoServiceImpl.java
+21
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/SupervisionVideoServiceImpl.java
View file @
aaa8fa21
...
...
@@ -29,6 +29,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.utils.DateTimeUtil
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -40,6 +41,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import
java.util.stream.Collectors
;
import
static
org
.
typroject
.
tyboot
.
core
.
foundation
.
context
.
RequestContext
.*;
import
static
org
.
typroject
.
tyboot
.
core
.
foundation
.
utils
.
DateTimeUtil
.
ISO8601_DATE_HOUR_MIN_SEC
;
@Slf4j
...
...
@@ -49,7 +51,7 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
@Autowired
SupervisionVideoMapper
supervisionVideoMapper
;
@Autowired
private
IVideoService
videoService
;
@Autowired
...
...
@@ -344,7 +346,11 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"id"
,
UUID
.
randomUUID
().
toString
());
map
.
put
(
"name"
,
String
.
valueOf
(
item
.
get
(
"name"
)));
map
.
put
(
"time"
,
String
.
valueOf
(
x
.
get
(
"time"
)).
substring
(
0
,
19
).
replace
(
"T"
,
" "
));
try
{
map
.
put
(
"time"
,
change
(
String
.
valueOf
(
x
.
get
(
"time"
))));
}
catch
(
ParseException
e
)
{
throw
new
RuntimeException
(
e
);
}
map
.
put
(
"value"
,
String
.
valueOf
(
x
.
get
(
pressurePumpStart
)));
finalResList
.
add
(
map
);
});
...
...
@@ -386,4 +392,17 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
public
List
<
Map
<
String
,
Object
>>
selectAllPressureName
(
String
bizOrgCode
)
{
return
fireFightingSystemMapper
.
selectAllPressureName
(
bizOrgCode
);
}
private
String
change
(
String
time
)
throws
ParseException
{
Date
date1
=
null
;
try
{
String
strDate
=
time
.
substring
(
0
,
19
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
ISO8601_DATE_HOUR_MIN_SEC
);
sdf
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"UTC"
));
date1
=
sdf
.
parse
(
strDate
);
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
return
DateTimeUtil
.
format
(
date1
,
DateTimeUtil
.
ISO_DATE_HOUR24_MIN_SEC
);
}
}
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