|
@@ -548,8 +548,6 @@ public class WeiXinCorpController {
|
|
|
String orderId = "";
|
|
|
if (jsonObject.has("OrderId")){
|
|
|
orderId = jsonObject.getString("OrderId");
|
|
|
- }else {
|
|
|
- orderId = jsonObject.getString("NewOrderId");
|
|
|
}
|
|
|
WxOrder wxOrder = null;
|
|
|
switch (infoType){
|
|
@@ -591,6 +589,7 @@ public class WeiXinCorpController {
|
|
|
break;
|
|
|
case "change_order"://change_order:改单通知
|
|
|
System.err.println("###########################改单通知");
|
|
|
+ orderId = jsonObject.getString("NewOrderId");
|
|
|
wxOrder = getOrder(orderId);
|
|
|
if (wxOrder!=null){
|
|
|
wxOrder.setOldOrderid(jsonObject.getString("OldOrderId"));
|
|
@@ -608,6 +607,7 @@ public class WeiXinCorpController {
|
|
|
//退款则将其到期时间设置为现在的时间减去一天
|
|
|
newCompany.setExpirationDate(LocalDateTime.now().minusDays(1));
|
|
|
companyMapper.updateById(newCompany);
|
|
|
+ System.out.println("已将该公司有效期设置为:");
|
|
|
}
|
|
|
break;
|
|
|
}
|