优化代码

This commit is contained in:
RuoYi
2024-06-05 11:53:53 +08:00
parent e8f9bfb5c6
commit 0144cb855f
4 changed files with 33 additions and 10 deletions

View File

@ -365,6 +365,10 @@ public class Convert
*/
public static String[] toStrArray(String str)
{
if (StringUtils.isEmpty(str))
{
return new String[] {};
}
return toStrArray(",", str);
}