This commit is contained in:
gcw_MV9p2JJN 2026-01-10 17:53:41 +08:00
parent 549d100cc9
commit 61b23ae4be
2 changed files with 5 additions and 5 deletions

View File

@ -119,7 +119,7 @@ namespace MDM.Controllers.Plant
/// <param name="site_code">工厂code</param>
/// <returns></returns>
[HttpGet("get_factory_site")]
public IActionResult GetFactorySite(string site_code)
public IActionResult GetFactorySite(string? site_code)
{
var response = _PlantProductlinebodyService.GetFactorySite(site_code);
@ -129,7 +129,7 @@ namespace MDM.Controllers.Plant
//获取车间
[HttpGet("get_workshop")]
public IActionResult GetWorkShop(string site_code, string workshop_code)
public IActionResult GetWorkShop(string? site_code, string? workshop_code)
{
var response = _PlantProductlinebodyService.GetWorkShop(site_code,workshop_code);

View File

@ -117,7 +117,7 @@ namespace MDM.Controllers.Plant
/// <param name="site_code">工厂code</param>
/// <returns></returns>
[HttpGet("get_factory_site")]
public IActionResult GetFactorySite(string site_code)
public IActionResult GetFactorySite(string? site_code)
{
var response = _PlantWorkstationService.GetFactorySite(site_code);
@ -127,7 +127,7 @@ namespace MDM.Controllers.Plant
//获取车间
[HttpGet("get_workshop")]
public IActionResult GetWorkShop(string site_code,string workshop_code)
public IActionResult GetWorkShop(string? site_code,string? workshop_code)
{
var response = _PlantWorkstationService.GetWorkShop(site_code,workshop_code);
@ -136,7 +136,7 @@ namespace MDM.Controllers.Plant
//获取产线
[HttpGet("get_productlinebody")]
public IActionResult GetProductlinebody(string site_code, string workshop_code,string linecode)
public IActionResult GetProductlinebody(string? site_code, string? workshop_code,string? linecode)
{
var response = _PlantWorkstationService.GetPlantProductlinebodies(site_code, workshop_code,linecode);