feat(oa): 新增根据计划ID批量删除步骤功能
- 在 IOaProjectScheduleStepService 接口中新增 deleteByScheduleIds 方法 - 实现类 OaProjectScheduleStepServiceImpl 中实现 deleteByScheduleIds 方法 - 在 OaProjectScheduleStepMapper 中增加 deleteByScheduleIds 的 SQL 映射- 在 OaProjectScheduleServiceImpl 删除计划时同步删除相关步骤 - 添加 Mapper 层对 scheduleIds 参数的支持及 XML 删除语句- 更新 mapper 接口导入 Collection 类以支持参数传递
This commit is contained in:
@@ -8,6 +8,7 @@ import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -29,4 +30,11 @@ public interface OaProjectScheduleStepMapper extends BaseMapperPlus<OaProjectSch
|
||||
OaProjectScheduleStepVo selectByCurrentStepAndScheduleId(@Param("currentStep") Long currentStep, @Param("scheduleId") Long scheduleId);
|
||||
|
||||
void saveBatch(List<OaProjectScheduleStep> entities);
|
||||
|
||||
/**
|
||||
* 根据 schedule_id 批量删除步骤记录
|
||||
* @param scheduleIds 主表的 schedule_id 集合
|
||||
* @return 删除的记录数
|
||||
*/
|
||||
int deleteByScheduleIds(@Param("scheduleIds") Collection<Long> scheduleIds);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user