采购收货,销售发货业务代码提交
This commit is contained in:
39
WarehouseMgr/Tnb.WarehouseMgr/WmsSaleService.cs
Normal file
39
WarehouseMgr/Tnb.WarehouseMgr/WmsSaleService.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Core.Manager;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Dto;
|
||||
using Tnb.WarehouseMgr.Interfaces;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
{
|
||||
/// <summary>
|
||||
/// 销售发货
|
||||
/// </summary>
|
||||
public class WmsSaleService : WmsPurchaseAndSaleCommonService<WmsSaleD>
|
||||
{
|
||||
public WmsSaleService(ISqlSugarRepository<WmsPurchaseH> repo, IUserManager userManager, IWmsOutStockService wmsOutStockService)
|
||||
: base(repo, userManager, wmsOutStockService: wmsOutStockService)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<dynamic> Sale(PurchaseAndReceiveUpInput input)
|
||||
{
|
||||
return await PurchaseAndSaleUpdate(input);
|
||||
}
|
||||
|
||||
[HttpGet("id")]
|
||||
public async Task<dynamic> GetSaleDetailsByBillId(string id)
|
||||
{
|
||||
return await GetDetailsByPkId(id);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user