Wms自定义定时服务代码完善

This commit is contained in:
alex
2023-08-03 15:18:00 +08:00
parent a07b3c73fc
commit adda03e0fb
9 changed files with 289 additions and 146 deletions

View File

@@ -298,9 +298,10 @@ public class MessageService : IMessageService, IDynamicApiController, ITransient
{
try
{
_repository.AsSugarClient().Insertable(receiveEntityList).ExecuteCommand();
//modify ly on 20230803 改为CopyNew模式否则多线程下会报错
_repository.AsSugarClient().CopyNew().Insertable(receiveEntityList).ExecuteCommand();
return _repository.AsInsertable(entity).IgnoreColumns(ignoreNullColumn: true).CallEntityMethod(m => m.Create()).ExecuteCommand();
return _repository.AsSugarClient().CopyNew().Insertable(entity).IgnoreColumns(ignoreNullColumn: true).CallEntityMethod(m => m.Create()).ExecuteCommand();
}
catch (Exception)
{