Commit 6f03c08d by 张富康

feat(logging): 增加绩效和考勤模块的关键日志输出

- 在申诉考勤确认方法中添加入参日志打印
- 在有效引荐审核服务中增加多个步骤的日志记录
- 添加通知区域经理、总部运营和线上运营的手机号及用户ID日志
- 在绩效通知服务中增加未处理绩效员工上级领导手机号日志
- 提升日志信息的可追踪性,便于问题诊断和监控
1 parent 27c392a5
......@@ -75,6 +75,8 @@ public class AttendanceSummaryService {
*/
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = RpcServiceException.class)
public void confirmUpdateAppealAttendance(String mobilePhone, String attendanceMonth, BigDecimal appealAttendanceDays) {
// 打印入参
log.info("确认修改申诉考勤-入参:mobilePhone:{},attendanceMonth:{},appealAttendanceDays:{}", mobilePhone, attendanceMonth, appealAttendanceDays);
Example example = new Example(AttendanceSummary.class);
example.createCriteria().andEqualTo("mobilePhone", mobilePhone)
.andEqualTo("attendanceMonth", attendanceMonth).andEqualTo("deletedFlag", "N");
......
......@@ -56,11 +56,13 @@ public class EffectiveReferralReviewQwService {
DateTime lastMonthDate = DateUtil.offsetMonth(new Date(), -1);
String lastMonth = DateUtil.format(lastMonthDate, DatePattern.NORM_MONTH_PATTERN);
List<String> mobilePhoneList = effectiveReferralReviewMapper.queryQwSendMobilePhoneList(lastMonth);
log.info("通知区域经理-mobilePhoneList:{}", mobilePhoneList);
if (CollUtil.isEmpty(mobilePhoneList)) {
log.info("没有未处理有效引荐数对应的区域运营手机号");
return;
}
Map<String, String> sendUserIds = qWManager.getSendUserIds();
log.info("sendUserIds:{}", sendUserIds);
String joinedUserIds = qWManager.getJoinedUserIds(sendUserIds, mobilePhoneList);
log.info("发送给的企微用户id:{}", joinedUserIds);
if (StrUtil.isBlank(joinedUserIds)) {
......@@ -120,11 +122,13 @@ public class EffectiveReferralReviewQwService {
String lastMonth = DateUtil.format(lastMonthDate, DatePattern.NORM_MONTH_PATTERN);
// 查询是否有需要待复核的数据
List<String> mobilePhoneList = effectiveReferralReviewMapper.queryOnlineNoHandlerQwSendMobilePhone(lastMonth, null, null);
log.info("通知总部运营-mobilePhoneList:{}", mobilePhoneList);
if (CollUtil.isEmpty(mobilePhoneList)) {
log.info("没有未处理有效引荐数对应的区域运营手机号");
return;
}
Map<String, String> sendUserIds = qWManager.getSendUserIds();
log.info("sendUserIds:{}", sendUserIds);
String joinedUserIds = qWManager.getJoinedUserIds(sendUserIds, mobilePhoneList);
log.info("发送给的企微用户id:{}", joinedUserIds);
if (StrUtil.isBlank(joinedUserIds)) {
......@@ -169,14 +173,17 @@ public class EffectiveReferralReviewQwService {
* @param sceneType 1-精品升级(轻改);2-会员权益(广联权益);3-单延保
*/
public void qwOnlineNotification(String reviewMonth, Integer changedMerchantId, byte sceneType) {
log.info("调用参数:reviewMonth:{} , changedMerchantId:{}, sceneType:{}", reviewMonth, changedMerchantId, sceneType);
PerformanceTimeCycleDTO performanceTimeCycleDTO = performanceTimeCycleMapper.selectByCode(PerformanceTimeCycleCodeEnum.T1.getCode());
Date endDate = performanceTimeCycleDTO.getEndDate();
List<String> mobilePhoneList = effectiveReferralReviewMapper.queryOnlineNoHandlerQwSendMobilePhone(reviewMonth, changedMerchantId, sceneType);
log.info("通知线上运营-mobilePhoneList:{}", mobilePhoneList);
if (CollUtil.isEmpty(mobilePhoneList)) {
log.info("没有未处理有效引荐数对应的区域运营手机号");
log.info("没有未处理有效引荐数对应的线上运营手机号");
return;
}
Map<String, String> sendUserIds = qWManager.getSendUserIds();
log.info("sendUserIds:{}", sendUserIds);
String joinedUserIds = qWManager.getJoinedUserIds(sendUserIds, mobilePhoneList);
log.info("发送给的企微用户id:{}", joinedUserIds);
if (StrUtil.isBlank(joinedUserIds)) {
......@@ -219,12 +226,14 @@ public class EffectiveReferralReviewQwService {
* @param mobilePhone 需要通知的区域运营手机号
*/
public void changeCountManagerQwNotification(String changedMerchantName, String mobilePhone) {
log.info("调用参数:changedMerchantName:{} , mobilePhone:{}", changedMerchantName, mobilePhone);
List<String> mobilePhoneList = StrUtil.split(mobilePhone, ",");
if (CollUtil.isEmpty(mobilePhoneList)) {
log.info("没有未处理有效引荐数对应的区域运营手机号");
return;
}
Map<String, String> sendUserIds = qWManager.getSendUserIds();
log.info("sendUserIds:{}", sendUserIds);
String joinedUserIds = qWManager.getJoinedUserIds(sendUserIds, mobilePhoneList);
log.info("发送给的企微用户id:{}", joinedUserIds);
if (StrUtil.isBlank(joinedUserIds)) {
......
......@@ -51,11 +51,13 @@ public class PerfQwNotificationService {
DateTime lastMonthDate = DateUtil.offsetMonth(new Date(), -1);
String lastMonth = DateUtil.format(lastMonthDate, DatePattern.NORM_MONTH_PATTERN);
List<String> mobilePhoneList = performanceEvaluationMapper.querySuperiorLeaderMobilePhoneLeader(lastMonth);
log.info("未处理绩效的员工的上级领导手机号:{}", mobilePhoneList);
if (CollUtil.isEmpty(mobilePhoneList)) {
log.info("没有未处理绩效的员工的上级领导手机号");
return;
}
Map<String, String> sendUserIds = qWManager.getSendUserIds();
log.info("sendUserIds:{}", sendUserIds);
String joinedUserIds = qWManager.getJoinedUserIds(sendUserIds, mobilePhoneList);
SendWorkWechatMessageRequestDTO requestDTO = new SendWorkWechatMessageRequestDTO();
// dev = 44209813 test = 44209813
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!