Browse Source

map转DTO修改

dev_shibei_match
zxc 5 years ago
parent
commit
53ea8c8871
  1. 3
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ConvertUtils.java

3
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/ConvertUtils.java

@ -62,6 +62,9 @@ public class ConvertUtils {
}
public static <T> T mapToEntity(Map<String, Object> map, Class<T> entity) {
if (null == map){
return null;
}
T t = null;
try {
t = entity.newInstance();

Loading…
Cancel
Save