fix change status in payment issue
parent
dada0113c4
commit
caf1bdd904
|
@ -6,8 +6,8 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<AssemblyVersion>0.17.22.36</AssemblyVersion>
|
||||
<FileVersion>0.17.22.36</FileVersion>
|
||||
<AssemblyVersion>0.17.22.37</AssemblyVersion>
|
||||
<FileVersion>0.17.22.37</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -35,6 +35,8 @@ public class SubmitOrderPaymentCommandHandler : IRequestHandler<SubmitOrderPayme
|
|||
{
|
||||
response.NeedToPayOnline = false;
|
||||
order.SetOrderPayment(request.PaymentMethod);
|
||||
_repositoryWrapper.SetRepository<Order>().Update(order);
|
||||
await _repositoryWrapper.SaveChangesAsync(cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -5,6 +5,8 @@ public class ShopSetting
|
|||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string Slogan { get; set; } = string.Empty;
|
||||
public string City { get; set; } = string.Empty;
|
||||
public string Province { get; set; } = string.Empty;
|
||||
public double LocationLat { get; set; }
|
||||
public double LocationLon { get; set; }
|
||||
public string Address { get; set; } = string.Empty;
|
||||
|
|
|
@ -40,6 +40,8 @@ public class CreateOrUpdatePaymentCommandHandler : IRequestHandler<CreateOrUpdat
|
|||
var newEnt = Payment.Create(request.FactorNumber, request.Amount, request.Description, request.TransactionCode,
|
||||
request.CardPan, request.Authority, request.Type, request.Status, request.OrderId, request.UserId);
|
||||
newEnt.Id = orderPayment.Id;
|
||||
newEnt.CreatedAt = orderPayment.CreatedAt;
|
||||
newEnt.CreatedBy = orderPayment.CreatedBy;
|
||||
|
||||
_repositoryWrapper.SetRepository<Payment>()
|
||||
.Update(newEnt);
|
||||
|
|
Loading…
Reference in New Issue