Browse Source

清空桶

master
yanko 11 months ago
parent
commit
f9a30db4cc
4 changed files with 45 additions and 0 deletions
  1. +19
    -0
      backend/BPA.MES.Base.Application/BPA.MES.Base.Application.xml
  2. +9
    -0
      backend/BPA.MES.Base.Application/Services/BucketInfoService/Dtos/BucketMaterialsRecordDto.cs
  3. +11
    -0
      backend/BPA.MES.Base.Application/Services/BucketInfoService/Services/BucketMaterialsRecordServcie.cs
  4. +6
    -0
      backend/BPA.MES.Base.Application/Services/BucketInfoService/Services/IBucketMaterialsRecordService.cs

+ 19
- 0
backend/BPA.MES.Base.Application/BPA.MES.Base.Application.xml View File

@@ -2440,6 +2440,11 @@
桶Id
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.BucketClearInput">
<summary>
清空桶
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.BucketMaterialsRecordOutput">
<summary>
输出
@@ -2580,6 +2585,13 @@
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.BucketMaterialsRecordServcie.Clear(BPA.MES.Base.Application.Services.BucketClearInput)">
<summary>
清空桶
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="T:BPA.MES.Base.Application.Services.IBucketInfoService">
<summary>
名 称 :
@@ -2682,6 +2694,13 @@
<param name="Id"></param>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IBucketMaterialsRecordService.Clear(BPA.MES.Base.Application.Services.BucketClearInput)">
<summary>
清空桶
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="T:BPA.MES.Base.Application.Services.CraftsInfoDto">
<summary>
名 称 :产品分组


+ 9
- 0
backend/BPA.MES.Base.Application/Services/BucketInfoService/Dtos/BucketMaterialsRecordDto.cs View File

@@ -63,6 +63,15 @@
/// </summary>
public string BucketId { get; set; }
}

/// <summary>
/// 清空桶
/// </summary>
public class BucketClearInput
{
public string BucketId { get; set; }
}

/// <summary>
/// 输出
/// </summary>


+ 11
- 0
backend/BPA.MES.Base.Application/Services/BucketInfoService/Services/BucketMaterialsRecordServcie.cs View File

@@ -99,5 +99,16 @@
var res = await _dbContext.Updateable(entity).IgnoreColumns(true).ExecuteCommandHasChangeAsync();
return res;
}
/// <summary>
/// 清空桶
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
public async Task<bool> Clear(BucketClearInput input)
{
var res = await _dbContext.Deleteable<Pztj_BucketMaterialsRecordEntity>().Where(x => x.BucketId == input.BucketId).ExecuteCommandHasChangeAsync();
return res;
}
}
}

+ 6
- 0
backend/BPA.MES.Base.Application/Services/BucketInfoService/Services/IBucketMaterialsRecordService.cs View File

@@ -39,5 +39,11 @@
/// <param name="Id"></param>
/// <returns></returns>
Task<BucketMaterialsRecordOutput> Detail(string Id);
/// <summary>
/// 清空桶
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
Task<bool> Clear(BucketClearInput input);
}
}

Loading…
Cancel
Save