涂装数据采集
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text.RegularExpressions;
|
||||
using Infrastructure.Attribute;
|
||||
using SqlSugar;
|
||||
@@ -158,6 +159,10 @@ namespace ZR.Service.mes.wms
|
||||
CreatedTime = DateTime.Now,
|
||||
};
|
||||
int recordNum = Context.Insertable(record).ExecuteCommand();
|
||||
|
||||
Context.Ado.UseTran(() =>{
|
||||
Context.Insertable(record).ExecuteCommand();
|
||||
});
|
||||
if (recordNum == 0)
|
||||
{
|
||||
Context.Ado.RollbackTran();
|
||||
|
||||
Reference in New Issue
Block a user