Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7705fbfc
authored
Sep 19, 2023
by
杨伟程
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
老人报表更新
parent
eab5ffec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
server-common/src/main/java/com/makeit/module/system/service/impl/SysConfigServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderDayReportWeekServiceImpl.java
server-common/src/main/java/com/makeit/module/system/service/impl/SysConfigServiceImpl.java
View file @
7705fbfc
...
...
@@ -203,7 +203,7 @@ public class SysConfigServiceImpl extends ServiceImpl<SysConfigMapper, SysConfig
throw
new
BusinessException
(
CodeMessageEnum
.
SYSTEM_ERROR_NAME_DUPLICATE
);
}
if
(
old
.
getCode
().
equals
(
sysConfig
.
getCode
())
&&
!
old
.
getId
().
equals
(
sysConfig
.
getId
()))
{
if
(
StringUtils
.
isNotBlank
(
old
.
getCode
())
&&
old
.
getCode
().
equals
(
sysConfig
.
getCode
())
&&
!
old
.
getId
().
equals
(
sysConfig
.
getId
()))
{
throw
new
BusinessException
(
CodeMessageEnum
.
SYSTEM_ERROR_DICT_VALUE_DUPLICATE
);
}
...
...
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderDayReportWeekServiceImpl.java
View file @
7705fbfc
...
...
@@ -236,13 +236,21 @@ public class PlatElderDayReportWeekServiceImpl implements PlatElderDayReportWeek
List
<
PlatElderSleepDiagramWeekContentVO
>
sleep
=
StreamUtil
.
map
(
dateList
,
e
->
{
PlatElderSleepDiagramWeekContentVO
vo
=
new
PlatElderSleepDiagramWeekContentVO
();
vo
.
setDay
(
e
);
// List<PlatElderSleep> list =
//
// vo.setSleepDeepDuration();
// vo.setSleepModerateDuration();
// vo.setSleepLightnessDuration();
// vo.setSoberDuration();
// vo.setTurnedCount();
// vo.setBodyMoveCount();
// vo.setScore();
PlatElderSleepAnalysis
platElderSleepAnalysis
=
sleepAnalysisMap
.
get
(
dateTimeFormatter
.
format
(
e
));
if
(
platElderSleepAnalysis
!=
null
)
{
vo
.
setTurnedCount
(
platElderSleepAnalysis
.
getTurnedCount
());
vo
.
setBodyMoveCount
(
platElderSleepAnalysis
.
getActionCount
());
vo
.
setScore
(
Integer
.
valueOf
(
platElderSleepAnalysis
.
getSleepScore
()
+
""
));
}
return
vo
;
...
...
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