getWorkLast change null to error
| | |
| | | int insertSelective(StaDeviceLifeLast record); |
| | | |
| | | StaDeviceLifeLast selectByPrimaryKey(Long id); |
| | | |
| | | List<StaDeviceLifeLast> selectByDeviceNo(String deviceNo); |
| | | |
| | | int updateByPrimaryKeySelective(StaDeviceLifeLast record); |
| | |
| | | public StaAssemblyWorkLast getWorkLast(String workId) { |
| | | 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()); |