diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/kitchen/service/impl/KitchenStaffInfoServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/kitchen/service/impl/KitchenStaffInfoServiceImpl.java index 4e23acb..df81776 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/kitchen/service/impl/KitchenStaffInfoServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/kitchen/service/impl/KitchenStaffInfoServiceImpl.java @@ -13,6 +13,7 @@ import com.bonus.canteen.core.kitchen.domain.constants.HealthCertStatusEnum; import com.bonus.canteen.core.kitchen.mapper.KitchenDeviceInfoMapper; import com.bonus.canteen.core.kitchen.mapper.KitchenStaffDevicePrivilegeMapper; import com.bonus.canteen.core.kitchen.service.IKitchenStaffDevicePrivilegeService; +import com.bonus.canteen.core.kitchen.vo.KitchenDeviceListVO; import com.bonus.canteen.core.user.domain.UserFace; import com.bonus.canteen.core.user.service.IUserFaceService; import com.bonus.common.core.exception.ServiceException; @@ -62,7 +63,7 @@ public class KitchenStaffInfoServiceImpl implements IKitchenStaffInfoService { if(CollUtil.isNotEmpty(kitchenStaffDevicePrivilegeList)) { AccessAuthority accessAuthority = new AccessAuthority(); for (KitchenStaffDevicePrivilege kitchenStaffDevicePrivilege : kitchenStaffDevicePrivilegeList) { - KitchenDeviceInfo deviceInfo = kitchenDeviceInfoMapper.selectKitchenDeviceInfoByDeviceId(kitchenStaffDevicePrivilege.getDeviceId()); + KitchenDeviceListVO deviceInfo = kitchenDeviceInfoMapper.selectKitchenDeviceInfoByDeviceId(kitchenStaffDevicePrivilege.getDeviceId()); if(Objects.nonNull(deviceInfo)) { accessAuthority.setDeviceName(deviceInfo.getDeviceName()); accessAuthority.setLocation(deviceInfo.getSubPlace());