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
d853389f
Commit
d853389f
authored
Sep 26, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
33342d44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
CrmServiceImpl.java
.../java/com/egolm/shop/api/service/impl/CrmServiceImpl.java
+6
-6
No files found.
src/main/java/com/egolm/shop/api/service/impl/CrmServiceImpl.java
View file @
d853389f
...
...
@@ -23,7 +23,7 @@ public class CrmServiceImpl implements CrmService{
private
CrmClient
crmClient
;
/**
* 优惠券核销
2
* 优惠券核销
* @param StoreNO
* @param CouponNO
* @param PayAmount
...
...
@@ -45,7 +45,7 @@ public class CrmServiceImpl implements CrmService{
parameters
.
put
(
"cashier"
,
cashier
);
parameters
.
put
(
"hostname"
,
hostname
);
parameters
.
put
(
"ipaddress"
,
ipaddress
);
String
json
=
crmClient
.
post
(
"/api/member/vUpdateAcceptCoupon"
,
parameters
);
String
json
=
crmClient
.
post
(
"/api/member/
b2b/
vUpdateAcceptCoupon"
,
parameters
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
json
);
int
code
=
jsonObject
.
getIntValue
(
"code"
);
if
(
code
!=
200
)
{
...
...
@@ -144,7 +144,7 @@ public class CrmServiceImpl implements CrmService{
parameters
.
put
(
"cashier"
,
cashier
);
parameters
.
put
(
"hostname"
,
hostname
);
parameters
.
put
(
"ipaddress"
,
ipaddress
);
String
json
=
crmClient
.
post
(
"/api/member/vUpdateMemPoint"
,
parameters
);
String
json
=
crmClient
.
post
(
"/api/member/
b2b/
vUpdateMemPoint"
,
parameters
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
json
);
int
code
=
jsonObject
.
getIntValue
(
"code"
);
if
(
code
!=
200
)
{
...
...
@@ -170,7 +170,7 @@ public class CrmServiceImpl implements CrmService{
Map
<
String
,
Object
>
parameters
=
new
HashMap
<
String
,
Object
>();
parameters
.
put
(
"storeno"
,
StoreNO
);
parameters
.
put
(
"cardno"
,
CardNO
);
String
json
=
crmClient
.
post
(
"/api/member/getVCardInfo"
,
parameters
);
String
json
=
crmClient
.
post
(
"/api/member/
b2b/
getVCardInfo"
,
parameters
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
json
);
int
code
=
jsonObject
.
getIntValue
(
"code"
);
if
(
code
!=
200
)
{
...
...
@@ -197,7 +197,7 @@ public class CrmServiceImpl implements CrmService{
parameters
.
put
(
"cashier"
,
cashier
);
parameters
.
put
(
"hostname"
,
hostname
);
parameters
.
put
(
"ipaddress"
,
ipaddress
);
String
json
=
crmClient
.
post
(
"/api/member/vCardPay"
,
parameters
);
String
json
=
crmClient
.
post
(
"/api/member/
b2b/
vCardPay"
,
parameters
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
json
);
int
code
=
jsonObject
.
getIntValue
(
"code"
);
if
(
code
!=
200
)
{
...
...
@@ -233,7 +233,7 @@ public class CrmServiceImpl implements CrmService{
parameters
.
put
(
"cashier"
,
cashier
);
parameters
.
put
(
"hostname"
,
hostname
);
parameters
.
put
(
"ipaddress"
,
ipaddress
);
String
json
=
crmClient
.
post
(
"/api/member/vCardRefund"
,
parameters
);
String
json
=
crmClient
.
post
(
"/api/member/
b2b/
vCardRefund"
,
parameters
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
json
);
int
code
=
jsonObject
.
getIntValue
(
"code"
);
if
(
code
!=
200
)
{
...
...
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