package com.jeeplus.psimanage.foodPurchase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeeplus.psimanage.foodPurchase.domain.PsiFoodPurchaseChange;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PsiFoodPurchaseChangeMapper extends BaseMapper<PsiFoodPurchaseChange> {

    void updateStatusById(@Param("id") String id, @Param("status") String status);

    PsiFoodPurchaseChange findActiveBySourceBasicId(@Param("sourceBasicId") String sourceBasicId);

    List<String> getIdsBySourceBasicId(@Param("sourceBasicId") String sourceBasicId);
}
