package com.ruoyi.asset.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.asset.domain.AmsAssetLifecycleLog;

/**
 * 资产履历Mapper接口
 *
 * @author Yangk
 */
public interface AmsAssetLifecycleLogMapper
{
    /**
     * 按资产ID查询履历
     *
     * @param assetId 资产ID
     * @return 资产履历集合
     */
    public List<AmsAssetLifecycleLog> selectAmsAssetLifecycleLogByAssetId(Long assetId);

    /**
     * 统计标签相关RFID履历
     *
     * @param tagId 标签ID
     * @param businessTypes RFID履历业务类型
     * @return 履历数量
     */
    public int countRfidLifecycleByTagId(@Param("tagId") Long tagId,
                                         @Param("businessTypes") String[] businessTypes);

    /**
     * 新增资产履历
     *
     * @param lifecycleLog 资产履历
     * @return 结果
     */
    public int insertAmsAssetLifecycleLog(AmsAssetLifecycleLog lifecycleLog);
}
