考勤提醒定时任务bug 处理

每日上班前定时任务(如生日提醒、转正提醒、合同到期提醒等)	bug 处理
This commit is contained in:
aikai 2024-12-05 09:50:42 +08:00
parent 5bf4c6648e
commit 0dfcf47093
3 changed files with 4 additions and 4 deletions

View File

@ -94,7 +94,7 @@ public class RemindJob {
}
List<SubscribeMessageReqDTO> dtos = new ArrayList<>();
for (AdminOauthUserOtherInfoDO user : list) {
AttendanceWorkDTO attendanceWorkDTO = map.get(user.getId());
AttendanceWorkDTO attendanceWorkDTO = map.get(user.getUserId());
SubscribeMessageReqDTO dto = new WxMaMsgTemplateUtils().convertCheckInReminder(new CheckInReminderDTO()
.setOpenId(user.getOpenId())
.setCheckInType(attendanceWorkDTO.getWorkTypeStr())

View File

@ -86,7 +86,7 @@ public class BirthdayJob {
if (CollectionUtil.isNotEmpty(userIds)) {
list = adminOauthUserOtherInfoService.getOpenIdByCondition(new AdminOauthUserOtherInfoDTO()
.setSocialType(SocialTypeEnum.WECHAT_MINI_APP.getType())
.setUserIds(new ArrayList<>()));
.setUserIds(new ArrayList<>(userIds)));
}
// 生日提醒
birthdayRemind(list);

View File

@ -44,13 +44,13 @@
<if test="dto.userType != null">
and b.user_type = #{dto.userType}
</if>
<if test="dto.deptIds != null">
<if test="dto.deptIds != null and dto.deptIds.size() > 0">
and b.dept_id in
<foreach collection="dto.deptIds" item="deptId" open="(" close=")" separator=",">
#{deptId}
</foreach>
</if>
<if test="dto.userIds != null">
<if test="dto.userIds != null and dto.userIds() > 0">
and b.id in
<foreach collection="dto.userIds" item="userId" open="(" close=")" separator=",">
#{userId}