commit
Some checks failed
API接口参数变更检测 / api-param-check (push) Has been cancelled

This commit is contained in:
2026-06-05 16:18:40 +08:00
parent 1ca34c6bb2
commit 3cba3bb74e
4393 changed files with 450030 additions and 103 deletions

View File

@@ -0,0 +1,42 @@
package jnpf.attendance.service;
import jnpf.base.service.SuperService;
import jnpf.entity.attendance.FtbScheduleGroupFixedParamEntity;
import jnpf.exception.HandleException;
import jnpf.exception.QueryException;
import jnpf.model.attendance.dto.scheduling.ScheduleGroupRuleConfigDto;
import jnpf.model.attendance.vo.scheduling.ScheduleGroupRuleConfigVo;
/**
* 考勤组智能排班「排班规则配置」:固定排班核心参数与划线排班参数的查询与保存。
*
* <p>以「固定排班核心参数表」({@link FtbScheduleGroupFixedParamEntity}) 为主实体(每考勤组 1:1
* 划线参数由 {@code FtbScheduleGroupDrawingParamMapper} 协同维护。
*
* @author xiaofeng
* @since 2026-05-13
*/
public interface ScheduleGroupRuleConfigService extends SuperService<FtbScheduleGroupFixedParamEntity> {
/**
* 获取排班规则配置。无表记录时子块返回与表 DEFAULT 一致的默认结构。
*
* @param groupId 考勤组 ID
* @return 配置
* @throws HandleException 参数非法
* @throws QueryException 考勤组不存在或已删除
*/
ScheduleGroupRuleConfigVo getRuleConfig(String groupId) throws HandleException, QueryException;
/**
* 保存排班规则配置。事务内对当前考勤组两块参数表按 {@code groupId} upsert。
*
* @param groupId 考勤组 ID与请求体根 {@code groupId} 须一致)
* @param dto 保存请求体(嵌套为 DTO与响应 VO 字段名与取值类型一致
* @return 保存后的配置(等同再查一次)
* @throws HandleException 参数非法 / 业务校验失败
* @throws QueryException 考勤组不存在或已删除
*/
ScheduleGroupRuleConfigVo saveRuleConfig(String groupId, ScheduleGroupRuleConfigDto dto)
throws HandleException, QueryException;
}