Commit a6724141 authored by yanzg's avatar yanzg

修改实体位置

parent c8de1275
......@@ -7,10 +7,7 @@ import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
......@@ -428,6 +425,10 @@ public class StringHelper {
return null;
} else if (to != null) {
return (T) to;
} else if (cls == List.class && from instanceof List) {
return (T) from;
} else if (cls == Map.class && from instanceof Map) {
return (T) from;
} else {
if (ObjectHelper.isSub(cls, from.getClass())) {
return (T) from;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment