Commit 90db84a3 by java-李谡

修改 手机号码修改后,mobile_nubmer字段不修改的问题

parent 72443cf6
...@@ -3,7 +3,7 @@ db.table.prefix=foc_ ...@@ -3,7 +3,7 @@ db.table.prefix=foc_
jdbc.type=mysql jdbc.type=mysql
jdbc.driver.class=com.mysql.jdbc.Driver jdbc.driver.class=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://106.75.97.50/jd_foc?useUnicode=true&characterEncoding=utf-8 jdbc.url=jdbc:mysql://106.75.97.50:3306/jd_foc?useUnicode=true&characterEncoding=utf-8
jdbc.username=focuser jdbc.username=focuser
jdbc.password=FOC@2016 jdbc.password=FOC@2016
......
...@@ -251,6 +251,7 @@ ...@@ -251,6 +251,7 @@
email = #{email}, email = #{email},
phone = #{phone}, phone = #{phone},
mobile = #{mobile}, mobile = #{mobile},
mobile_nubmer = #{mobileNubmer},
user_type = #{userType}, user_type = #{userType},
update_by = #{updateBy.id}, update_by = #{updateBy.id},
update_date = #{updateDate}, update_date = #{updateDate},
......
...@@ -38,6 +38,7 @@ public class User extends DataEntity<User> { ...@@ -38,6 +38,7 @@ public class User extends DataEntity<User> {
private String email; // 邮箱 private String email; // 邮箱
private String phone; // 电话 private String phone; // 电话
private String mobile; // 手机 private String mobile; // 手机
private String mobileNubmer; // 手机
private String userType;// 用户类型 private String userType;// 用户类型
private String loginIp; // 最后登陆IP private String loginIp; // 最后登陆IP
private Date loginDate; // 最后登陆日期 private Date loginDate; // 最后登陆日期
...@@ -72,9 +73,11 @@ public class User extends DataEntity<User> { ...@@ -72,9 +73,11 @@ public class User extends DataEntity<User> {
super(id); super(id);
} }
public User(String id, String loginName){ public User(String id, String loginName){
super(id); super(id);
this.loginName = loginName; this.loginName = loginName;
} }
public User(Role role){ public User(Role role){
...@@ -82,6 +85,14 @@ public class User extends DataEntity<User> { ...@@ -82,6 +85,14 @@ public class User extends DataEntity<User> {
this.role = role; this.role = role;
} }
public String getMobileNubmer() {
return mobileNubmer;
}
public void setMobileNubmer(String mobileNubmer) {
this.mobileNubmer = mobileNubmer;
}
public String getPhoto() { public String getPhoto() {
return photo; return photo;
} }
......
...@@ -179,6 +179,7 @@ public class UserController extends BaseController { ...@@ -179,6 +179,7 @@ public class UserController extends BaseController {
} }
} }
user.setRoleList(roleList); user.setRoleList(roleList);
user.setMobileNubmer(user.getMobile());
// 保存用户信息 // 保存用户信息
systemService.saveUser(user); systemService.saveUser(user);
// 清除当前用户缓存 // 清除当前用户缓存
......
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