智慧厨房

This commit is contained in:
gaowdong 2025-06-23 15:26:10 +08:00
parent 92b72c1e5d
commit 5c74391993
1 changed files with 4 additions and 1 deletions

View File

@ -189,7 +189,10 @@ public class KitchenStaffInfoServiceImpl implements IKitchenStaffInfoService {
@Override
public int updateKitchenStaffFaceState(KitchenStaffInfo kitchenStaffInfo) {
if(StaffFaceStateEnum.isValidFaceState(kitchenStaffInfo.getFaceState())) {
if(Objects.isNull(kitchenStaffInfo.getStaffId())) {
throw new ServiceException("员工ID不能为空");
}
if(!StaffFaceStateEnum.isValidFaceState(kitchenStaffInfo.getFaceState())) {
throw new ServiceException("无效的人脸状态");
}
return kitchenStaffFaceMapper.updateStaffFaceState(kitchenStaffInfo);