Browse Source

修复测试中出现的bug20240712

dev_DY_CC
周红军 10 months ago
parent
commit
f3c1252fc2
  1. 8
      be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Jobs/IssueJobs/SparePartIssueJobsController.cs
  2. 6
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/ProductionLineItems/ProductionLineItemAppService.cs

8
be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Jobs/IssueJobs/SparePartIssueJobsController.cs

@ -52,10 +52,10 @@ public class SparePartIssueJobsController : AbpController
{ {
status.Add((int)EnumJobStatus.Open); status.Add((int)EnumJobStatus.Open);
} }
else if (jobStatus == "Wait") //else if (jobStatus == "Wait")
{ //{
status.Add((int)EnumJobStatus.Wait); // status.Add((int)EnumJobStatus.Wait);
} //}
else else
{ {
status.Add((int)EnumJobStatus.Done); status.Add((int)EnumJobStatus.Done);

6
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/ProductionLineItems/ProductionLineItemAppService.cs

@ -126,9 +126,9 @@ public class ProductionLineItemAppService :
public virtual async Task<ProductionLineItemDTO> GetByProductLineCodeAndItemCodeAsync(string productLineCode, public virtual async Task<ProductionLineItemDTO> GetByProductLineCodeAndItemCodeAsync(string productLineCode,
string itemCode) string itemCode)
{ {
var entityList = await _repository var entity = await _repository
.FindAsync(p => p.ProdLineCode == productLineCode && p.ItemCode == itemCode).ConfigureAwait(false); .FirstOrDefaultAsync(p => p.ProdLineCode == productLineCode && p.ItemCode == itemCode).ConfigureAwait(false);
return ObjectMapper.Map<ProductionLineItem, ProductionLineItemDTO>(entityList); return ObjectMapper.Map<ProductionLineItem, ProductionLineItemDTO>(entity);
} }
[HttpPost("get-by-productlinecode-and-itemcode-and-erplocationcode-async")] [HttpPost("get-by-productlinecode-and-itemcode-and-erplocationcode-async")]
public virtual async Task<List<string>> GetByProductLineCodeAndItemCodeAndErpLocationCodeAsync(List<EnumLocationType> locationType, string erpLocationCodes,string itemCode) public virtual async Task<List<string>> GetByProductLineCodeAndItemCodeAndErpLocationCodeAsync(List<EnumLocationType> locationType, string erpLocationCodes,string itemCode)

Loading…
Cancel
Save