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
4377ee2f
Commit
4377ee2f
authored
Aug 03, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
dec30b5f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
+8
-7
MarketServiceImpl.java
...irl/application/market/coupon/impl/MarketServiceImpl.java
+2
-1
MallCategoryServiceImpl.java
...pplication/product/mall/impl/MallCategoryServiceImpl.java
+2
-3
CouponCustomerRelevanceMapper.java
...e/mapper/market/coupon/CouponCustomerRelevanceMapper.java
+1
-0
application.yml
src/main/resources/application.yml
+1
-1
Test.java
src/test/java/com/gogirl/Test.java
+2
-2
No files found.
src/main/java/com/gogirl/application/market/coupon/impl/MarketServiceImpl.java
View file @
4377ee2f
...
...
@@ -1180,6 +1180,7 @@ public class MarketServiceImpl implements MarketService {
if
(
couponCustomerRelevance
.
getType
()
==
5
)
{
discountAmount
=
orderServe
.
getPrice
().
multiply
(
BigDecimal
.
ONE
.
subtract
(
couponCustomerRelevance
.
getDiscountPercent
()));
}
BigDecimal
actualDiscountAmount
=
orderServe
.
getPayPrice
().
min
(
discountAmount
);
//新增外部券抵扣情况记录
...
...
@@ -1365,7 +1366,7 @@ public class MarketServiceImpl implements MarketService {
@Async
@Override
public
void
asyncAutoSetCoupon
(
Integer
couponCustomerRelevanceId
,
Integer
orderId
)
{
this
.
setUpInnerCoupon
(
orderId
,
Lists
.
newArrayList
(
couponCustomerRelevanceId
));
this
.
setUpInnerCoupon
(
orderId
,
Lists
.
newArrayList
(
couponCustomerRelevanceId
));
//结算订单
this
.
calcOrderAmount
(
orderId
);
}
...
...
src/main/java/com/gogirl/application/product/mall/impl/MallCategoryServiceImpl.java
View file @
4377ee2f
...
...
@@ -39,9 +39,8 @@ public class MallCategoryServiceImpl extends ServiceImpl<CategoryMapper, MallCat
for
(
MallCategory
mallCategory
:
list
)
{
if
(
mallCategory
.
getId
().
equals
(
subTreeId
))
{
List
<
MallCategory
>
clone
=
SerializationUtils
.
clone
((
new
ArrayList
<>(
mallCategory
.
getChildList
())));
if
(
ListUtil
.
isNotEmpty
(
clone
))
{
return
clone
;
if
(
ListUtil
.
isNotEmpty
(
mallCategory
.
getChildList
()))
{
return
SerializationUtils
.
clone
((
new
ArrayList
<>(
mallCategory
.
getChildList
())));
}
}
else
if
(
ListUtil
.
isNotEmpty
(
mallCategory
.
getChildList
()))
{
this
.
findSubTree
(
mallCategory
.
getChildList
(),
subTreeId
);
...
...
src/main/java/com/gogirl/infrastructure/mapper/market/coupon/CouponCustomerRelevanceMapper.java
View file @
4377ee2f
...
...
@@ -37,6 +37,7 @@ public interface CouponCustomerRelevanceMapper extends BaseMapper<CouponCustomer
*/
List
<
Integer
>
queryCouponCustomerServeRelevance
(
Integer
couponId
);
List
<
CouponCustomerRelevance
>
selectByOrderTimes
();
...
...
src/main/resources/application.yml
View file @
4377ee2f
spring
:
profiles
:
active
:
pr
e
active
:
pr
od
servlet
:
#文件上传最大容量
multipart
:
...
...
src/test/java/com/gogirl/Test.java
View file @
4377ee2f
...
...
@@ -681,11 +681,11 @@ public class Test {
marketService
.
calcOrderAmount
(
13431
);
}
@org
.
junit
.
Test
public
void
reCalcOrderAmount
()
{
marketService
.
orderAmountReCalc
(
14
878
);
marketService
.
orderAmountReCalc
(
14
933
);
}
@Resource
PurchaseSkuMapper
purchaseSkuMapper
;
...
...
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