This commit is contained in:
2025-12-04 20:47:53 +08:00
parent 21e4bfb9bd
commit 34455c007d
2 changed files with 14 additions and 9 deletions
@@ -97,14 +97,17 @@ namespace BLL
newWelder.IsOAM = welder.IsOAM;
db.SubmitChanges();
var pw = from x in db.Project_Welder
where x.WED_ID == welder.WED_ID
select x;
foreach(var w in pw)
if (!string.IsNullOrEmpty(newWelder.PhotoUrl))
{
w.ExchangeTime = DateTime.Now;
var pw = from x in db.Project_Welder
where x.WED_ID == welder.WED_ID
select x;
foreach (var w in pw)
{
w.ExchangeTime = DateTime.Now;
}
db.SubmitChanges();
}
db.SubmitChanges();