Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
b2037dc7
Commit
b2037dc7
authored
Jun 14, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
常规BUG的修改
parent
a3e452da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
SetSetpictureVo.java
...e/src/main/java/com/yanzuoguang/util/SetSetpictureVo.java
+6
-2
ObjectHelper.java
...src/main/java/com/yanzuoguang/util/base/ObjectHelper.java
+1
-1
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/SetSetpictureVo.java
View file @
b2037dc7
...
@@ -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));
// }
// }
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/base/ObjectHelper.java
View file @
b2037dc7
...
@@ -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
=
getSimple
Field
Name
(
name
);
return
typeCache
.
containsKey
(
name
)
?
typeCache
.
get
(
name
)
:
null
;
return
typeCache
.
containsKey
(
name
)
?
typeCache
.
get
(
name
)
:
null
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment