考勤提醒定时任务bug 处理
每日上班前定时任务(如生日提醒、转正提醒、合同到期提醒等) bug 处理
This commit is contained in:
parent
5bf4c6648e
commit
0dfcf47093
@ -94,7 +94,7 @@ public class RemindJob {
|
|||||||
}
|
}
|
||||||
List<SubscribeMessageReqDTO> dtos = new ArrayList<>();
|
List<SubscribeMessageReqDTO> dtos = new ArrayList<>();
|
||||||
for (AdminOauthUserOtherInfoDO user : list) {
|
for (AdminOauthUserOtherInfoDO user : list) {
|
||||||
AttendanceWorkDTO attendanceWorkDTO = map.get(user.getId());
|
AttendanceWorkDTO attendanceWorkDTO = map.get(user.getUserId());
|
||||||
SubscribeMessageReqDTO dto = new WxMaMsgTemplateUtils().convertCheckInReminder(new CheckInReminderDTO()
|
SubscribeMessageReqDTO dto = new WxMaMsgTemplateUtils().convertCheckInReminder(new CheckInReminderDTO()
|
||||||
.setOpenId(user.getOpenId())
|
.setOpenId(user.getOpenId())
|
||||||
.setCheckInType(attendanceWorkDTO.getWorkTypeStr())
|
.setCheckInType(attendanceWorkDTO.getWorkTypeStr())
|
||||||
|
@ -86,7 +86,7 @@ public class BirthdayJob {
|
|||||||
if (CollectionUtil.isNotEmpty(userIds)) {
|
if (CollectionUtil.isNotEmpty(userIds)) {
|
||||||
list = adminOauthUserOtherInfoService.getOpenIdByCondition(new AdminOauthUserOtherInfoDTO()
|
list = adminOauthUserOtherInfoService.getOpenIdByCondition(new AdminOauthUserOtherInfoDTO()
|
||||||
.setSocialType(SocialTypeEnum.WECHAT_MINI_APP.getType())
|
.setSocialType(SocialTypeEnum.WECHAT_MINI_APP.getType())
|
||||||
.setUserIds(new ArrayList<>()));
|
.setUserIds(new ArrayList<>(userIds)));
|
||||||
}
|
}
|
||||||
// 生日提醒
|
// 生日提醒
|
||||||
birthdayRemind(list);
|
birthdayRemind(list);
|
||||||
|
@ -44,13 +44,13 @@
|
|||||||
<if test="dto.userType != null">
|
<if test="dto.userType != null">
|
||||||
and b.user_type = #{dto.userType}
|
and b.user_type = #{dto.userType}
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.deptIds != null">
|
<if test="dto.deptIds != null and dto.deptIds.size() > 0">
|
||||||
and b.dept_id in
|
and b.dept_id in
|
||||||
<foreach collection="dto.deptIds" item="deptId" open="(" close=")" separator=",">
|
<foreach collection="dto.deptIds" item="deptId" open="(" close=")" separator=",">
|
||||||
#{deptId}
|
#{deptId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.userIds != null">
|
<if test="dto.userIds != null and dto.userIds() > 0">
|
||||||
and b.id in
|
and b.id in
|
||||||
<foreach collection="dto.userIds" item="userId" open="(" close=")" separator=",">
|
<foreach collection="dto.userIds" item="userId" open="(" close=")" separator=",">
|
||||||
#{userId}
|
#{userId}
|
||||||
|
Loading…
Reference in New Issue
Block a user