fix 调整时段码结构

This commit is contained in:
2024-07-19 16:10:38 +08:00
parent c7c1bf1ec8
commit a48e34f999
25 changed files with 217 additions and 233 deletions

View File

@@ -262,6 +262,10 @@ public class GainfoFaceService : IGainfoFaceService
Face = request.Face
};
face.CreatedBy = _currentUser.GetIntSubjectId();
face.CreateTime = DateTime.Now;
face.ModifiedBy = _currentUser.GetIntSubjectId();
face.ModifiedTime = DateTime.Now;
await _faceDbContext.InsertAsync(face);
}
else
@@ -271,7 +275,9 @@ public class GainfoFaceService : IGainfoFaceService
_logger.LogWarning("相同的人脸照片更新忽略");
return;
}
face.ModifiedBy = _currentUser.GetIntSubjectId();
face.ModifiedTime = DateTime.Now;
face.Face = request.Face;
await _faceDbContext.UpdateAsync(face);
}