修改了用户注册和用户的实体类

This commit is contained in:
DESKTOP-4U0TDEF\20371 2021-07-14 09:23:53 +08:00
parent 1609ffb6f6
commit a71146fa73
3 changed files with 17 additions and 2 deletions

View File

@ -71,6 +71,11 @@ public class SysUserEntity implements Serializable {
@Column(columnDefinition = "varchar(64)") @Column(columnDefinition = "varchar(64)")
private String lastEntryIp; private String lastEntryIp;
/**
* 账号的使用天数
*/
private Integer dayNum;
public Integer getId() { public Integer getId() {
return id; return id;
} }
@ -183,6 +188,14 @@ public class SysUserEntity implements Serializable {
this.lastEntryIp = lastEntryIp; this.lastEntryIp = lastEntryIp;
} }
public Integer getDayNum() {
return dayNum;
}
public void setDayNum(Integer dayNum) {
this.dayNum = dayNum;
}
@Override @Override
public String toString() { public String toString() {
return "SysUserEntity{" + return "SysUserEntity{" +
@ -200,6 +213,7 @@ public class SysUserEntity implements Serializable {
", lastEntryTime=" + lastEntryTime + ", lastEntryTime=" + lastEntryTime +
", deleteFlag=" + deleteFlag + ", deleteFlag=" + deleteFlag +
", lastEntryIp='" + lastEntryIp + '\'' + ", lastEntryIp='" + lastEntryIp + '\'' +
", dayNum=" + dayNum +
'}'; '}';
} }
} }

View File

@ -74,10 +74,11 @@ public class SysUserServiceImpl implements SysUserService {
sysUserEntity.setPassword(encry256(sysUserQo.getPassword() + salt)); sysUserEntity.setPassword(encry256(sysUserQo.getPassword() + salt));
sysUserEntity.setTelephone(sysUserQo.getUserName()); sysUserEntity.setTelephone(sysUserQo.getUserName());
sysUserEntity.setUserDepartment(sysUserQo.getUserDepartment()); sysUserEntity.setUserDepartment(sysUserQo.getUserDepartment());
sysUserEntity.setActiveFlag(1); sysUserEntity.setActiveFlag(0);
sysUserEntity.setStatusCode(0); sysUserEntity.setStatusCode(0);
sysUserEntity.setAddTime(getNowTime()); sysUserEntity.setAddTime(getNowTime());
sysUserEntity.setDeleteFlag(0); sysUserEntity.setDeleteFlag(0);
sysUserEntity.setDayNum(7);
sysUserDao.save(sysUserEntity); sysUserDao.save(sysUserEntity);

View File

@ -99,7 +99,7 @@ public class AddressUtils {
} }
public static void main(String[] args) { public static void main(String[] args) {
String latAndLng = getLatAndLng("36.8685", "116.6510"); String latAndLng = getLatAndLng("36.677841", "119.12423");
System.out.println(latAndLng); System.out.println(latAndLng);
} }
} }