加入erp的相关服务

This commit is contained in:
tongfei
2023-10-25 15:31:26 +08:00
parent 25c09f4a0a
commit 22213af18f
16 changed files with 1827 additions and 0 deletions

View 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);
}
}
}