update ruoyi-common/src/main/java/com/ruoyi/common/core/text/Convert.java.

优化Switch case
pull/385/head
np 2022-05-06 02:13:00 +00:00 committed by Gitee
parent a4be143104
commit 12d550d2b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 7 deletions

View File

@ -562,17 +562,12 @@ public class Convert
switch (valueStr)
{
case "true":
return true;
case "false":
return false;
case "yes":
return true;
case "ok":
return true;
case "no":
return false;
case "1":
return true;
case "false":
case "no":
case "0":
return false;
default: