|
|
|
@ -96,7 +96,7 @@ public static class SqlSugarAop |
|
|
|
|
if (App.User?.ID > 0 && dyCreateBy != null && dyCreateBy.GetValue(entityInfo.EntityValue) == null) |
|
|
|
|
dyCreateBy.SetValue(entityInfo.EntityValue, (int)App.User.ID); |
|
|
|
|
|
|
|
|
|
if (dyCreateTime != null && dyCreateTime.GetValue(entityInfo.EntityValue) != null && (DateTime)dyCreateTime.GetValue(entityInfo.EntityValue) == DateTime.MinValue) |
|
|
|
|
if ((dyCreateTime != null && dyCreateTime.GetValue(entityInfo.EntityValue) is null) || (dyCreateTime != null && dyCreateTime.GetValue(entityInfo.EntityValue) != null && (DateTime)dyCreateTime.GetValue(entityInfo.EntityValue) == DateTime.MinValue)) |
|
|
|
|
dyCreateTime.SetValue(entityInfo.EntityValue, DateTime.Now); |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|