销售发货接口、原材料仓优化调整、日志优化
This commit is contained in:
@@ -174,7 +174,7 @@ namespace Tnb.WarehouseMgr
|
||||
public async Task<dynamic> GetYCLlocation()
|
||||
{
|
||||
List<List<LocationOutput>> LocationOutputss=new List<List<LocationOutput>>();
|
||||
var list =await _db.Queryable<BasLocation>().Where(p=> p.wh_id == "1" && p.region_id== "26125793924133"&& p.is_type == "0" && p.location_code.Length==9).OrderBy(p=>p.location_code).ToListAsync();
|
||||
var list =await _db.Queryable<BasLocation>().Where(p=> p.wh_id == "1" && p.is_type == "0" && !p.location_code.Contains("-3")).OrderBy(p=>p.location_code).ToListAsync();
|
||||
var carrys=await _db.Queryable<WmsCarryH>().ToListAsync();
|
||||
var carrycodes=await _db.Queryable<WmsCarryCode>().ToListAsync();
|
||||
var lastdata=string.Empty;
|
||||
@@ -187,7 +187,7 @@ namespace Tnb.WarehouseMgr
|
||||
LocationOutputs = new List<LocationOutput>();
|
||||
}
|
||||
LocationOutput locationOutput = new LocationOutput();
|
||||
locationOutput.location_code = data.location_code;
|
||||
locationOutput.location_code = data.location_code.Replace("YCL-", "");
|
||||
locationOutput.layers = data.layers;
|
||||
locationOutput.type = 0;
|
||||
if (carrys.Where(p => p.location_id == data.id).Any())
|
||||
@@ -200,11 +200,16 @@ namespace Tnb.WarehouseMgr
|
||||
var carrycode = carrycodes.Where(p => p.carry_id == carry.id).First();
|
||||
locationOutput.type = 2;
|
||||
locationOutput.material_code = carrycode.material_code;
|
||||
locationOutput.code_batch = carrycode.code_batch;
|
||||
locationOutput.num = carrycode.codeqty;
|
||||
}
|
||||
}
|
||||
lastdata = data.location_code;
|
||||
LocationOutputs.Add(locationOutput);
|
||||
|
||||
// 。。。。。。
|
||||
if (data.location_code == list[list.Count - 1].location_code)
|
||||
LocationOutputss.Add(LocationOutputs);
|
||||
}
|
||||
return LocationOutputss;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user