|
@@ -1586,7 +1586,7 @@ namespace OASystem.API.Controllers
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- var res = await _airTicketResRep.SoftDeleteByIdAsync<Grp_DecreasePayments>(dto.Id.ToString(), dto.DeleteUserId);
|
|
|
|
|
|
+ var res = await _decreasePaymentsRep.SoftDeleteByIdAsync<Grp_DecreasePayments>(dto.Id.ToString(), dto.DeleteUserId);
|
|
if (!res)
|
|
if (!res)
|
|
{
|
|
{
|
|
return Ok(JsonView(false, "删除失败"));
|
|
return Ok(JsonView(false, "删除失败"));
|
|
@@ -1684,7 +1684,7 @@ namespace OASystem.API.Controllers
|
|
string filePath = fileDir+ dto.fileName;
|
|
string filePath = fileDir+ dto.fileName;
|
|
// 删除该文件
|
|
// 删除该文件
|
|
System.IO.File.Delete(filePath);
|
|
System.IO.File.Delete(filePath);
|
|
- int id= await _sqlSugar.Updateable<Grp_DecreasePayments>().Where(a => a.Id == dto.Id).SetColumns(a => new Grp_DecreasePayments {FilePath="" }).ExecuteCommandAsync();
|
|
|
|
|
|
+ int id= await _sqlSugar.Updateable<Grp_DecreasePayments>().Where(a => a.Id == dto.Id).SetColumns(a => new Grp_DecreasePayments {FilePath="" }).ExecuteCommandAsync();
|
|
if (id!=0)
|
|
if (id!=0)
|
|
{
|
|
{
|
|
return Ok(JsonView(true, "成功!"));
|
|
return Ok(JsonView(true, "成功!"));
|