Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
antai-sport-http-server
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
antai-sport
antai-sport-http-server
Commits
3929dbc1
Commit
3929dbc1
authored
Aug 11, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关于卡路里计算bug
parent
03b008c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
SportUserTrainingLogService.java
...ness/traininglog/service/SportUserTrainingLogService.java
+3
-0
No files found.
server-api/src/main/java/com/antai/sport/http/server/server/api/business/traininglog/service/SportUserTrainingLogService.java
View file @
3929dbc1
...
...
@@ -147,6 +147,9 @@ public class SportUserTrainingLogService {
}
Integer
coefficient
=
baseRule
.
get
(
0
).
getCoefficient
();
Integer
currency
=
calorie
/
coefficient
;
if
(
currency
==
0
)
{
return
;
}
SportUserGameCurrencyMatchRule
matchRule
=
sportUserGameCurrencyMatchRuleMapper
.
selectOne
(
new
QueryWrapper
<
SportUserGameCurrencyMatchRule
>().
lambda
().
eq
(
SportUserGameCurrencyMatchRule:
:
getGameMode
,
gameMode
).
le
(
SportUserGameCurrencyMatchRule:
:
getRankStart
,
rank
).
ge
(
SportUserGameCurrencyMatchRule:
:
getRankEnd
,
rank
));
if
(
matchRule
!=
null
&&
matchRule
.
getRate
()
!=
null
)
{
...
...
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