|
@@ -248,7 +248,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
C.PayPercentageOld = 0;
|
|
|
C.PayThenMoneyOld = 0;
|
|
|
C.UpdateDate = "";
|
|
|
- C.Payee = dto.Payee;
|
|
|
+ C.Payee = dto.SupplierName;
|
|
|
C.OrbitalPrivateTransfer = dto.OrbitalPrivateTransfer;
|
|
|
C.ExceedBudget = 0;
|
|
|
//C.RMBPrice = 0.00f;
|
|
@@ -298,6 +298,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
DiId = grp_Decrease.DiId,
|
|
|
SupplierArea = grp_Decrease.SupplierArea,
|
|
|
SupplierTypeId = grp_Decrease.SupplierTypeId,
|
|
|
+ SupplierName = grp_Decrease.SupplierName,
|
|
|
+ SupplierContact = grp_Decrease.SupplierContact,
|
|
|
+ SupplierContactNumber = grp_Decrease.SupplierContactNumber,
|
|
|
PriceName = grp_Decrease.PriceName,
|
|
|
Price = grp_Decrease.Price,
|
|
|
Quantity = grp_Decrease.Quantity,
|
|
@@ -346,7 +349,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
IsPay = ispay,
|
|
|
PayMoney = grp_Decrease.FeeTotal,
|
|
|
PaymentCurrency = grp_Decrease.Currency,
|
|
|
- Payee = dto.Payee,
|
|
|
+ Payee = dto.SupplierName,
|
|
|
OrbitalPrivateTransfer = dto.OrbitalPrivateTransfer,
|
|
|
DayRate = grp_CreditCardPayment.DayRate,
|
|
|
RMBPrice = grp_CreditCardPayment.RMBPrice,
|
|
@@ -466,24 +469,30 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
|
public async Task<Result> QueryDecreasePaymentsById(DecreasePaymentsByIdDto dto)
|
|
|
{
|
|
|
- Result result = new Result() { Code = -2, Msg = "程序错误" };
|
|
|
- try
|
|
|
- {
|
|
|
- Grp_DecreasePayments grp_Decrease = _sqlSugar.Queryable<Grp_DecreasePayments>().First(a => a.Id == dto.Id && a.IsDel == 0);
|
|
|
- Grp_CreditCardPayment grp_CreditCard = _sqlSugar.Queryable<Grp_CreditCardPayment>().First(a => a.CId == dto.Id && a.IsDel == 0 && a.CTable == 98);
|
|
|
- var data = new
|
|
|
- {
|
|
|
- _Decrease = grp_Decrease,
|
|
|
- _CreditCard = grp_CreditCard,
|
|
|
- };
|
|
|
- result = new Result() { Code = 0, Msg = "查询成功!", Data = data };
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
- {
|
|
|
- result = new Result() { Code = -2, Msg = "程序错误" };
|
|
|
- throw;
|
|
|
- }
|
|
|
- return result;
|
|
|
+ string sql = string.Format($@"Select
|
|
|
+ dp.Id,
|
|
|
+ dp.DiId,
|
|
|
+ dp.SupplierArea,
|
|
|
+ dp.SupplierTypeId,
|
|
|
+ dp.SupplierName,
|
|
|
+ dp.SupplierContact,
|
|
|
+ dp.SupplierContactNumber,
|
|
|
+ dp.PriceName,
|
|
|
+ dp.Price,
|
|
|
+ dp.Quantity,
|
|
|
+ dp.FeeTotal,
|
|
|
+ dp.Currency,
|
|
|
+ dp.FilePath,
|
|
|
+ dp.Remark,
|
|
|
+ ccp.PayDId,
|
|
|
+ ccp.OrbitalPrivateTransfer
|
|
|
+ From Grp_DecreasePayments dp With(NoLock)
|
|
|
+ Left Join Grp_CreditCardPayment ccp With(NoLock) On dp.Id = ccp.CId And dp.DiId = ccp.DIId And ccp.CTable = 98
|
|
|
+ Where dp.IsDel = 0 And dp.Id = {dto.Id}");
|
|
|
+
|
|
|
+ var info = await _sqlSugar.Queryable<DecreasePaymentsInfoView>(sql).FirstAsync();
|
|
|
+
|
|
|
+ return new Result() { Code = 0, Msg = "查询成功!", Data = info };
|
|
|
}
|
|
|
|
|
|
/// <summary>
|