| | |
| | | /** |
| | | * 考勤规则配置 Mapper |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @Mapper |
| | | public interface HrmAttendanceRuleMapper extends BaseMapperX<HrmAttendanceRuleDO> { |
| | |
| | | .orderByAsc(HrmAttendanceRuleDO::getName)); |
| | | } |
| | | |
| | | /** |
| | | * 查询部门下已启用的规则,最新创建的排在前面 |
| | | * |
| | | * 同一部门可配置多条启用规则(多班次),由调用方按打卡时间匹配班次 |
| | | */ |
| | | default List<HrmAttendanceRuleDO> selectEnabledListByDeptId(Long deptId) { |
| | | return selectList(new LambdaQueryWrapperX<HrmAttendanceRuleDO>() |
| | | .eq(HrmAttendanceRuleDO::getDeptId, deptId) |
| | | .eq(HrmAttendanceRuleDO::getStatus, 0) |
| | | .orderByDesc(HrmAttendanceRuleDO::getId)); |
| | | } |
| | | |
| | | } |