2 Achegas 947f492b94 ... 18412dc36c

Autor SHA1 Mensaxe Data
  wangshan 18412dc36c Merge branch 'feature/v1.0.1' of https://jygit.jydev.jianyu360.cn/jianyu/jyOrderManager into feature/v1.0.1 hai 9 horas
  wangshan 8642e31329 CBS流水状态更新 hai 9 horas
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      internal/logic/order/deposit.go

+ 6 - 1
internal/logic/order/deposit.go

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