|
@@ -120,6 +120,11 @@ func SaveDepositPayment(ctx context.Context, sDepositPayment model.SDepositPayme
|
|
if money != realPrice {
|
|
if money != realPrice {
|
|
return errors.New("新增保证金失败,保证金金额不符合")
|
|
return errors.New("新增保证金失败,保证金金额不符合")
|
|
}
|
|
}
|
|
|
|
+ sDepositPayment.BankFlow = gconv.String(transactionData.Map()["BNKFLW"])
|
|
|
|
+ sDepositPayment.BankName = gconv.String(transactionData.Map()["BNKNAM"])
|
|
|
|
+ sDepositPayment.Remark = gconv.String(transactionData.Map()["NUSAGE"])
|
|
|
|
+ sDepositPayment.PayTime = gconv.String(transactionData.Map()["BNKTIM"])
|
|
|
|
+ sDepositPayment.PayAccountName = gconv.String(transactionData.Map()["ACTNAM"])
|
|
} else {
|
|
} else {
|
|
if sDepositPayment.FlowMoney != realPrice {
|
|
if sDepositPayment.FlowMoney != realPrice {
|
|
return errors.New("新增保证金失败,保证金金额不符合")
|
|
return errors.New("新增保证金失败,保证金金额不符合")
|
|
@@ -238,7 +243,7 @@ func SaveDepositPayment(ctx context.Context, sDepositPayment model.SDepositPayme
|
|
"deposit_id": strings.Join(depositId, ","),
|
|
"deposit_id": strings.Join(depositId, ","),
|
|
"ISRELATION": 3,
|
|
"ISRELATION": 3,
|
|
}
|
|
}
|
|
- _, err := g.DB("cbs").Ctx(ctx).Update(ctx, "transaction", updateTransactionData, map[string]interface{}{"id": transactionMap["id"]})
|
|
|
|
|
|
+ _, err := g.DB("cbs").Ctx(ctx).Update(ctx, "transaction", updateTransactionData, map[string]interface{}{"id": sDepositPayment.TransactionId})
|
|
if err != nil {
|
|
if err != nil {
|
|
return err
|
|
return err
|
|
|
|
|