23 lines
593 B
Java
23 lines
593 B
Java
package com.designhub.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.designhub.entity.DelayPenaltyRule;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 延误扣分规则Mapper接口
|
|
*/
|
|
@Mapper
|
|
public interface DelayPenaltyRuleMapper extends BaseMapper<DelayPenaltyRule> {
|
|
|
|
/**
|
|
* 查询所有启用的规则,按最小小时数排序
|
|
*/
|
|
@Select("SELECT * FROM delay_penalty_rule WHERE enabled = 1 ORDER BY min_hours ASC")
|
|
List<DelayPenaltyRule> findAllEnabled();
|
|
}
|
|
|