From 61b23ae4bef74644d51dcce942f484a401af4c14 Mon Sep 17 00:00:00 2001 From: gcw_MV9p2JJN Date: Sat, 10 Jan 2026 17:53:41 +0800 Subject: [PATCH] 1 --- MDM/Controllers/Plant/PlantProductlinebodyController.cs | 4 ++-- MDM/Controllers/Plant/PlantWorkstationController.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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);