作者 陈志颖

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

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