|
@@ -388,6 +388,7 @@ public class KwaixiaodianOrderCursorListServiceImpl implements IKwaixiaodianOrde
|
|
|
|
|
|
@Override
|
|
|
public void afterSales(JSONObject eventJSon) {
|
|
|
+ log.info("测试----报文:{}", eventJSon);
|
|
|
try {
|
|
|
JSONObject info = eventJSon.getJSONObject("info");
|
|
|
String openId = eventJSon.getString("openId");
|
|
@@ -395,9 +396,11 @@ public class KwaixiaodianOrderCursorListServiceImpl implements IKwaixiaodianOrde
|
|
|
String type = eventJSon.getString("event");
|
|
|
//售后单新增消息
|
|
|
if ("kwaishop_aftersales_addRefund".equals(type)) {
|
|
|
+ log.info("测试---- add");
|
|
|
aftersalesAddRefund(info, openId);
|
|
|
//售后单更新消息
|
|
|
} else if ("kwaishop_aftersales_updateRefund".equals(type)) {
|
|
|
+ log.info("测试---- update");
|
|
|
aftersalesUpdateRefund(info);
|
|
|
}
|
|
|
}
|
|
@@ -406,7 +409,7 @@ public class KwaixiaodianOrderCursorListServiceImpl implements IKwaixiaodianOrde
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void aftersalesAddRefund(JSONObject info, String openId) {
|
|
|
+ private void aftersalesAddRefund(JSONObject info, String openId) throws Exception {
|
|
|
//售后单id
|
|
|
Long refundId = info.getLong("refundId");
|
|
|
|
|
@@ -437,7 +440,7 @@ public class KwaixiaodianOrderCursorListServiceImpl implements IKwaixiaodianOrde
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void aftersalesUpdateRefund(JSONObject info) {
|
|
|
+ private void aftersalesUpdateRefund(JSONObject info) throws Exception {
|
|
|
//售后单id
|
|
|
Long refundId = info.getLong("refundId");
|
|
|
info.put("updateTime", DateUtils.timestamptoMinutesAndSecondsStr(info.getLong("updateTime")));
|