Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
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
huluobin
gogirl-miniapp-backend
Commits
aaf40d1b
Commit
aaf40d1b
authored
May 10, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2c69af6a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
DiscountConfigServiceImpl.java
...ation/market/discount/impl/DiscountConfigServiceImpl.java
+1
-0
LeisureDiscountConfigServiceImpl.java
...arket/discount/impl/LeisureDiscountConfigServiceImpl.java
+2
-1
No files found.
src/main/java/com/gogirl/application/market/discount/impl/DiscountConfigServiceImpl.java
View file @
aaf40d1b
...
@@ -36,6 +36,7 @@ public class DiscountConfigServiceImpl extends ServiceImpl<DiscountConfigMapper,
...
@@ -36,6 +36,7 @@ public class DiscountConfigServiceImpl extends ServiceImpl<DiscountConfigMapper,
.
le
(
DiscountConfig:
:
getChargeAmount
,
amount
)
.
le
(
DiscountConfig:
:
getChargeAmount
,
amount
)
.
eq
(
DiscountConfig:
:
getBrandId
,
brandId
)
.
eq
(
DiscountConfig:
:
getBrandId
,
brandId
)
.
orderByDesc
(
DiscountConfig:
:
getChargeAmount
)
.
orderByDesc
(
DiscountConfig:
:
getChargeAmount
)
.
last
(
"limit 1"
)
);
);
}
}
}
}
src/main/java/com/gogirl/application/market/discount/impl/LeisureDiscountConfigServiceImpl.java
View file @
aaf40d1b
...
@@ -21,6 +21,7 @@ public class LeisureDiscountConfigServiceImpl extends ServiceImpl<LeisureDiscoun
...
@@ -21,6 +21,7 @@ public class LeisureDiscountConfigServiceImpl extends ServiceImpl<LeisureDiscoun
new
LambdaQueryWrapper
<
LeisureDiscountConfig
>()
new
LambdaQueryWrapper
<
LeisureDiscountConfig
>()
.
eq
(
LeisureDiscountConfig:
:
getIsEnabled
,
1
)
.
eq
(
LeisureDiscountConfig:
:
getIsEnabled
,
1
)
.
eq
(
LeisureDiscountConfig:
:
getBrandId
,
brandId
)
.
eq
(
LeisureDiscountConfig:
:
getBrandId
,
brandId
)
.
orderByAsc
(
LeisureDiscountConfig:
:
getDiscountRate
));
.
orderByAsc
(
LeisureDiscountConfig:
:
getDiscountRate
)
.
last
(
"limit 1"
));
}
}
}
}
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