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

添加String转换Boolean值时对(是、否)的支持

Signed-off-by: 程子 <395030787@qq.com>
pull/989/head
程子 2025-03-03 08:04:15 +00:00 committed by Gitee
parent 193c256e71
commit 6e314dd3e8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 1 deletions

View File

@ -541,7 +541,7 @@ public class Convert
/** /**
* boolean<br> * boolean<br>
* Stringtruefalseyesokno1,0 <br> * Stringtruefalseyesokno10, <br>
* *
* *
* @param value * @param value
@ -570,10 +570,12 @@ public class Convert
case "yes": case "yes":
case "ok": case "ok":
case "1": case "1":
case "是":
return true; return true;
case "false": case "false":
case "no": case "no":
case "0": case "0":
case "否":
return false; return false;
default: default:
return defaultValue; return defaultValue;