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); }