package jnpf.personnels.service;

import jnpf.model.personnels.dto.staff.growth.AddGrowthLogDto;
import jnpf.model.personnels.dto.staff.growth.FtbPersonnelsStaffGrowthLogDto;
import jnpf.model.personnels.po.FtbPersonnelsStaffGrowthLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

public interface FtbPersonnelsStaffGrowthLogService extends IService<FtbPersonnelsStaffGrowthLog> {

    /**
     * 查询员工成长
     *
     * @param userId
     * @return
     */
    List<FtbPersonnelsStaffGrowthLogDto> queryAll(String userId);

    /**
     * 增加员工成长
     *
     * @param addGrowthLogDto
     */
    void addGrowthLog(AddGrowthLogDto addGrowthLogDto);

    /**
     * 撤销员工成长
     * @param userId
     */
    void revocationGrowthLog(String userId, Date startTime);

    /**
     * 批量增加员工成长
     */
    void addGrowthLogBatch(List<AddGrowthLogDto> addGrowthLogDtos);
}
