fix 下发任务数据补充

This commit is contained in:
2024-04-07 21:19:29 +08:00
parent c27639d000
commit c3749ab5fc
3 changed files with 26 additions and 12 deletions

View File

@@ -203,7 +203,7 @@ public class GainfoPermissionService : IGainfoPermissionService
.Where(x => x.No == request.UserNo)
.SingleAsync();
if (request.IsLeave)
if (gainfo == null && request.IsLeave)
{
gainfo = await _dbContext.Queryable<GainfoEntity>().AS("GainfoLeave")
.Where(x => x.No == request.UserNo)