From 9e7c46893239143c0e7db57821b3fde713de6ead Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 31 Jul 2024 16:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=94=E8=B5=9B=E4=B8=93=E5=AE=B6=E7=BC=96?= =?UTF-8?q?=E8=BE=91=20=E7=8A=B6=E6=80=81BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/demo/expert/controller/ExpertController.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java index a2423599..9d87ed29 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java @@ -268,7 +268,13 @@ public class ExpertController extends JeecgController { // 现在 Compid, CompName 和 Stat 包含了逗号分隔的值 model.setCompName(CompName); model.setCompid(Compid); - model.setStat(Stat); + if(Stat.indexOf(",")==-1){ + model.setStat(Stat); + }else{ + Stat = Stat.substring(0,Stat.indexOf(",")); + model.setStat(Stat); + } + return Result.OK(model); }