diff --git a/MDM/Controllers/Plant/PlantProductlinebodyController.cs b/MDM/Controllers/Plant/PlantProductlinebodyController.cs index cd64de6..3497a53 100644 --- a/MDM/Controllers/Plant/PlantProductlinebodyController.cs +++ b/MDM/Controllers/Plant/PlantProductlinebodyController.cs @@ -119,7 +119,7 @@ namespace MDM.Controllers.Plant /// 工厂code /// [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); diff --git a/MDM/Controllers/Plant/PlantWorkstationController.cs b/MDM/Controllers/Plant/PlantWorkstationController.cs index fb10d91..c1d55e1 100644 --- a/MDM/Controllers/Plant/PlantWorkstationController.cs +++ b/MDM/Controllers/Plant/PlantWorkstationController.cs @@ -117,7 +117,7 @@ namespace MDM.Controllers.Plant /// 工厂code /// [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);