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
029298c4
Commit
029298c4
authored
Jun 08, 2020
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
券码添加code字段
parent
0255120c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
assortment-ordercenter-sdk/pom.xml
+2
-2
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
+1
-1
order-application-service/pom.xml
+1
-1
order-application-service/src/main/java/cn/freemud/entities/dto/CouponCodeBaseDto.java
+1
-1
order-application-service/src/main/java/cn/freemud/service/impl/CouponActivityServiceImpl.java
+1
-1
No files found.
assortment-ordercenter-sdk/pom.xml
View file @
029298c4
...
...
@@ -10,7 +10,7 @@
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<version>
1.
5.2.RELEASE
</version>
<version>
1.
8.9-SNAPSHOT
</version>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -26,7 +26,7 @@
<dependency>
<artifactId>
couponcenter-sdk
</artifactId>
<groupId>
com.freemud.application.service.sdk
</groupId>
<version>
1.
8.14.RELEASE
</version>
<version>
1.
10.4-SNAPSHOT
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
...
...
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/service/order/OrderCenterSdkServiceImpl.java
View file @
029298c4
...
...
@@ -220,7 +220,7 @@ public class OrderCenterSdkServiceImpl implements OrderCenterSdkService {
CouponRequest
couponVerificationRequest
=
orderSdkAdapter
.
convert2CouponVerificationRequest
(
orderBean
,
accounts
);
if
(
couponVerificationRequest
!=
null
){
// 核销券新增参数:组织机构
couponVerificationRequest
.
setChannel_
id
s
(
this
.
getOrgIds
(
orderBean
.
getCompanyId
(),
orderBean
.
getShopId
()));
couponVerificationRequest
.
setChannel_
code
s
(
this
.
getOrgIds
(
orderBean
.
getCompanyId
(),
orderBean
.
getShopId
()));
BaseResponse
<
CouponRedeemResponse
>
couponRedeemResponseBaseResponse
=
offlineCouponSdkService
.
couponRedeem
(
couponVerificationRequest
,
""
);
if
(!
ObjectUtils
.
equals
(
RESPONSE_SUCCESS_STR
,
couponRedeemResponseBaseResponse
.
getCode
()))
{
//TODO 失败取消订单,异步冲正库存
...
...
order-application-service/pom.xml
View file @
029298c4
...
...
@@ -35,7 +35,7 @@
<dependency>
<artifactId>
couponcenter-sdk
</artifactId>
<groupId>
com.freemud.application.service.sdk
</groupId>
<version>
1.
8.14.RELEASE
</version>
<version>
1.
10.4-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
cn.freemud
</groupId>
...
...
order-application-service/src/main/java/cn/freemud/entities/dto/CouponCodeBaseDto.java
View file @
029298c4
...
...
@@ -20,12 +20,12 @@ public class CouponCodeBaseDto {
private
Integer
ver
;
// 71代表核销
private
Integer
reqtype
;
private
String
partnerId
;
private
String
store_id
;
private
String
station_id
;
private
String
operator_id
;
// 组织机构ID,(String 类型的集合)
private
String
[]
channel_ids
;
private
String
[]
channel_codes
;
}
order-application-service/src/main/java/cn/freemud/service/impl/CouponActivityServiceImpl.java
View file @
029298c4
...
...
@@ -98,7 +98,7 @@ public class CouponActivityServiceImpl implements CouponActivityService {
||
OrderAccountType
.
DISCOUNT_COUPON
.
getCode
().
equals
(
accountBean
.
getType
()))
{
CouponCodeVerificationDto
couponCodeVerificationDto
=
couponAdapter
.
convert2CouponCodeVerificationDto
(
activityChannelEnum
,
accountBean
.
getAccountId
(),
orderBean
.
getOid
(),
orderBean
.
getCompanyId
(),
orderBean
.
getShopId
(),
orderBean
.
getUserId
(),
products
,
accountBean
.
getPrice
().
intValue
());
// 核销券新增参数:组织机构ID
couponCodeVerificationDto
.
setChannel_
id
s
(
storeService
.
getOrgIdsArr
(
orderBean
.
getCompanyId
(),
orderBean
.
getShopId
()));
couponCodeVerificationDto
.
setChannel_
code
s
(
storeService
.
getOrgIdsArr
(
orderBean
.
getCompanyId
(),
orderBean
.
getShopId
()));
try
{
//71.券核销
CouponCodeResponseDto
couponCodeResponseDto
=
couponOfflineClient
.
verification
(
couponCodeVerificationDto
);
...
...
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