package com.yeejoin.amos.boot.module.tcm.api.mapper;

import com.yeejoin.amos.boot.module.tcm.api.dto.ThreeSystemsDto;
import com.yeejoin.amos.boot.module.tcm.api.entity.ThreeSystems;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author system_generator
 * @date 2023-11-01
 */
public interface ThreeSystemsMapper extends BaseMapper<ThreeSystems> {

    List<ThreeSystemsDto> getCompanyThreeSystemsStatisticsList(@Param("staticTableName") String staticTableName,
                                                               @Param("startDay") String startDay,
                                                               @Param("endDay") String endDay);

    void saveOrUpdateBatch(@Param("resultList") List<ThreeSystems> resultList);

    List<ThreeSystemsDto> getOldCompanyThreeSystemsStatisticsList(@Param("type") Integer type, @Param("lastStart") String lastStart);
}
