Commit d853389f authored by 张永's avatar 张永

11

parent 33342d44
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment