修改了用户注册和用户的实体类
This commit is contained in:
parent
1609ffb6f6
commit
a71146fa73
@ -71,6 +71,11 @@ public class SysUserEntity implements Serializable {
|
||||
@Column(columnDefinition = "varchar(64)")
|
||||
private String lastEntryIp;
|
||||
|
||||
/**
|
||||
* 账号的使用天数
|
||||
*/
|
||||
private Integer dayNum;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
@ -183,6 +188,14 @@ public class SysUserEntity implements Serializable {
|
||||
this.lastEntryIp = lastEntryIp;
|
||||
}
|
||||
|
||||
public Integer getDayNum() {
|
||||
return dayNum;
|
||||
}
|
||||
|
||||
public void setDayNum(Integer dayNum) {
|
||||
this.dayNum = dayNum;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SysUserEntity{" +
|
||||
@ -200,6 +213,7 @@ public class SysUserEntity implements Serializable {
|
||||
", lastEntryTime=" + lastEntryTime +
|
||||
", deleteFlag=" + deleteFlag +
|
||||
", lastEntryIp='" + lastEntryIp + '\'' +
|
||||
", dayNum=" + dayNum +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
@ -74,10 +74,11 @@ public class SysUserServiceImpl implements SysUserService {
|
||||
sysUserEntity.setPassword(encry256(sysUserQo.getPassword() + salt));
|
||||
sysUserEntity.setTelephone(sysUserQo.getUserName());
|
||||
sysUserEntity.setUserDepartment(sysUserQo.getUserDepartment());
|
||||
sysUserEntity.setActiveFlag(1);
|
||||
sysUserEntity.setActiveFlag(0);
|
||||
sysUserEntity.setStatusCode(0);
|
||||
sysUserEntity.setAddTime(getNowTime());
|
||||
sysUserEntity.setDeleteFlag(0);
|
||||
sysUserEntity.setDayNum(7);
|
||||
|
||||
sysUserDao.save(sysUserEntity);
|
||||
|
||||
|
@ -99,7 +99,7 @@ public class AddressUtils {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String latAndLng = getLatAndLng("36.8685", "116.6510");
|
||||
String latAndLng = getLatAndLng("36.677841", "119.12423");
|
||||
System.out.println(latAndLng);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user