MonthAwardMapper.java 1.12 KB
Newer Older
licc's avatar
licc committed
1 2 3 4
package cn.wisenergy.mapper;

import cn.wisenergy.model.app.MonthAward;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
licc's avatar
licc committed
5 6 7
import org.apache.ibatis.annotations.Param;

import java.util.Date;
licc's avatar
licc committed
8 9
import java.util.List;
import java.util.Map;
licc's avatar
licc committed
10 11 12 13 14 15

/**
 * @author 86187
 */
public interface MonthAwardMapper extends BaseMapper<MonthAward> {

licc's avatar
licc committed
16 17 18 19 20 21
    /**
     * 添加
     *
     * @param monthAward 奖励信息
     * @return 1
     */
licc's avatar
licc committed
22 23
    int add(MonthAward monthAward);

licc's avatar
licc committed
24 25 26 27 28 29
    /**
     * 编辑
     *
     * @param monthAward 奖励信息
     * @return 1
     */
licc's avatar
licc committed
30 31
    int edit(MonthAward monthAward);

licc's avatar
licc committed
32 33 34 35 36 37
    /**
     * 删除
     *
     * @param id 主键id
     * @return 1
     */
licc's avatar
licc committed
38
    int delById(Integer id);
licc's avatar
licc committed
39

licc's avatar
licc committed
40 41 42 43 44
    /**
     * 获取本月 月度奖金
     * @param yearMonth 年月
     * @return 月度奖金
     */
licc's avatar
licc committed
45
    MonthAward getByTime(@Param("yearMonth") String yearMonth);
licc's avatar
licc committed
46

licc's avatar
licc committed
47 48 49 50 51
    /**
     * 统计数据条数
     * @param map 条件
     * @return 条数
     */
licc's avatar
licc committed
52 53 54
    int count(Map<String,Object> map);


licc's avatar
licc committed
55 56 57 58 59
    /**
     * 获取列表
     * @param map 条件
     * @return 列表
     */
licc's avatar
licc committed
60
    List<MonthAward> getList(Map<String,Object> map);
licc's avatar
licc committed
61
}