加入erp的相关服务
This commit is contained in:
35
src/WMS.Web.Api/Controllers/TestController.cs
Normal file
35
src/WMS.Web.Api/Controllers/TestController.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
using ERP;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceModel;
|
||||
using System.Threading.Tasks;
|
||||
using WMS.Web.Domain.IService.Public;
|
||||
|
||||
namespace WMS.Web.Api.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class TestController : ControllerBase
|
||||
{
|
||||
private readonly IErpService _erpService;
|
||||
public TestController(IErpService erpService)
|
||||
{
|
||||
this._erpService = erpService;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("hj")]
|
||||
public async Task<string> TestHJ()
|
||||
{
|
||||
var result= await this._erpService.BillQueryForPurchaseInStock();
|
||||
if (!result.IsSuccess)
|
||||
return "";
|
||||
return JsonConvert.SerializeObject(result.Data);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user