MonthAwardMapper.java 830 Bytes
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 10 11 12 13

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

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

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

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

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