package com.bonus.bracelet.mapper;

import com.bonus.common.entity.bracelet.BraceletParamsDto;
import com.bonus.common.entity.bracelet.vo.PersonVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @className:TemporarilyPersonMapper
 * @author:cwchen
 * @date:2024-09-30-9:27
 * @version:1.0
 * @description:临时人员-mapper
 */
@Repository(value = "TemporarilyPersonMapper")
public interface TemporarilyPersonMapper {

    /**
     * 临时人员列表
     * @param dto
     * @return List<PersonVo>
     * @author cwchen
     * @date 2024/9/30 9:39
     */
    List<PersonVo> getTemporarilyPersons(BraceletParamsDto dto);

    /**
     * 删除临时人员
     * @param dto
     * @return void
     * @author cwchen
     * @date 2024/9/30 10:26
     */
    void delTemporarilyPerson(BraceletParamsDto dto);

    /**
     * 更新手环绑定的临时人员
     * @param dto
     * @return void
     * @author cwchen
     * @date 2024/9/30 10:30
     */
    void updateBracelet(Long id);

    /**
     * 查询临时人员绑定的手环设备
     * @param dto
     * @return Long
     * @author cwchen
     * @date 2024/9/30 10:36
     */
    Long getBraceletByTemporarilyPerson(BraceletParamsDto dto);
}
