新增,出库签收接口
This commit is contained in:
44
WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs
Normal file
44
WarehouseMgr/Tnb.WarehouseMgr/WmsSignForDeliveryService.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Enums;
|
||||
using JNPF.FriendlyException;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.CodeAnalysis.Operations;
|
||||
using SqlSugar;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库签收
|
||||
/// </summary>
|
||||
public class WmsSignForDeliveryService : BaseWareHouseService
|
||||
{
|
||||
private readonly ISqlSugarClient _db;
|
||||
|
||||
public WmsSignForDeliveryService(ISqlSugarRepository<WmsDistaskH> repository)
|
||||
{
|
||||
_db = repository.AsSugarClient();
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据载具ID获取,对应的执行任务记录
|
||||
/// </summary>
|
||||
/// <param name="carryId"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<dynamic> GetDisTasksByCarryId([FromRoute] string carryId)
|
||||
{
|
||||
var items = await _db.Queryable<WmsDistaskH>().Where(it => it.carry_id == carryId && it.status == WmsWareHouseConst.BILLSTATUS_COMPLETE_ID && it.is_sign == 0).ToArrayAsync();
|
||||
return items;
|
||||
}
|
||||
[HttpPost]
|
||||
public async Task SaveData()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user