作者 陈志颖

合并分支 'dev' 到 'test'

fix:修复删除账期结算单时更新分红预算单范围错误



查看合并请求 !45
... ... @@ -458,8 +458,14 @@ func (creditAccountService *CreditAccountService) RemoveCreditAccount(removeCred
if creditAccountRemoved, err := creditAccountRepository.Remove(creditAccount); err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
} else {
// 更新相关分红预算单结算状态
// 相关分红预算单ID列表
dividendsEstimateIds := make([]int64, 0)
for _, accountDetail := range creditAccount.AccountDetail {
dividendsEstimateIds = append(dividendsEstimateIds, accountDetail.DividendsEstimateOrderId)
}
// 更新相关分红预算单结算状态
if count, dividendsEstimates, err := dividendsEstimateRepository.Find(map[string]interface{}{
"dividendsEstimateIds": dividendsEstimateIds,
}); err != nil {
... ...