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