提交代码

This commit is contained in:
hehaibing-1996
2024-04-23 08:31:37 +08:00
parent d40c3f253a
commit aaf7c17562
43 changed files with 2196 additions and 71 deletions

View File

@ -36,7 +36,8 @@ namespace WebApi.Controllers
var IPAdress = HttpContext?.Connection?.RemoteIpAddress?.ToString();
if (string.IsNullOrEmpty(IPAdress))
{
//δ<><CEB4>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8B1B8>IP<49><50>ַ TO DO <20><>¼<EFBFBD><C2BC>־δ<D6BE><CEB4>ȡ<EFBFBD><C8A1>IP
//δ<><CEB4>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8B1B8>IP<49><50>ַ
//TO DO <20><>¼<EFBFBD><C2BC>־δ<D6BE><CEB4>ȡ<EFBFBD><C8A1>IP
}
else
{

View File

@ -29,7 +29,7 @@ namespace WCS.WebApi.Controllers
public MatBaseInfoController(IMatBaseInfoService matBaseInfoService, IGenerateService generateMatInfoService)
{
_matBaseInfoService = matBaseInfoService;
_generateMatInfoService = generateMatInfoService;
_generateMatInfoService = generateMatInfoService;
}
[Route("getMatBaseInfo")]
@ -110,5 +110,17 @@ namespace WCS.WebApi.Controllers
{
return await _generateMatInfoService.generateMatInfo(request);
}
/// <summary>
/// 获取物料明细
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[Route("getMatInfo")]
[HttpPost(Name = "getMatInfo")]
public async Task<ResponseBase> getMatInfo(GetMatInfoRequest request)
{
return await _matBaseInfoService.getMatInfo(request);
}
}
}

View File

@ -80,5 +80,11 @@ namespace WCS.WebApi.Controllers
//}
}
[Route("getMatInventorySummary")]
[HttpPost(Name = "getMatInventorySummary")]
public async Task<ResponseBase> getMatInventorySummary(GetMatInventorySummaryRequest request)
{
return await _matInventoryDetailService.getMatInventorySummary(request);
}
}
}

View File

@ -0,0 +1,47 @@
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using WCS.BLL.DbModels;
using WCS.BLL.Manager;
using WCS.BLL.Services.IService;
using WCS.BLL.Services.Service;
using WCS.DAL.Db;
using WCS.Model;
using WCS.Model.ApiModel.Home;
using WCS.Model.ApiModel.SelfCheck;
namespace WCS.WebApi.Controllers
{
/// <summary>
/// 自检
/// </summary>
[ApiController]
[Route("[controller]")]
public class SelfCheckController : ControllerBase
{
public ISelfCheckService _selfCheckService { get; set; }
public SelfCheckController(ISelfCheckService selfCheckService)
{
_selfCheckService = selfCheckService;
}
[Route("startSelfCheckByShelfCode")]
[HttpPost(Name = "startSelfCheckByShelfCode")]
public async Task<ResponseBase> startSelfCheckByShelfCode(StartSelfCheckByShelfCodeRequest request)
{
try
{
return await _selfCheckService.StartSelfCheckByShelfCode(request);
}
catch (Exception ex)
{
return new ResponseBase()
{
Code = 300,
Message = "开始自检失败:" + ex.Message,
};
}
}
}
}