Commit d853389f authored by 张永's avatar 张永

11

parent 33342d44
...@@ -23,7 +23,7 @@ public class CrmServiceImpl implements CrmService{ ...@@ -23,7 +23,7 @@ public class CrmServiceImpl implements CrmService{
private CrmClient crmClient; private CrmClient crmClient;
/** /**
* 优惠券核销2 * 优惠券核销
* @param StoreNO * @param StoreNO
* @param CouponNO * @param CouponNO
* @param PayAmount * @param PayAmount
...@@ -45,7 +45,7 @@ public class CrmServiceImpl implements CrmService{ ...@@ -45,7 +45,7 @@ public class CrmServiceImpl implements CrmService{
parameters.put("cashier", cashier); parameters.put("cashier", cashier);
parameters.put("hostname", hostname); parameters.put("hostname", hostname);
parameters.put("ipaddress", ipaddress); 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); JSONObject jsonObject = JSON.parseObject(json);
int code = jsonObject.getIntValue("code"); int code = jsonObject.getIntValue("code");
if(code != 200) { if(code != 200) {
...@@ -144,7 +144,7 @@ public class CrmServiceImpl implements CrmService{ ...@@ -144,7 +144,7 @@ public class CrmServiceImpl implements CrmService{
parameters.put("cashier", cashier); parameters.put("cashier", cashier);
parameters.put("hostname", hostname); parameters.put("hostname", hostname);
parameters.put("ipaddress", ipaddress); 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); JSONObject jsonObject = JSON.parseObject(json);
int code = jsonObject.getIntValue("code"); int code = jsonObject.getIntValue("code");
if(code != 200) { if(code != 200) {
...@@ -170,7 +170,7 @@ public class CrmServiceImpl implements CrmService{ ...@@ -170,7 +170,7 @@ public class CrmServiceImpl implements CrmService{
Map<String, Object> parameters = new HashMap<String, Object>(); Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("storeno", StoreNO); parameters.put("storeno", StoreNO);
parameters.put("cardno", CardNO); 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); JSONObject jsonObject = JSON.parseObject(json);
int code = jsonObject.getIntValue("code"); int code = jsonObject.getIntValue("code");
if(code != 200) { if(code != 200) {
...@@ -197,7 +197,7 @@ public class CrmServiceImpl implements CrmService{ ...@@ -197,7 +197,7 @@ public class CrmServiceImpl implements CrmService{
parameters.put("cashier", cashier); parameters.put("cashier", cashier);
parameters.put("hostname", hostname); parameters.put("hostname", hostname);
parameters.put("ipaddress", ipaddress); 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); JSONObject jsonObject = JSON.parseObject(json);
int code = jsonObject.getIntValue("code"); int code = jsonObject.getIntValue("code");
if(code != 200) { if(code != 200) {
...@@ -233,7 +233,7 @@ public class CrmServiceImpl implements CrmService{ ...@@ -233,7 +233,7 @@ public class CrmServiceImpl implements CrmService{
parameters.put("cashier", cashier); parameters.put("cashier", cashier);
parameters.put("hostname", hostname); parameters.put("hostname", hostname);
parameters.put("ipaddress", ipaddress); 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); JSONObject jsonObject = JSON.parseObject(json);
int code = jsonObject.getIntValue("code"); int code = jsonObject.getIntValue("code");
if(code != 200) { 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