作者 陈志颖

fix:修复移除兑换素币清单更新活动问题

@@ -1604,6 +1604,7 @@ func (cashPoolService *CashPoolService) RemoveExchangeCashPerson(removeExchangeC @@ -1604,6 +1604,7 @@ func (cashPoolService *CashPoolService) RemoveExchangeCashPerson(removeExchangeC
1604 1604
1605 // 获取兑换清单员工已兑换素币 1605 // 获取兑换清单员工已兑换素币
1606 personFoundExchangedSuMoney := personFound.ExchangedSuMoney 1606 personFoundExchangedSuMoney := personFound.ExchangedSuMoney
  1607 + personFoundExchangedCash := personFound.ExchangedCash
1607 1608
1608 // 获取相关兑换活动 1609 // 获取相关兑换活动
1609 activityFound, err := exchangeCashActivityRepository.FindOne(map[string]interface{}{"activityId": personFound.ExchangeCashActivityId}) 1610 activityFound, err := exchangeCashActivityRepository.FindOne(map[string]interface{}{"activityId": personFound.ExchangeCashActivityId})
@@ -1618,7 +1619,7 @@ func (cashPoolService *CashPoolService) RemoveExchangeCashPerson(removeExchangeC @@ -1618,7 +1619,7 @@ func (cashPoolService *CashPoolService) RemoveExchangeCashPerson(removeExchangeC
1618 updateExchangeCashActivityCommand := &command.UpdateExchangeCashActivityCommand{ 1619 updateExchangeCashActivityCommand := &command.UpdateExchangeCashActivityCommand{
1619 ExchangeCashActivityId: personFound.ExchangeCashActivityId, 1620 ExchangeCashActivityId: personFound.ExchangeCashActivityId,
1620 ExchangedSuMoney: activityFound.ExchangedSuMoney - personFoundExchangedSuMoney, 1621 ExchangedSuMoney: activityFound.ExchangedSuMoney - personFoundExchangedSuMoney,
1621 - ExchangedCash: activityFound.ExchangedCash - personFoundExchangedSuMoney, 1622 + ExchangedCash: activityFound.ExchangedCash - personFoundExchangedCash,
1622 Deadline: activityFound.Deadline, 1623 Deadline: activityFound.Deadline,
1623 CountDown: activityFound.CountDown, 1624 CountDown: activityFound.CountDown,
1624 ExchangeRate: activityFound.Rate, 1625 ExchangeRate: activityFound.Rate,