Commit ddc6a976a1071573b2adcd841e405a25a519c725

Authored by fengliang
1 parent 17b7d89e

update:增加核销时再次确认发货

etrade-order/src/main/java/com/diligrp/etrade/order/api/OrderController.java
@@ -782,7 +782,7 @@ public class OrderController { @@ -782,7 +782,7 @@ public class OrderController {
782 @RequestMapping(value = "/sendToWeChatDelivery",method = {RequestMethod.POST},produces="application/json;charset=UTF-8") 782 @RequestMapping(value = "/sendToWeChatDelivery",method = {RequestMethod.POST},produces="application/json;charset=UTF-8")
783 public Message sendToWeChatDelivery(@RequestBody OrderGetDto orderDto){ 783 public Message sendToWeChatDelivery(@RequestBody OrderGetDto orderDto){
784 try{ 784 try{
785 - return Message.success(orderService.SendToWeChatPay(orderDto)); 785 + return Message.success(orderService.sendToWeChatPay(orderDto));
786 }catch (PlatformServiceException pe) { 786 }catch (PlatformServiceException pe) {
787 LOGGER.warn("服务异常{}:{}",pe.getCode(), pe.getMessage()); 787 LOGGER.warn("服务异常{}:{}",pe.getCode(), pe.getMessage());
788 return Message.failure("服务暂时不在线,请稍后"); 788 return Message.failure("服务暂时不在线,请稍后");
etrade-order/src/main/java/com/diligrp/etrade/order/service/OrderService.java
@@ -230,7 +230,7 @@ public interface OrderService { @@ -230,7 +230,7 @@ public interface OrderService {
230 * 测试推送发货接口 230 * 测试推送发货接口
231 * @param orderDto 231 * @param orderDto
232 */ 232 */
233 - Integer SendToWeChatPay(OrderGetDto orderDto); 233 + Integer sendToWeChatPay(OrderGetDto orderDto);
234 234
235 /** 235 /**
236 * 微信支付失败回调 236 * 微信支付失败回调
etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/OrderServiceImpl.java
@@ -486,6 +486,7 @@ public class OrderServiceImpl implements OrderService { @@ -486,6 +486,7 @@ public class OrderServiceImpl implements OrderService {
486 order.setModifier(orderOperateDto.getOperateName()); 486 order.setModifier(orderOperateDto.getOperateName());
487 order.setModifiedTime(null); 487 order.setModifiedTime(null);
488 updateByOnly(order); 488 updateByOnly(order);
  489 + sendToWeChatPay(new OrderGetDto(order.getId(),order.getCode(),order.getMarketId()));
489 } 490 }
490 491
491 @Transactional 492 @Transactional
@@ -939,7 +940,7 @@ public class OrderServiceImpl implements OrderService { @@ -939,7 +940,7 @@ public class OrderServiceImpl implements OrderService {
939 } 940 }
940 941
941 @Override 942 @Override
942 - public Integer SendToWeChatPay(OrderGetDto orderDto){ 943 + public Integer sendToWeChatPay(OrderGetDto orderDto){
943 Order order = getOneOrder(orderDto); 944 Order order = getOneOrder(orderDto);
944 if(order.getDeliverySendState()==null|| 945 if(order.getDeliverySendState()==null||
945 !OrderConstant.SEND_TO_DELIVERY_SUCCESS.equals(order.getDeliverySendState())){ 946 !OrderConstant.SEND_TO_DELIVERY_SUCCESS.equals(order.getDeliverySendState())){