package com.zioinfo.mall.subscription.mapper;

import com.zioinfo.mall.subscription.MallSubscription;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SubscriptionMapper {
    List<MallSubscription> findByOwner(@Param("owner") String owner);
    List<MallSubscription> findAll(@Param("status") String status);
    MallSubscription findById(@Param("id") Long id);
    int insert(MallSubscription s);
    int updateStatus(@Param("id") Long id, @Param("status") String status);
    int updateNextDate(@Param("id") Long id, @Param("nextDeliveryDate") java.time.LocalDate next);
}
