Commit b2037dc7 authored by yanzg's avatar yanzg

常规BUG的修改

parent a3e452da
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
// /** // /**
// * 座次图关联ID // * 座次图关联ID
// */ // */
// private String setPictureId; // private String setPictureId = "setPictureId";
// /** // /**
// * 座次图ID // * 座次图ID
// */ // */
// private String pictureId; // private String pictureId = "pictureId";
// //
// @Override // @Override
// public void init() { // public void init() {
...@@ -48,6 +48,10 @@ ...@@ -48,6 +48,10 @@
// } // }
// //
// public static void main(String[] args) { // public static void main(String[] args) {
// SetSetpictureVo set = new SetSetpictureVo();
// System.out.println(ObjectHelper.get(set, "setPictureId"));
// System.out.println(ObjectHelper.get(set, "pictureId"));
//
// HashMap<String, MethodField> initTypeField = ObjectHelper.getTypeField(SetSetpictureVo.class); // HashMap<String, MethodField> initTypeField = ObjectHelper.getTypeField(SetSetpictureVo.class);
// System.out.println(JsonHelper.serialize(initTypeField)); // System.out.println(JsonHelper.serialize(initTypeField));
// } // }
......
...@@ -388,7 +388,7 @@ public class ObjectHelper { ...@@ -388,7 +388,7 @@ public class ObjectHelper {
*/ */
private static MethodField getMethodField(Class<?> type, String name) { private static MethodField getMethodField(Class<?> type, String name) {
HashMap<String, MethodField> typeCache = getTypeField(type); HashMap<String, MethodField> typeCache = getTypeField(type);
name = getSimpleName(name); name = getSimpleFieldName(name);
return typeCache.containsKey(name) ? typeCache.get(name) : null; return typeCache.containsKey(name) ? typeCache.get(name) : null;
} }
......
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