更新
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user