...
|
...
|
@@ -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 {
|
...
|
...
|
|