Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
f10d0997
Commit
f10d0997
authored
Jun 14, 2022
by
缪晖
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '紧急优化codev4接口-20220614' into 'master'
购物车优化 codev4调用传递商品id See merge request
!143
parents
9ed1ba15
a35c7e29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
shopping-cart-application-service/src/main/java/cn/freemud/demo/manager/coupon/Finals.java
+1
-0
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/GetMemberCouponRequestVo.java
+5
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
+4
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/demo/manager/coupon/Finals.java
View file @
f10d0997
...
@@ -29,6 +29,7 @@ public class Finals {
...
@@ -29,6 +29,7 @@ public class Finals {
public
static
final
String
CHANNEL_ID_LIST
=
"channelIds"
;
public
static
final
String
CHANNEL_ID_LIST
=
"channelIds"
;
public
static
final
String
CHANNEL_CODE_LIST
=
"channelCodes"
;
public
static
final
String
CHANNEL_CODE_LIST
=
"channelCodes"
;
public
static
final
String
IS_QUERY_STORE
=
"isQueryStore"
;
public
static
final
String
IS_QUERY_STORE
=
"isQueryStore"
;
public
static
final
String
SHOPPINGCARD_PRODUCTS
=
"shoppingCardProducts"
;
public
static
final
Integer
PRODUCT_COUPON
=
0
;
public
static
final
Integer
PRODUCT_COUPON
=
0
;
public
static
final
Integer
CASH_COUPON
=
1
;
public
static
final
Integer
CASH_COUPON
=
1
;
public
static
final
Integer
ELSE_COUPON
=
2
;
public
static
final
Integer
ELSE_COUPON
=
2
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/GetMemberCouponRequestVo.java
View file @
f10d0997
...
@@ -21,4 +21,9 @@ public class GetMemberCouponRequestVo {
...
@@ -21,4 +21,9 @@ public class GetMemberCouponRequestVo {
//是否 校验券门店是否可用
//是否 校验券门店是否可用
private
Boolean
checkStoreId
=
false
;
private
Boolean
checkStoreId
=
false
;
/**
* 购物车中的开个店商品id列表,多个用逗号分隔
*/
private
String
shoppingCardProducts
;
}
}
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CouponServiceImpl.java
View file @
f10d0997
...
@@ -150,6 +150,9 @@ public class CouponServiceImpl implements CouponService {
...
@@ -150,6 +150,9 @@ public class CouponServiceImpl implements CouponService {
// 由于门店服务老是慢,这个参数可以控制不查门店服务, 返回的数据也不需要门店数据
// 由于门店服务老是慢,这个参数可以控制不查门店服务, 返回的数据也不需要门店数据
map
.
put
(
Finals
.
IS_QUERY_STORE
,
false
);
map
.
put
(
Finals
.
IS_QUERY_STORE
,
false
);
map
.
put
(
Finals
.
SIGN
,
"adapterV4Skip"
+
requestVo
.
getPartnerId
());
map
.
put
(
Finals
.
SIGN
,
"adapterV4Skip"
+
requestVo
.
getPartnerId
());
if
(
StringUtils
.
isNotEmpty
(
requestVo
.
getShoppingCardProducts
()))
{
map
.
put
(
Finals
.
SHOPPINGCARD_PRODUCTS
,
requestVo
.
getShoppingCardProducts
());
}
GetCouponDetailResponseDto
responseDto
=
couponOnlineClient
.
getCouponDetails
(
map
);
GetCouponDetailResponseDto
responseDto
=
couponOnlineClient
.
getCouponDetails
(
map
);
if
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_1
.
equals
(
responseDto
.
getResult
()))
{
if
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_1
.
equals
(
responseDto
.
getResult
()))
{
return
responseDto
;
return
responseDto
;
...
@@ -740,6 +743,7 @@ public class CouponServiceImpl implements CouponService {
...
@@ -740,6 +743,7 @@ public class CouponServiceImpl implements CouponService {
requestVo
.
setCouponCode
(
couponCode
);
requestVo
.
setCouponCode
(
couponCode
);
requestVo
.
setStoreId
(
requestDto
.
getStoreId
());
requestVo
.
setStoreId
(
requestDto
.
getStoreId
());
requestVo
.
setCheckStoreId
(
true
);
requestVo
.
setCheckStoreId
(
true
);
requestVo
.
setShoppingCardProducts
(
goodsId
);
GetCouponDetailResponseDto
couponDetailResponseDto
=
this
.
getMemberCoupon
(
requestVo
);
GetCouponDetailResponseDto
couponDetailResponseDto
=
this
.
getMemberCoupon
(
requestVo
);
if
(
couponDetailResponseDto
==
null
||
!
couponDetailResponseDto
.
getResult
().
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_1
)
||
CollectionUtils
.
isEmpty
(
couponDetailResponseDto
.
getDetails
()))
{
if
(
couponDetailResponseDto
==
null
||
!
couponDetailResponseDto
.
getResult
().
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_1
)
||
CollectionUtils
.
isEmpty
(
couponDetailResponseDto
.
getDetails
()))
{
return
null
;
return
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