|
@@ -28,10 +28,8 @@ import org.dromara.system.mapper.AskLeaveMapper;
|
|
import org.dromara.system.service.IAskLeaveService;
|
|
import org.dromara.system.service.IAskLeaveService;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Map;
|
|
|
|
-import java.util.Collection;
|
|
|
|
|
|
+import java.util.*;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 请假Service业务层处理
|
|
* 请假Service业务层处理
|
|
@@ -81,6 +79,12 @@ public class AskLeaveServiceImpl implements IAskLeaveService {
|
|
.eq(AskLeaveFj::getLeaveId,askLeaveVo.getId()));
|
|
.eq(AskLeaveFj::getLeaveId,askLeaveVo.getId()));
|
|
|
|
|
|
askLeaveVo.setAskLeaveFjBoList(askLeaveFjVoList);
|
|
askLeaveVo.setAskLeaveFjBoList(askLeaveFjVoList);
|
|
|
|
+
|
|
|
|
+ //查询请假课程信息
|
|
|
|
+ List<AskLeaveCourseVo> askLeaveCourseList = askLeaveCourseMapper.selectVoList(new LambdaQueryWrapper<AskLeaveCourse>()
|
|
|
|
+ .eq(AskLeaveCourse::getLeaveId,askLeaveVo.getId()));
|
|
|
|
+
|
|
|
|
+ askLeaveVo.setAskLeaveCourseBoList(askLeaveCourseList);
|
|
}
|
|
}
|
|
|
|
|
|
return TableDataInfo.build(result);
|
|
return TableDataInfo.build(result);
|
|
@@ -109,7 +113,9 @@ public class AskLeaveServiceImpl implements IAskLeaveService {
|
|
lqw.eq(StringUtils.isNotBlank(bo.getLeaveFrame()), AskLeave::getLeaveFrame, bo.getLeaveFrame());
|
|
lqw.eq(StringUtils.isNotBlank(bo.getLeaveFrame()), AskLeave::getLeaveFrame, bo.getLeaveFrame());
|
|
lqw.eq(StringUtils.isNotBlank(bo.getExamineId()), AskLeave::getExamineId, bo.getExamineId());
|
|
lqw.eq(StringUtils.isNotBlank(bo.getExamineId()), AskLeave::getExamineId, bo.getExamineId());
|
|
lqw.eq(StringUtils.isNotBlank(bo.getExamineResult()), AskLeave::getExamineResult, bo.getExamineResult());
|
|
lqw.eq(StringUtils.isNotBlank(bo.getExamineResult()), AskLeave::getExamineResult, bo.getExamineResult());
|
|
|
|
+ lqw.eq(StringUtils.isNotBlank(bo.getOpinion()), AskLeave::getOpinion, bo.getOpinion());
|
|
lqw.like(StringUtils.isNotBlank(bo.getExamineName()), AskLeave::getExamineName, bo.getExamineName());
|
|
lqw.like(StringUtils.isNotBlank(bo.getExamineName()), AskLeave::getExamineName, bo.getExamineName());
|
|
|
|
+ lqw.orderByDesc(AskLeave::getUpdateTime);
|
|
return lqw;
|
|
return lqw;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -161,6 +167,7 @@ public class AskLeaveServiceImpl implements IAskLeaveService {
|
|
|
|
|
|
|
|
|
|
int index = 0;
|
|
int index = 0;
|
|
|
|
+ bo.setUpdateTime(DateUtils.getNowDate());
|
|
AskLeave update = MapstructUtils.convert(bo, AskLeave.class);
|
|
AskLeave update = MapstructUtils.convert(bo, AskLeave.class);
|
|
validEntityBeforeSave(update);
|
|
validEntityBeforeSave(update);
|
|
index = baseMapper.updateById(update);
|
|
index = baseMapper.updateById(update);
|
|
@@ -235,4 +242,8 @@ public class AskLeaveServiceImpl implements IAskLeaveService {
|
|
validEntityBeforeSave(update);
|
|
validEntityBeforeSave(update);
|
|
return baseMapper.updateById(update);
|
|
return baseMapper.updateById(update);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|