Wms自定义定时服务代码完善
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user