@ -4,6 +4,7 @@
{
public string CaptureUrl { get; set; }
public string CamName { get; set; }
public int CamType { get; set; }
public string CamIndexCode { get; set; }
public string CaptureId { get; set; }
public DateTime CaptureTime { get; set; }
@ -28,6 +28,7 @@ namespace PC.Entites
o.ToTable(nameof(ReptileCapture));
o.HasKey(o => o.Id);
o.Property(o => o.CamType).HasColumnType("int").HasColumnName("CamType");
o.Property(o => o.RegionId).HasColumnType("nvarchar(50)").HasColumnName("RegionId");
o.Property(o => o.CaptureTime).HasColumnType("datetime").HasColumnName("CaptureTime");
o.Property(o => o.CaptureUrl).HasColumnType("nvarchar(100)").HasColumnName("CaptureUrl");
@ -21,6 +21,10 @@ namespace PC.Entites
/// </summary>
/// <summary>
/// 图片类型
/// 图片Id
@ -123,7 +123,7 @@ while (true)
foreach (var data in page.Data)
await reptileCaptureRespository.NotNullAddCaptureAsync(new IReptileCaptureRespository
.CaptureDTO(data.CaptureUrl, data.CamIndexCode, data.CaptureTime, data.CaptureId));
.CaptureDTO(data.CaptureUrl, data.CamIndexCode, data.CaptureTime, data.CaptureId, data.CamType));
}
@ -13,7 +13,8 @@
string CaptureUrl,
string RegionId,
DateTime CaptureTime,
string CaptureId);
string CaptureId,
int CamType);
/// 添加图片
@ -22,6 +22,7 @@ namespace PC.Repositories
RegionId = captureDTO.RegionId,
CaptureUrl = imageURL,
CaptureId = captureDTO.CaptureId,
CamType = captureDTO.CamType
}.Create());
_oDbContext.SaveChanges();