feat(oa): 新增项目进度节点批量插入功能
- 新增 NodeDTO 数据传输对象,用于封装节点信息 - 在 OaProjectScheduleStepMapper 中添加 saveBatch 批量插入方法 - 实现 OaProjectScheduleStepServiceImpl 的 batchInsertNodes 方法 - 新增 TableDataConstantUtil 工具类,提供初始化节点数据- 在 OaProjectScheduleController 中新增 addByProjectId 接口 - 扩展 OaProjectScheduleStep 实体类与 VO/BO 类的字段结构 -优化首次编辑时 endTime 和 originalEndTime 的赋值逻辑
This commit is contained in:
@@ -7,6 +7,9 @@ import com.ruoyi.oa.domain.vo.OaProjectScheduleStepVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目进度步骤跟踪Mapper接口
|
||||
*
|
||||
@@ -24,4 +27,6 @@ public interface OaProjectScheduleStepMapper extends BaseMapperPlus<OaProjectSch
|
||||
void updateByStepAndScheduleId(@Param("currentStep") Long currentStep, @Param("scheduleId") Long scheduleId);
|
||||
|
||||
OaProjectScheduleStepVo selectByCurrentStepAndScheduleId(@Param("currentStep") Long currentStep, @Param("scheduleId") Long scheduleId);
|
||||
|
||||
void saveBatch(List<OaProjectScheduleStep> entities);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user