Skip to content

Commit d483285

Browse files
author
Dreampie
committed
jfinal-demo change version and update order detail
1 parent b7054ed commit d483285

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/cn/dreampie/function/user/model/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public String getRoleChildrenIdsStr() {
114114

115115
public Branch getBranch() {
116116
if (this.get("branch") == null)
117-
this.set("branch", Branch.dao.findById(getBranchId()));
117+
this.put("branch", Branch.dao.findById(getBranchId()));
118118
return this.get("branch");
119119
}
120120

src/main/webapp/view/app/user/center.ftl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<label for="username" class="col-sm-2 control-label">用 户 名:</label>
1313

1414
<div class="col-sm-8">
15-
${(user.full_name)!}(${(user.username)!})
15+
${(user.full_name)!}(${(user.username)!})<br>
16+
${(user.branch.name)!}(${(user.phone)!})
1617
</div>
1718
</div>
1819
<div class="form-group">

0 commit comments

Comments
 (0)