| | |
| | | } |
| | | |
| | | public StaAssemblyWorkLast getWorkLast(String workId) { |
| | | if(StringUtils.isBlank(workId)){ |
| | | throw new RuntimeException("登录ID为空,请联系管理员查看并解决问题."); |
| | | } |
| | | StaAssemblyWorkLast result = assemblyWorkLastDao.selectByPrimaryKey(Long.parseLong(workId)); |
| | | if (result == null) { |
| | | return null; |
| | | throw new RuntimeException("系统中没有该条登录信息"); |
| | | //return null; |
| | | } |
| | | BaUser userInfo = getUserInfo(result.getUserId().toString()); |
| | | PltStation stationInfo = getStationInfo(result.getStationId().toString()); |
| | |
| | | //直接删除记录 |
| | | logout(result.getId().toString()); |
| | | result.setId(null); |
| | | result.setStatus(STATUS_WORK_LAST_LOGOUT); |
| | | if(userInfo == null){ |
| | | result.setUserId(null); |
| | | result.setUserName(""); |