This commit is contained in:
parent
9f851a1675
commit
e9a95d468a
|
|
@ -102,6 +102,7 @@ public class UpdateUserAction {
|
|||
}
|
||||
} else {
|
||||
aliyunDeviceInfo.setUserId(userId);
|
||||
aliyunDeviceInfo.setPhoneType(phoneType);
|
||||
aliyunDeviceInfo.setLastUpdateTime(new Date());
|
||||
}
|
||||
return baseService.saveOrUpdateAliyunDeviceInfo(aliyunDeviceInfo);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public class AliyunDeviceInfoServiceImpl implements AliyunDeviceInfoService {
|
|||
public AliyunDeviceInfo getAliyunDeviceInfoByUserId(Integer userId) {
|
||||
Criterion criterion = Restrictions.eq("userId", userId);
|
||||
List<AliyunDeviceInfo> deviceInfos = aliyunDeviceInfoDao.findByProperty(criterion);
|
||||
return deviceInfos.stream().findFirst().get();
|
||||
return deviceInfos.stream().findFirst().orElse(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue