Fix daily salary duplicate scope

This commit is contained in:
hy001 2026-05-20 00:50:21 +08:00
parent a9320d58ec
commit ad73326eae

View File

@ -522,7 +522,7 @@ public class TeamSalaryPaymentListener implements MessageListener {
// 是否已经发送过代理部份工资 // 是否已经发送过代理部份工资
if (Boolean.FALSE.equals( if (Boolean.FALSE.equals(
checkRepeatPayment(teamProfile, payment, policy, memberTargetId, Boolean.FALSE))) { checkRepeatPayment(teamProfile, payment, policy, Boolean.FALSE))) {
String detailsId = IdWorkerUtils.getIdStr(); String detailsId = IdWorkerUtils.getIdStr();
@ -570,7 +570,7 @@ public class TeamSalaryPaymentListener implements MessageListener {
// 是否已经发送过该成员工资 // 是否已经发送过该成员工资
if (Boolean.FALSE.equals( if (Boolean.FALSE.equals(
checkRepeatPayment(teamProfile, payment, policy, memberTargetId, Boolean.TRUE))) { checkRepeatPayment(teamProfile, payment, policy, Boolean.TRUE))) {
String detailsId = IdWorkerUtils.getIdStr(); String detailsId = IdWorkerUtils.getIdStr();
@ -627,7 +627,7 @@ public class TeamSalaryPaymentListener implements MessageListener {
// 是否已经发送过该成员工资 // 是否已经发送过该成员工资
if (Boolean.TRUE.equals( if (Boolean.TRUE.equals(
checkRepeatPayment(teamProfile, payment, policy, memberTargetId, Boolean.TRUE))) { checkRepeatPayment(teamProfile, payment, policy, Boolean.TRUE))) {
return; return;
} }
@ -725,26 +725,16 @@ public class TeamSalaryPaymentListener implements MessageListener {
* @param teamProfile 团队 * @param teamProfile 团队
* @param payment 支付信息 * @param payment 支付信息
* @param policy 政策 * @param policy 政策
* @param memberTargetId 成员工作id * @param isPayMember 支付工资成员验证
* @param isPayMember 支付工资成员验证 * @return true 重复发送, false 允许发送
* @return true 重复发送, false 允许发送 */
*/ private Boolean checkRepeatPayment(TeamProfile teamProfile, TeamSalaryPayment payment,
private Boolean checkRepeatPayment(TeamProfile teamProfile, TeamSalaryPayment payment, TeamPolicy policy, Boolean isPayMember) {
TeamPolicy policy, String memberTargetId, Boolean isPayMember) {
return teamSalaryPaymentService
// if (Objects.equals(payment.getUserId(), 1681823277871214593L) || .checkRepeatPayment(payment.getId(), payment.getUserId(), teamProfile.getRegion(),
// Objects.equals(payment.getUserId(), 1684848110911922177L) || policy.getLevel(), isPayMember);
// Objects.equals(payment.getUserId(), 1630240619660009473L)) { }
return teamSalaryPaymentService
.checkRepeatPayment(payment.getId(), payment.getUserId(), teamProfile.getRegion(),
policy.getLevel(), memberTargetId, isPayMember);
//}
// return teamSalaryPaymentService
// .checkRepeatPayment(payment.getId(), payment.getUserId(), teamProfile.getRegion(),
// policy.getLevel(), isPayMember);
}
/** /**
* 基于当前等级获得上一个等级政策. * 基于当前等级获得上一个等级政策.