package com.ycl.platform.mapper;
|
|
import annotation.AutoFill;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.ycl.platform.domain.dto.CheckScoreDTO;
|
import com.ycl.platform.domain.dto.ScoreIndexDTO;
|
import com.ycl.platform.domain.entity.CheckScore;
|
import com.ycl.platform.domain.query.DashboardQuery;
|
import enumeration.OperationType;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 考核积分明细Mapper接口
|
*
|
* @author ruoyi
|
* @date 2024-04-22
|
*/
|
public interface CheckScoreMapper extends BaseMapper<CheckScore>
|
{
|
/**
|
* 查询考核积分明细
|
*
|
* @param id 考核积分明细主键
|
* @return 考核积分明细
|
*/
|
public CheckScore selectCheckScoreById(Long id);
|
|
/**
|
* 查询考核积分明细列表
|
*
|
* @param checkScore 考核积分明细
|
* @return 考核积分明细集合
|
*/
|
public List<CheckScore> selectCheckScoreList(CheckScore checkScore);
|
|
/**
|
* 新增考核积分明细
|
*
|
* @param checkScore 考核积分明细
|
* @return 结果
|
*/
|
public int insertCheckScore(CheckScore checkScore);
|
|
/**
|
* 修改考核积分明细
|
*
|
* @param checkScore 考核积分明细
|
* @return 结果
|
*/
|
public int updateCheckScore(CheckScore checkScore);
|
|
/**
|
* 删除考核积分明细
|
*
|
* @param id 考核积分明细主键
|
* @return 结果
|
*/
|
public int deleteCheckScoreById(Long id);
|
|
/**
|
* 批量删除考核积分明细
|
*
|
* @param ids 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteCheckScoreByIds(Long[] ids);
|
|
@AutoFill(OperationType.UPDATE)
|
int publishCheckScore(CheckScoreDTO checkScoreDTO);
|
|
List<Map> selectScoreIndex(ScoreIndexDTO scoreIndexDTO);
|
|
void saveBatch(List<CheckScore> scoreList);
|
|
List<CheckScore> selectCheckScoreMap(CheckScore checkScore);
|
|
/**
|
* 首页考核预警
|
* @return 数据
|
*/
|
List<Map<String, Object>> home();
|
|
/**
|
* 首页核算
|
* @param startDate 本月第一天
|
* @param endDate 当前时间
|
* @param category 分类
|
* @return 数据
|
*/
|
List<Map<String, Object>> calculate(Date startDate, Date endDate, String category);
|
|
CheckScore getLast(CheckScore checkScore);
|
|
List<CheckScore> dashboard(DashboardQuery dashboardQuery);
|
|
List<CheckScore> selectToday(String day);
|
|
}
|