Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
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
曲欣亮
shop
Commits
1e83c14c
Commit
1e83c14c
authored
Sep 25, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
4ed735e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
CrmService.java
src/main/java/com/egolm/shop/api/service/CrmService.java
+1
-1
CrmServiceImpl.java
.../java/com/egolm/shop/api/service/impl/CrmServiceImpl.java
+4
-3
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+3
-1
No files found.
src/main/java/com/egolm/shop/api/service/CrmService.java
View file @
1e83c14c
...
...
@@ -7,7 +7,7 @@ import com.alibaba.fastjson.JSONObject;
public
interface
CrmService
{
public
void
vUpdateAcceptCoupon
(
String
StoreNO
,
String
CouponNO
,
BigDecimal
PayAmount
,
BigDecimal
TotalRealSaleAmount
,
String
OutTradeNO
,
String
cashier
,
String
hostname
,
String
ipaddress
);
public
void
couponVerification
(
String
StoreNO
,
String
CouponNO
,
String
SalesOrderID
,
BigDecimal
AcceptAmount
,
BigDecimal
TotalRealSaleAmount
,
String
OutTradeNO
,
String
GoodsList
,
String
cashier
,
String
isOnline
,
String
payTypeID
);
public
void
couponVerification
(
String
StoreNO
,
String
CouponNO
,
String
SalesOrderID
,
BigDecimal
AcceptAmount
,
BigDecimal
TotalRealSaleAmount
,
String
OutTradeNO
,
String
GoodsList
,
String
cashier
,
String
isOnline
,
String
payTypeID
,
String
agentID
);
public
void
vUpdateMemPoint
(
int
TradeType
,
String
StoreNO
,
String
CardNO
,
BigDecimal
PayPoint
,
String
OutTradeNO
,
String
cashier
,
String
hostname
,
String
ipaddress
);
...
...
src/main/java/com/egolm/shop/api/service/impl/CrmServiceImpl.java
View file @
1e83c14c
...
...
@@ -78,7 +78,7 @@ public class CrmServiceImpl implements CrmService{
* @param hostname
* @param ipaddress
*/
public
void
couponVerification
(
String
StoreNO
,
String
CouponNO
,
String
SalesOrderID
,
BigDecimal
AcceptAmount
,
BigDecimal
TotalRealSaleAmount
,
String
OutTradeNO
,
String
GoodsList
,
String
cashier
,
String
isOnline
,
String
payTypeID
)
{
public
void
couponVerification
(
String
StoreNO
,
String
CouponNO
,
String
SalesOrderID
,
BigDecimal
AcceptAmount
,
BigDecimal
TotalRealSaleAmount
,
String
OutTradeNO
,
String
GoodsList
,
String
cashier
,
String
isOnline
,
String
payTypeID
,
String
agentID
)
{
Map
<
String
,
Object
>
parameters
=
new
HashMap
<
String
,
Object
>();
parameters
.
put
(
"storeNO"
,
StoreNO
);
parameters
.
put
(
"couponNO"
,
CouponNO
);
...
...
@@ -90,7 +90,8 @@ public class CrmServiceImpl implements CrmService{
parameters
.
put
(
"goodsList"
,
GoodsList
);
parameters
.
put
(
"isOnline"
,
isOnline
);
parameters
.
put
(
"payTypeID"
,
payTypeID
);
String
json
=
crmClient
.
post
(
"/api/member/couponVerification"
,
parameters
);
parameters
.
put
(
"agentID"
,
agentID
);
String
json
=
crmClient
.
post
(
"/api/member/b2b/couponVerification"
,
parameters
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
json
);
...
...
@@ -261,7 +262,7 @@ public class CrmServiceImpl implements CrmService{
parameters
.
put
(
"cashier"
,
cashier
);
parameters
.
put
(
"hostname"
,
hostname
);
parameters
.
put
(
"ipaddress"
,
ipaddress
);
String
json
=
crmClient
.
post
(
"/api/member/vCancelAcceptCoupon"
,
parameters
);
String
json
=
crmClient
.
post
(
"/api/member/
b2b/
vCancelAcceptCoupon"
,
parameters
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
json
);
int
code
=
jsonObject
.
getIntValue
(
"code"
);
if
(
code
!=
200
)
{
...
...
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
1e83c14c
...
...
@@ -1766,8 +1766,10 @@ public class OrderServiceImpl implements OrderService {
OutParameter
pStatus
=
new
OutParameter
(
Types
.
INTEGER
);
OutParameter
pErrorMsg
=
new
OutParameter
(
Types
.
VARCHAR
);
String
agentId
=
payObj
.
get
(
"AgentID"
)+
""
;
if
(
PayTypeID
!=
null
&&
Tag
!=
null
&&
(
PayTypeID
.
equals
(
"81"
)
||
PayTypeID
.
equals
(
"882"
)
)
&&
Tag
.
intValue
()
==
0
)
{
//优会券和提货券
crmService
.
couponVerification
(
shopNO
,
PayCardNO
,
salesOrderID
,
PayAmount
,
TotalRealSaleAmount
,
OutTradeNO
,
goodsList
,
cashier
,
"1"
,
PayTypeID
);
crmService
.
couponVerification
(
shopNO
,
PayCardNO
,
salesOrderID
,
PayAmount
,
TotalRealSaleAmount
,
OutTradeNO
,
goodsList
,
cashier
,
"1"
,
PayTypeID
,
agentId
);
jdbcTemplate
.
exec
(
"exec up_B2BSalesOrderPayConfirm ?, ?, ?, ?, ?, ?, ?, ?, ?, ?"
,
new
Object
[]
{
salesOrderID
,
PayTypeID
,
PayAmount
,
PayCardNO
,
PayDateTime
,
OutTradeNO
,
pOrderStatus
,
pOrderStatusName
,
pStatus
,
pErrorMsg
});
Integer
rStatus
=
(
Integer
)
pStatus
.
getValue
();
String
rErrorMsg
=
(
String
)
pErrorMsg
.
getValue
();
...
...
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