增加焊工更新时间

This commit is contained in:
李超 2025-10-17 10:24:05 +08:00
parent 789a4ab825
commit 30661bae07
2 changed files with 6 additions and 4 deletions

View File

@ -417,10 +417,10 @@ namespace BLL.API
{ {
dateTime = DateTime.Parse(date); dateTime = DateTime.Parse(date);
} }
var q = from pw in db.Project_Welder var q = (from pw in db.Project_Welder
join w in db.HJGL_BS_Welder on pw.WED_ID equals w.WED_ID join w in db.HJGL_BS_Welder on pw.WED_ID equals w.WED_ID
where w.PhotoUrl !=null && pw.ExchangeTime > dateTime where w.PhotoUrl !=null && pw.ExchangeTime > dateTime
select w; select w).Distinct();
List<WelderItem> res = new List<WelderItem>(); List<WelderItem> res = new List<WelderItem>();
foreach (var p in q) foreach (var p in q)
@ -465,6 +465,7 @@ namespace BLL.API
item.AttachUrl = p.AttachUrl; item.AttachUrl = p.AttachUrl;
item.PhotoUrl = p.PhotoUrl; item.PhotoUrl = p.PhotoUrl;
item.IsFaceTrain = p.IsFaceTrain; item.IsFaceTrain = p.IsFaceTrain;
item.ExchangeTime = DateTime.Now;
res.Add(item); res.Add(item);
} }
respone.data = res; respone.data = res;

View File

@ -244,7 +244,7 @@ namespace Model.APIItem
public DateTime? LimitDate { get; set; } public DateTime? LimitDate { get; set; }
public DateTime? ExchangeTime { get; set; }
public string IdentityCard { get; set; } public string IdentityCard { get; set; }
@ -254,5 +254,6 @@ namespace Model.APIItem
public bool? IsFaceTrain { get; set; } public bool? IsFaceTrain { get; set; }
}
}
} }