|
@@ -72,7 +72,6 @@ public class AttendanceInfoServiceImpl implements AttendanceInfoService {
|
|
|
private AttendanceWorkdaySettingService workdaySettingService;
|
|
|
|
|
|
@Override
|
|
|
- @TenantIgnore
|
|
|
public Long createInfo(AttendanceInfoSaveReqVO createReqVO) {
|
|
|
// 插入
|
|
|
AttendanceInfoDO info = BeanUtils.toBean(createReqVO, AttendanceInfoDO.class);
|
|
@@ -82,7 +81,6 @@ public class AttendanceInfoServiceImpl implements AttendanceInfoService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TenantIgnore
|
|
|
public void updateInfo(AttendanceInfoSaveReqVO updateReqVO) {
|
|
|
// 校验存在
|
|
|
validateInfoExists(updateReqVO.getId());
|
|
@@ -92,7 +90,6 @@ public class AttendanceInfoServiceImpl implements AttendanceInfoService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TenantIgnore
|
|
|
public void deleteInfo(Long id) {
|
|
|
// 校验存在
|
|
|
validateInfoExists(id);
|
|
@@ -100,7 +97,6 @@ public class AttendanceInfoServiceImpl implements AttendanceInfoService {
|
|
|
infoMapper.deleteById(id);
|
|
|
}
|
|
|
|
|
|
- @TenantIgnore
|
|
|
private void validateInfoExists(Long id) {
|
|
|
if (infoMapper.selectById(id) == null) {
|
|
|
throw exception(ATTENDANCE_INFO_NOT_EXISTS);
|
|
@@ -108,19 +104,16 @@ public class AttendanceInfoServiceImpl implements AttendanceInfoService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TenantIgnore
|
|
|
public AttendanceInfoDO getInfo(Long id) {
|
|
|
return infoMapper.selectById(id);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TenantIgnore
|
|
|
public PageResult<AttendanceInfoDO> getInfoPage(AttendanceInfoPageReqVO pageReqVO) {
|
|
|
return infoMapper.selectPage(pageReqVO);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TenantIgnore
|
|
|
@Transactional(rollbackFor = Exception.class) // 添加事务,异常则回滚所有导入
|
|
|
public AttendanceInfoImportRespVO importAttendanceInfoList(List<AttendanceInfoImportExcelVO> importAttendanceInfos) {
|
|
|
if (CollUtil.isEmpty(importAttendanceInfos)) {
|
|
@@ -179,12 +172,11 @@ public class AttendanceInfoServiceImpl implements AttendanceInfoService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TenantIgnore
|
|
|
public PageResult<AttendanceDailyInfoRespVO> getDailyInfoPage(AttendanceDailyInfoPageReqVO pageReqVO) {
|
|
|
- int currentPage = pageReqVO.getPageNo();
|
|
|
- if (currentPage > 0) {
|
|
|
- pageReqVO.setPageNo(currentPage - 1);
|
|
|
- }
|
|
|
+// int currentPage = pageReqVO.getPageNo();
|
|
|
+// if (currentPage > 0) {
|
|
|
+// pageReqVO.setPageNo(currentPage - 1);
|
|
|
+// }
|
|
|
List<AttendanceDailyInfoRespVO> list = infoMapper.getDailyInfoPage(pageReqVO);
|
|
|
if (list != null && list.size() > 0) {
|
|
|
for (AttendanceDailyInfoRespVO info : list) {
|
|
@@ -224,7 +216,6 @@ public class AttendanceInfoServiceImpl implements AttendanceInfoService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TenantIgnore
|
|
|
public PageResult<AttendanceMonthlyInfoRespVO> getMonthlyInfoPage(AttendanceMonthlyInfoPageReqVO pageReqVO) {
|
|
|
int currentPage = pageReqVO.getPageNo();
|
|
|
if (currentPage > 0) {
|