From eae52a8a707e745701992b8903be1150a1412792 Mon Sep 17 00:00:00 2001 From: wanxiaoli Date: Mon, 25 May 2026 10:23:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=97=E6=B3=95=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yfd/business/css/controller/ModelTrainController.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/business-css/src/main/java/com/yfd/business/css/controller/ModelTrainController.java b/business-css/src/main/java/com/yfd/business/css/controller/ModelTrainController.java index 86ecc5b..f56f297 100644 --- a/business-css/src/main/java/com/yfd/business/css/controller/ModelTrainController.java +++ b/business-css/src/main/java/com/yfd/business/css/controller/ModelTrainController.java @@ -101,7 +101,8 @@ public class ModelTrainController { @GetMapping("/list") public ResponseResult list(@RequestParam(defaultValue = "1") Integer current, @RequestParam(defaultValue = "10") Integer size, - @RequestParam(required = false) String algoType, + @RequestParam(value = "algorithmType", required = false) String algorithmType, + @RequestParam(value = "algoType", required = false) String algoType, @RequestParam(required = false) String deviceType, @RequestParam(required = false) String status, @RequestParam(required = false) String name) { @@ -109,8 +110,9 @@ public class ModelTrainController { Page page = new Page<>(current, size); QueryWrapper query = new QueryWrapper<>(); - if (algoType != null && !algoType.isBlank()) { - query.eq("algorithm_type", algoType); + String finalAlgorithmType = (algorithmType != null && !algorithmType.isBlank()) ? algorithmType : algoType; + if (finalAlgorithmType != null && !finalAlgorithmType.isBlank()) { + query.eq("algorithm_type", finalAlgorithmType); } if (deviceType != null && !deviceType.isBlank()) { query.eq("device_type", deviceType);