修复bug

This commit is contained in:
18942506660
2024-03-26 17:36:26 +08:00
parent 47bf5c4365
commit 6c5c5faa5a
2 changed files with 16 additions and 1 deletions

View File

@@ -143,7 +143,7 @@ namespace WMS.Web.Api.Controllers
return Result<SubscribeNotificationInfoResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
var entity = await _repositories.Get(id);
if (entity == null) Result<SubscribeNotificationInfoResponse>.ReFailure(ResultCodes.SubscribeNotificationNoData);
if (entity == null || entity.IsDelete == true) Result<SubscribeNotificationInfoResponse>.ReFailure(ResultCodes.SubscribeNotificationNoData);
return Result<SubscribeNotificationInfoResponse>.ReSuccess(_mapper.Map<SubscribeNotificationInfoResponse>(entity));
}
}