|
|
@ -14,6 +14,9 @@ import lombok.AllArgsConstructor;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @author elf
|
|
|
|
|
|
|
|
*/
|
|
|
|
@ExtensionService("cancelPurchaseOrder")
|
|
|
|
@ExtensionService("cancelPurchaseOrder")
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
|
@AllArgsConstructor
|
|
|
|
@AllArgsConstructor
|
|
|
@ -30,8 +33,7 @@ public class CancelPurchaseOrderService extends SPIBaseService implements Extens
|
|
|
|
distributionOrderService.cancelPurchaseOrder(shopId, requestDTO.getOrderId(), requestDTO.getSkuIds(), source, false);
|
|
|
|
distributionOrderService.cancelPurchaseOrder(shopId, requestDTO.getOrderId(), requestDTO.getSkuIds(), source, false);
|
|
|
|
return R.ok(Ret.success());
|
|
|
|
return R.ok(Ret.success());
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
log.error("cancelPurchaseOrder error", e);
|
|
|
|
log.error("cancelPurchaseOrder fail:" + e.getMessage());
|
|
|
|
|
|
|
|
return R.ok(Ret.fail(e.getMessage()));
|
|
|
|
return R.ok(Ret.fail(e.getMessage()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|