package com.ruoyi.jarvis.mapper;

import com.ruoyi.jarvis.domain.ErpGoofishOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ErpGoofishOrderMapper {

    ErpGoofishOrder selectById(Long id);

    ErpGoofishOrder selectByAppKeyAndOrderNo(@Param("appKey") String appKey, @Param("orderNo") String orderNo);

    List<ErpGoofishOrder> selectList(ErpGoofishOrder query);

    int insert(ErpGoofishOrder row);

    int update(ErpGoofishOrder row);

    List<ErpGoofishOrder> selectPendingShip(@Param("statuses") List<Integer> statuses, @Param("limit") int limit);

    int resetShipForRetry(@Param("id") Long id);
}
