|
@@ -65,6 +65,9 @@ public class MeituanDeliveryCallback {
|
|
|
@Resource
|
|
|
private IDspDeliveryService iDspDeliveryService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private IShopService iShopService;
|
|
|
+
|
|
|
/**
|
|
|
* 授权
|
|
|
* @param params
|
|
@@ -205,9 +208,9 @@ public class MeituanDeliveryCallback {
|
|
|
if (info.getStatus().equals(10) || info.getStatus().equals(50)){
|
|
|
shopDelivery.setBindStatus(BindStatusEnum.REFUND.status);
|
|
|
shopDelivery.setAuthMsg(info.getReject_message());
|
|
|
- }else if (info.getStatus().equals(20) || info.getStatus().equals(30)){
|
|
|
+ } else if (info.getStatus().equals(20) || info.getStatus().equals(30)){
|
|
|
shopDelivery.setBindStatus(BindStatusEnum.CHECK.status);
|
|
|
- }else if (info.getStatus().equals(40) || info.getStatus().equals(60)){
|
|
|
+ } else if (info.getStatus().equals(40) || info.getStatus().equals(60)){
|
|
|
shopDelivery.setBindStatus(BindStatusEnum.BIND.status);
|
|
|
}
|
|
|
iShopDeliveryService.updateById(shopDelivery);
|
|
@@ -216,8 +219,9 @@ public class MeituanDeliveryCallback {
|
|
|
Merchant merchant = iMerchantService.getById(shopDelivery.getMerchantId());
|
|
|
if (merchant != null && merchant.getAppId() != null) {
|
|
|
DspDelivery dspDelivery = iDspDeliveryService.findById(shopDelivery.getDeliveryId());
|
|
|
+ Shop shop = iShopService.getById(shopDelivery.getShopId());
|
|
|
StoreStatusNotifyVo notifyVo = StoreStatusNotifyVo.builder()
|
|
|
- .shopCode(shopDelivery.getShopNo())
|
|
|
+ .shopCode(shop.getCode())
|
|
|
.deliveryId(dspDelivery.getType())
|
|
|
.status(shopDelivery.getBindStatus())
|
|
|
.failMsg(shopDelivery.getAuthMsg())
|