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
da9c14fc
authored
Dec 27, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
19934102
a7825ad5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderBreatheAnalysisServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderBreatheAnalysisServiceImpl.java
View file @
da9c14fc
...
...
@@ -46,7 +46,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.time.*
;
import
java.time.format.DateTimeFormatter
;
import
java.util.ArrayList
;
...
...
@@ -309,28 +308,28 @@ public class PlatElderBreatheAnalysisServiceImpl extends ServiceImpl<PlatElderBr
// 呼吸暂停
int
apneaTime
=
Integer
.
parseInt
(
saasDiseaseModel
.
getApneaTime
());
int
apneaThreshold
=
Integer
.
parseInt
(
saasDiseaseModel
.
getApneaThreshold
());
BigDecimal
apneaRate
=
new
BigDecimal
(
apneaThreshold
)
.
divide
(
new
BigDecimal
(
apneaTime
),
2
,
RoundingMode
.
HALF_UP
)
;
BigDecimal
apneaRate
=
new
BigDecimal
(
apneaThreshold
);
// 呼吸过速
int
tachypneaTime
=
Integer
.
parseInt
(
saasDiseaseModel
.
getTachypneaTime
());
int
tachypneaThreshold
=
Integer
.
parseInt
(
saasDiseaseModel
.
getTachypneaThreshold
());
BigDecimal
tachypneaRate
=
new
BigDecimal
(
tachypneaThreshold
)
.
divide
(
new
BigDecimal
(
tachypneaTime
),
2
,
RoundingMode
.
HALF_UP
)
;
BigDecimal
tachypneaRate
=
new
BigDecimal
(
tachypneaThreshold
);
// 呼吸过缓
int
bradypneaTime
=
Integer
.
parseInt
(
saasDiseaseModel
.
getBradypneaTime
());
int
bradypneaThreshold
=
Integer
.
parseInt
(
saasDiseaseModel
.
getBradypneaThreshold
());
BigDecimal
bradypneaRate
=
new
BigDecimal
(
bradypneaThreshold
)
.
divide
(
new
BigDecimal
(
bradypneaTime
),
2
,
RoundingMode
.
HALF_UP
)
;
BigDecimal
bradypneaRate
=
new
BigDecimal
(
bradypneaThreshold
);
// 心率过缓
int
bradycardiaTime
=
Integer
.
parseInt
(
saasDiseaseModel
.
getBradycardiaTime
());
int
bradycardiaThreshold
=
Integer
.
parseInt
(
saasDiseaseModel
.
getBradycardiaThreshold
());
BigDecimal
bradycardiaRate
=
new
BigDecimal
(
bradycardiaThreshold
)
.
divide
(
new
BigDecimal
(
bradycardiaTime
),
2
,
RoundingMode
.
HALF_UP
)
;
BigDecimal
bradycardiaRate
=
new
BigDecimal
(
bradycardiaThreshold
);
// 心率过速
int
tachycardiaTime
=
Integer
.
parseInt
(
saasDiseaseModel
.
getTachycardiaTime
());
int
tachycardiaComparison
=
Integer
.
parseInt
(
saasDiseaseModel
.
getTachycardiaThreshold
());
BigDecimal
tachycardiaRate
=
new
BigDecimal
(
tachycardiaComparison
)
.
divide
(
new
BigDecimal
(
tachycardiaTime
),
2
,
RoundingMode
.
HALF_UP
)
;
BigDecimal
tachycardiaRate
=
new
BigDecimal
(
tachycardiaComparison
);
// 呼吸疾病报告
int
brStopCount
=
0
;
...
...
@@ -366,11 +365,11 @@ public class PlatElderBreatheAnalysisServiceImpl extends ServiceImpl<PlatElderBr
}
// 判断是否满足配置的呼吸心率异常类型
BigDecimal
dayBrStopRate
=
brStopCount
==
0
?
BigDecimal
.
ZERO
:
new
BigDecimal
(
brStopCount
).
divide
(
new
BigDecimal
(
timeHourRange
),
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
dayBrSlowRate
=
brSlowCount
==
0
?
BigDecimal
.
ZERO
:
new
BigDecimal
(
brSlowCount
).
divide
(
new
BigDecimal
(
timeHourRange
),
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
dayBrFastRate
=
brFastCount
==
0
?
BigDecimal
.
ZERO
:
new
BigDecimal
(
brFastCount
).
divide
(
new
BigDecimal
(
timeHourRange
),
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
dayHrFastRate
=
hrFastCount
==
0
?
BigDecimal
.
ZERO
:
new
BigDecimal
(
hrFastCount
).
divide
(
new
BigDecimal
(
timeHourRange
),
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
dayHrSlowRate
=
hrSlowCount
==
0
?
BigDecimal
.
ZERO
:
new
BigDecimal
(
hrSlowCount
).
divide
(
new
BigDecimal
(
timeHourRange
),
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
dayBrStopRate
=
new
BigDecimal
(
brStopCount
);
BigDecimal
dayBrSlowRate
=
new
BigDecimal
(
brSlowCount
);
BigDecimal
dayBrFastRate
=
new
BigDecimal
(
brFastCount
);
BigDecimal
dayHrFastRate
=
new
BigDecimal
(
hrFastCount
);
BigDecimal
dayHrSlowRate
=
new
BigDecimal
(
hrSlowCount
);
boolean
brStopFlag
=
false
;
boolean
brFastFlag
=
false
;
...
...
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