Commit d0a9050b authored by yzc's avatar yzc

fix: 会员整改,考评首页统计调整

parent f872d9f9
......@@ -19,25 +19,18 @@ public interface IReportFeignService {
void memberValidateReport(MemberRelationDO relationDO, Integer lastInnerStatus, String reason);
/**
* 会员订单评价之后发送首页统计通知
* @param typeEnum 会员评价类型
* @param memberId 会员id
* @param roleId 角色id
*/
void memberOrderCommentReport(Integer typeEnum, Long memberId, Long roleId);
/**
* 首页统计增加
*/
void increaseReport(Integer dataSource, Long memberId, Long roleId, Integer operateType);
void increaseReport(Integer dataSource, Integer operateType, Long memberId, Long roleId);
/**
* 首页统计减少
*/
void reduceReport(Integer dataSource, Long memberId, Long roleId, Integer operateType);
void reduceReport(Integer dataSource, Integer operateType, Long memberId, Long roleId);
/**
* 首页统计一方减少一方增加
*/
void reduceAndIncreaseReport(Integer dataSource, Long memberId, Long roleId, Integer operateType, Long subMemberId, Long subRoleId, Integer subOperateType);
void reduceAndIncreaseReport(Integer dataSource, Integer operateType, Long memberId, Long roleId,
Integer subDataSource, Integer subOperateType, Long subMemberId, Long subRoleId);
}
......@@ -3,11 +3,12 @@ package com.ssy.lingxi.member.merchant.serviceimpl.feign;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.member.merchant.entity.MemberRelationDO;
import com.ssy.lingxi.member.merchant.model.constant.*;
import com.ssy.lingxi.member.merchant.model.constant.MemberInnerStatusEnum;
import com.ssy.lingxi.member.merchant.model.constant.MemberProcessTypeEnum;
import com.ssy.lingxi.member.merchant.model.constant.MemberRelationTypeEnum;
import com.ssy.lingxi.member.merchant.model.constant.PlatformInnerStatusEnum;
import com.ssy.lingxi.member.merchant.service.feign.IReportFeignService;
import com.ssy.lingxi.report.api.enums.OperateDataSourceEnum;
import com.ssy.lingxi.report.api.enums.PurchaseOrderOperateTypeEnum;
import com.ssy.lingxi.report.api.enums.SaleOrderOperateTypeEnum;
import com.ssy.lingxi.report.api.feign.ReportControllerFeign;
import com.ssy.lingxi.report.api.vo.request.OperateNoticeVO;
import org.slf4j.Logger;
......@@ -95,34 +96,7 @@ public class ReportFeignServiceImpl implements IReportFeignService {
@Async
@Override
public void memberOrderCommentReport(Integer typeEnum, Long memberId, Long roleId) {
// 通知对象
OperateNoticeVO operateNoticeVO = new OperateNoticeVO();
operateNoticeVO.setMemberId(memberId);
operateNoticeVO.setRoleId(roleId);
if (MemberTradeTypeEnum.BUYER.getTypeEnum().equals(typeEnum)) {
// 买方
operateNoticeVO.setDataSource(OperateDataSourceEnum.TRADE_PURCHASE_ORDER.getCode());
operateNoticeVO.setReduceOperateType(PurchaseOrderOperateTypeEnum.TO_BE_EVALUATE.getCode());
operateNoticeVO.setReduceCount(1L);
} else if (MemberTradeTypeEnum.SELLER.getTypeEnum().equals(typeEnum)) {
// 卖方
operateNoticeVO.setDataSource(OperateDataSourceEnum.TRADE_SALE_ORDER.getCode());
operateNoticeVO.setReduceOperateType(SaleOrderOperateTypeEnum.TO_BE_EVALUATE.getCode());
operateNoticeVO.setReduceCount(1L);
}
try {
reportControllerFeign.addOperateNotice(operateNoticeVO);
} catch (Exception e) {
logger.error("会员订单评价数据通知错误", e);
}
}
@Async
@Override
public void increaseReport(Integer dataSource, Long memberId, Long roleId, Integer operateType) {
public void increaseReport(Integer dataSource, Integer operateType, Long memberId, Long roleId) {
List<OperateNoticeVO> operateNoticeVOList = new ArrayList<>();
// 待发送 - 增加
OperateNoticeVO increaseOperateNotice = new OperateNoticeVO();
......@@ -142,7 +116,7 @@ public class ReportFeignServiceImpl implements IReportFeignService {
@Async
@Override
public void reduceReport(Integer dataSource, Long memberId, Long roleId, Integer operateType) {
public void reduceReport(Integer dataSource, Integer operateType, Long memberId, Long roleId) {
List<OperateNoticeVO> operateNoticeVOList = new ArrayList<>();
// 待整改 - 减少
OperateNoticeVO reduceOperateNotice = new OperateNoticeVO();
......@@ -162,7 +136,7 @@ public class ReportFeignServiceImpl implements IReportFeignService {
@Async
@Override
public void reduceAndIncreaseReport(Integer dataSource, Long memberId, Long roleId, Integer operateType, Long subMemberId, Long subRoleId, Integer subOperateType) {
public void reduceAndIncreaseReport(Integer dataSource, Integer operateType, Long memberId, Long roleId, Integer subDataSource, Integer subOperateType, Long subMemberId, Long subRoleId) {
List<OperateNoticeVO> operateNoticeVOList = new ArrayList<>();
// 减少
OperateNoticeVO reduceOperateNotice = new OperateNoticeVO();
......
......@@ -480,7 +480,7 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
itemVO.setContent(e.getContent());
itemVO.setType(e.getType());
itemVO.setUserId(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getId() : 0L);
itemVO.setUserName(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getName(): "系统");
itemVO.setUserName(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getName() : "系统");
itemVO.setSendAppraisal(e.getSendAppraisal());
itemVO.setScoreWeight(e.getScoreWeight());
itemVO.setGrade(e.getGrade());
......@@ -528,7 +528,7 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
itemVO.setContent(e.getContent());
itemVO.setType(e.getType());
itemVO.setUserId(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getId() : 0L);
itemVO.setUserName(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getName(): "系统");
itemVO.setUserName(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getName() : "系统");
itemVO.setSendAppraisal(e.getSendAppraisal());
itemVO.setScoreWeight(e.getScoreWeight());
itemVO.setGrade(e.getGrade());
......@@ -547,7 +547,7 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
if (StringUtils.isBlank(memberAppraisalDO.getTaskId()) && MemberAppraisalStatusEnum.SUBMIT_NOTIFICATION.getCode().equals(memberAppraisalDO.getStatus())) {
memberAppraisalResultVO.setCurrentStep(7);
} else{
} else {
memberAppraisalResultVO.setCurrentStep((result.getData().getCurrentStep()));
}
memberAppraisalResultVO.setVerifySteps(result.getData().getStepList());
......@@ -586,7 +586,7 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
itemVO.setContent(e.getContent());
itemVO.setType(e.getType());
itemVO.setUserId(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getId() : 0L);
itemVO.setUserName(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getName(): "系统");
itemVO.setUserName(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getName() : "系统");
itemVO.setSendAppraisal(e.getSendAppraisal());
itemVO.setScoreWeight(e.getScoreWeight());
itemVO.setGrade(e.getGrade());
......@@ -605,7 +605,7 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
if (StringUtils.isBlank(memberAppraisalDO.getTaskId()) && MemberAppraisalStatusEnum.SUBMIT_NOTIFICATION.getCode().equals(memberAppraisalDO.getStatus())) {
memberAppraisalVO.setCurrentStep(7);
} else{
} else {
memberAppraisalVO.setCurrentStep((result.getData().getCurrentStep()));
}
memberAppraisalVO.setVerifySteps(result.getData().getStepList());
......@@ -653,7 +653,7 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
itemVO.setContent(e.getContent());
itemVO.setType(e.getType());
itemVO.setUserId(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getId() : 0L);
itemVO.setUserName(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getName(): "系统");
itemVO.setUserName(MemberAppraisalItemTypeEnum.DEFINITION.getCode().equals(e.getType()) ? e.getByUser().getName() : "系统");
itemVO.setSendAppraisal(e.getSendAppraisal());
itemVO.setScoreWeight(e.getScoreWeight());
itemVO.setGrade(e.getGrade());
......@@ -672,7 +672,7 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
if (StringUtils.isBlank(memberAppraisalDO.getTaskId()) && MemberAppraisalStatusEnum.SUBMIT_NOTIFICATION.getCode().equals(memberAppraisalDO.getStatus())) {
memberAppraisalVO.setCurrentStep(7);
} else{
} else {
memberAppraisalVO.setCurrentStep((result.getData().getCurrentStep()));
}
memberAppraisalVO.setVerifySteps(result.getData().getStepList());
......@@ -795,8 +795,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
memberAppraisalRepository.saveAndFlush(memberAppraisalDO);
// 首页统计
reportFeignService.increaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode());
reportFeignService.increaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
......@@ -901,8 +901,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
for (MemberAppraisalDO memberAppraisalDO : memberAppraisalDOList) {
// 首页统计
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode());
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
}
return Wrapper.success();
......@@ -941,9 +941,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
MemberAppraisalStatusEnum.getCodeMessage(memberAppraisalDO.getStatus()), result.getData().getOperation(), "");
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_PUBLISH_COUNT.getCode(),
memberAppraisalDO.getSubMember().getId(), memberAppraisalDO.getSubRole().getId(), MemberKpiOperateTypeEnum.TO_BE_COMMIT_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_PUBLISH_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_COMMIT_COUNT.getCode(), memberAppraisalDO.getSubMember().getId(), memberAppraisalDO.getSubRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
......@@ -954,8 +953,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
.collect(Collectors.groupingBy(item -> item.getByUser().getId()));
for (Long userId : userItems.keySet()) {
// 首页统计
reportFeignService.increaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_SCORING_COUNT.getCode());
reportFeignService.increaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_SCORING_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendUserSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), userId,
......@@ -1005,8 +1004,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
MemberAppraisalItemStatusEnum.GRADE_COMPLETE.getMessage(), "考评打分", "");
// 首页统计
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_SCORING_COUNT.getCode());
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_SCORING_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
return Wrapper.success();
}
......@@ -1071,9 +1070,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
memberAppraisalRepository.saveAndFlush(memberAppraisalDO);
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_COMMIT_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP1_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_COMMIT_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP1_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
......@@ -1112,18 +1110,16 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
if (EnableDisableStatus.ENABLE.getCode().equals(agreeVO.getAgree())) {
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP1_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP1_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
MessageTemplateCode.mc_appraisal_result_audit_step_2, Arrays.asList(memberAppraisalDO.getRole().getRoleName(), memberAppraisalDO.getMember().getName()));
} else {
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP1_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_COMMIT_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP1_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_COMMIT_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
......@@ -1165,9 +1161,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
memberAppraisalRepository.saveAndFlush(memberAppraisalDO);
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP1_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP1_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
......@@ -1207,18 +1202,16 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
if (EnableDisableStatus.ENABLE.getCode().equals(agreeVO.getAgree())) {
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_NOTICE_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_NOTICE_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
MessageTemplateCode.mc_appraisal_notification, Arrays.asList(memberAppraisalDO.getRole().getRoleName(), memberAppraisalDO.getMember().getName()));
} else {
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_COMMIT_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_COMMIT_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
......@@ -1260,9 +1253,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
memberAppraisalRepository.saveAndFlush(memberAppraisalDO);
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_NOTICE_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_VALIFY_STEP2_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_NOTICE_COUNT.getCode(), memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(),
......@@ -1305,8 +1297,8 @@ public class MemberAppraisalServiceImpl implements IMemberAppraisalService {
memberAppraisalRepository.saveAndFlush(memberAppraisalDO);
// 首页统计
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_KPI.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId(), MemberKpiOperateTypeEnum.TO_BE_NOTICE_COUNT.getCode());
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_KPI.getCode(), MemberKpiOperateTypeEnum.TO_BE_NOTICE_COUNT.getCode(),
memberAppraisalDO.getMember().getId(), memberAppraisalDO.getRole().getId());
memberHistoryService.saveMemberAppraisalHistory(loginUser, memberAppraisalDO.getId(), memberAppraisalDO.getStatus(),
MemberAppraisalStatusEnum.getCodeMessage(memberAppraisalDO.getStatus()), result.getData().getOperation(), "");
......
......@@ -337,14 +337,12 @@ public class MemberCommentServiceImpl implements IMemberCommentService {
if (MemberTradeTypeEnum.BUYER.equals(memberTradeTypeEnum)) {
// 首页统计
reportFeignService.reduceReport(OperateDataSourceEnum.TRADE_PURCHASE_ORDER.getCode(),
memberOrderCommentDO.getBuyerMemberId(), memberOrderCommentDO.getBuyerRoleId(),
PurchaseOrderOperateTypeEnum.TO_BE_EVALUATE.getCode());
reportFeignService.reduceReport(OperateDataSourceEnum.TRADE_PURCHASE_ORDER.getCode(), PurchaseOrderOperateTypeEnum.TO_BE_EVALUATE.getCode(),
memberOrderCommentDO.getBuyerMemberId(), memberOrderCommentDO.getBuyerRoleId());
} else {
// 首页统计
reportFeignService.reduceReport(OperateDataSourceEnum.TRADE_SALE_ORDER.getCode(),
memberOrderCommentDO.getVendorMemberId(), memberOrderCommentDO.getVendorRoleId(),
PurchaseOrderOperateTypeEnum.TO_BE_EVALUATE.getCode());
reportFeignService.reduceReport(OperateDataSourceEnum.TRADE_SALE_ORDER.getCode(), PurchaseOrderOperateTypeEnum.TO_BE_EVALUATE.getCode(),
memberOrderCommentDO.getVendorMemberId(), memberOrderCommentDO.getVendorRoleId());
}
return Wrapper.success();
......
......@@ -506,8 +506,8 @@ public class MemberRectifyServiceImpl implements IMemberRectifyService {
memberRectifyRepository.saveAndFlush(memberRectifyDO);
// 首页统计
reportFeignService.increaseReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(),
memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode());
reportFeignService.increaseReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode(),
memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId(),
......@@ -570,8 +570,8 @@ public class MemberRectifyServiceImpl implements IMemberRectifyService {
memberRectifyRepository.delete(memberRectifyDO);
// 首页统计
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(),
memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode());
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode(),
memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId());
return Wrapper.success();
}
......@@ -627,9 +627,8 @@ public class MemberRectifyServiceImpl implements IMemberRectifyService {
}
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(),
memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode(),
memberRectifyDO.getSubMember().getId(), memberRectifyDO.getSubRole().getId(), MemberRectifyNoticeOperateTypeEnum.TO_BE_RECTIFY_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(), MemberRectifyOperateTypeEnum.TO_BE_SEND_NOTICE_COUNT.getCode(), memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId(),
OperateDataSourceEnum.MEMBER_RECTIFY_NOTICE.getCode(), MemberRectifyNoticeOperateTypeEnum.TO_BE_RECTIFY_COUNT.getCode(), memberRectifyDO.getSubMember().getId(), memberRectifyDO.getSubRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberRectifyDO.getSubMember().getId(), memberRectifyDO.getSubRole().getId(),
......@@ -676,9 +675,8 @@ public class MemberRectifyServiceImpl implements IMemberRectifyService {
memberRectifyRepository.saveAndFlush(memberRectifyDO);
// 首页统计
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(),
memberRectifyDO.getSubMember().getId(), memberRectifyDO.getSubRole().getId(), MemberRectifyNoticeOperateTypeEnum.TO_BE_RECTIFY_COUNT.getCode(),
memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId(), MemberRectifyOperateTypeEnum.TO_BE_CONFIRM_NOTICE_COUNT.getCode());
reportFeignService.reduceAndIncreaseReport(OperateDataSourceEnum.MEMBER_RECTIFY_NOTICE.getCode(), MemberRectifyNoticeOperateTypeEnum.TO_BE_RECTIFY_COUNT.getCode(), memberRectifyDO.getSubMember().getId(), memberRectifyDO.getSubRole().getId(),
OperateDataSourceEnum.MEMBER_RECTIFY.getCode(), MemberRectifyOperateTypeEnum.TO_BE_CONFIRM_NOTICE_COUNT.getCode(), memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId(),
......@@ -735,12 +733,12 @@ public class MemberRectifyServiceImpl implements IMemberRectifyService {
if (EnableDisableStatus.ENABLE.getCode().equals(agreeVO.getAgree())) {
// 首页统计
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(),
memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId(), MemberRectifyOperateTypeEnum.TO_BE_CONFIRM_NOTICE_COUNT.getCode());
reportFeignService.reduceReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(), MemberRectifyOperateTypeEnum.TO_BE_CONFIRM_NOTICE_COUNT.getCode(),
memberRectifyDO.getMember().getId(), memberRectifyDO.getRole().getId());
} else {
// 首页统计
reportFeignService.increaseReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(),
memberRectifyDO.getSubMember().getId(), memberRectifyDO.getSubRole().getId(), MemberRectifyNoticeOperateTypeEnum.TO_BE_RECTIFY_COUNT.getCode());
reportFeignService.increaseReport(OperateDataSourceEnum.MEMBER_RECTIFY.getCode(), MemberRectifyNoticeOperateTypeEnum.TO_BE_RECTIFY_COUNT.getCode(),
memberRectifyDO.getSubMember().getId(), memberRectifyDO.getSubRole().getId());
// 发送消息
messageFeignService.sendSystemMessage(memberRectifyDO.getSubMember().getId(), memberRectifyDO.getSubRole().getId(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment