调整Map通用处理工具类中数组参数拼接

pull/257/head
Ricky 2021-01-15 09:19:25 +08:00
parent 74f3bef334
commit 12d7c4168d
1 changed files with 6 additions and 2 deletions

View File

@ -33,11 +33,15 @@ public class MapDataUtil
else if (valueObj instanceof String[])
{
String[] values = (String[]) valueObj;
value = "";
for (int i = 0; i < values.length; i++)
{
value = values[i] + ",";
value += values[i] + ",";
}
if (value.length() > 0)
{
value = value.substring(0, value.length() - 1);
}
value = value.substring(0, value.length() - 1);
}
else
{