package com.gkhy.safePlatform.account.service.baseService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gkhy.safePlatform.account.entity.schedule.BreakTimeGroupAndRuleRelationInfo; import com.gkhy.safePlatform.account.entity.schedule.BreakTimeRuleRelationDO; import com.gkhy.safePlatform.account.model.dto.resp.BreakTimeRuleRelationRespDTO; import com.gkhy.safePlatform.account.repository.schedule.BreakTimeGroupAndRuleRelationInfoRepository; import com.gkhy.safePlatform.account.service.baseService.BreakTimeGroupAndRuleRelationInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service("breakTimeGroupAndRuleRelationInfoService") public class BreakTimeGroupAndRuleRelationInfoServiceImpl extends ServiceImpl implements BreakTimeGroupAndRuleRelationInfoService { @Autowired private BreakTimeGroupAndRuleRelationInfoRepository breakTimeGroupAndRuleRelationInfoRepository; @Override public int deleteBtgarrByBreakTimeGroupId(Long id) { /** * 物理删除 * 休息时间组和休息规则绑定关系 */ return breakTimeGroupAndRuleRelationInfoRepository.deleteBtgarrByBreakTimeGroupId(id); } /** * 获取所有休息时间关系表和休息时间关联的数据 * @return */ @Override public List getAllBreakTimeRuleRelation(BreakTimeGroupAndRuleRelationInfo breakTimeGroupAndRuleRelationInfo) { return breakTimeGroupAndRuleRelationInfoRepository.getAllBreakTimeRuleRelation(breakTimeGroupAndRuleRelationInfo); } @Override public List getBreakTimeGroupAndRuleRelation(BreakTimeGroupAndRuleRelationInfo breakTimeGroupAndRuleRelationInfo) { return breakTimeGroupAndRuleRelationInfoRepository.getBreakTimeGroupAndRuleRelation(breakTimeGroupAndRuleRelationInfo); } }