完善定时请假的逻辑

This commit is contained in:
2025-02-27 15:16:33 +08:00
parent 008cd430ef
commit f044bc2bd0
7 changed files with 161 additions and 6 deletions

View File

@ -63,6 +63,9 @@ public class WgzDailyClockServiceImpl extends ServicePlusImpl<WgzDailyClockMappe
@Autowired
private IBgtProjectRecruitService iBgtProjectRecruitService;
@Autowired
private IBgtUserService iBgtUserService;
@Override
public WgzDailyClock queryById(Long id){
return getById(id);
@ -174,7 +177,19 @@ public class WgzDailyClockServiceImpl extends ServicePlusImpl<WgzDailyClockMappe
}
});
});
return new WgzUserDailyCalendarRes().setDailyCalendar(fh);
//4、获取当前务工者的招工信息的主题及招工创建人的基本信息
BgtProjectRecruitApply by = iBgtProjectRecruitApplyService.selectByUserIdProjectRecruitApplyId(SecurityUtils.getAppUserId());
BgtProjectRecruit appById = iBgtProjectRecruitService.getAppById(by.getId());
BgtUser one = iBgtUserService.getOne(
new LambdaQueryWrapper<BgtUser>().
eq(BgtUser::getUserId, appById.getUserId())
);
return new WgzUserDailyCalendarRes().
setDailyCalendar(fh).
setRecruitName(appById.getRecruitName()).
setUserId(one.getUserId()).
setUsername(one.getUsername()).
setAvatarName(one.getAvatarName());
}
@Override
@ -195,10 +210,11 @@ public class WgzDailyClockServiceImpl extends ServicePlusImpl<WgzDailyClockMappe
@Override
public TableDataInfo<WgzAppUserDailyRecordRes> userDailyRecord(WgzAppDailyRecordReq req) {
req.setUserId(SecurityUtils.getAppUserId());
Page<WgzAppDailyRecordReq> pe = new Page<>();
pe.setCurrent(req.getPageNum());
pe.setSize(req.getPageSize());
return PageUtils.buildDataInfo(baseMapper.userDailyRecordListPage(pe));
return PageUtils.buildDataInfo(baseMapper.userDailyRecordListPage(pe,req));
}
@Override