提交代码

This commit is contained in:
hehaibing-1996
2024-04-19 08:47:45 +08:00
parent e89b64ea3a
commit d40c3f253a
46 changed files with 2500 additions and 57 deletions

View File

@ -24,9 +24,12 @@ namespace WCS.WebApi.Controllers
{
public IMatBaseInfoService _matBaseInfoService { get; set; }
public MatBaseInfoController(IMatBaseInfoService matBaseInfoService)
public IGenerateService _generateMatInfoService { get; set; }
public MatBaseInfoController(IMatBaseInfoService matBaseInfoService, IGenerateService generateMatInfoService)
{
_matBaseInfoService = matBaseInfoService;
_generateMatInfoService = generateMatInfoService;
}
[Route("getMatBaseInfo")]
@ -100,5 +103,12 @@ namespace WCS.WebApi.Controllers
{
return await _matBaseInfoService.getMatCodeList(request);
}
[HttpPost("generateMatInfo")]
public async Task<ResponseCommon<List<MatInfo>>> generateMatInfo(GenerateMatInfoRequest request)
{
return await _generateMatInfoService.generateMatInfo(request);
}
}
}