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