上传代码

master
zhiyong.ning 4 years ago
parent 41ef326915
commit 1d3a277b42
  1. 2
      src/main/java/com/yipin/liuwanr/entity/UserInfo.java
  2. 5
      src/main/java/com/yipin/liuwanr/service/UserInfoService.java

@ -99,4 +99,6 @@ public class UserInfo {
private String twoDepartmentName;
//组织架构id
private Integer organizationRelationshipId;
//登陆时间
private String dataTime;
}

@ -440,12 +440,13 @@ public class UserInfoService {
String roleId = userInfo.getRoleId();
Integer schoolId = userInfo.getSchoolId();
try {
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
String date = df.format(new Date());// new Date()为获取当前系统时间,也可使用当前时间戳
UserInfo user=userInfoMapper.logins(userInfo);
String token = user.getToken();
Integer userId = user.getUserId();
user.setDataTime(date);
obj.put("user",user);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
String date = df.format(new Date());// new Date()为获取当前系统时间,也可使用当前时间戳
if(id!=null) {
List<Staff> staffList = userInfoMapper.queryStaffAll(id,roleId,schoolId);
obj.put("staffList",staffList);

Loading…
Cancel
Save