1.相关业务增加source_id和source_code
2.入库申请查询明细单增加仓库名称回传字段
This commit is contained in:
@@ -70,7 +70,12 @@ namespace Tnb.WarehouseMgr
|
||||
public async Task<dynamic> GetInStockDetailsListById([FromRoute] string billId)
|
||||
{
|
||||
var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID);
|
||||
var items = await _db.Queryable<WmsInstockD>().Where(it => it.bill_id == billId).ToListAsync();
|
||||
var items = await _db.Queryable<WmsInstockD>().LeftJoin<BasWarehouse>((a,b)=>a.warehouse_id == b.id)
|
||||
.Select((a, b) => new WmsInstockD
|
||||
{
|
||||
warehouse_name = b.whname
|
||||
},true)
|
||||
.Where(a => a.bill_id == billId).ToListAsync();
|
||||
_db.ThenMapper(items,
|
||||
it => it.line_status = dic.ContainsKey(it.line_status) ? dic[it.line_status]?.ToString()! : "");
|
||||
return items;
|
||||
|
||||
Reference in New Issue
Block a user