kazelee
2 天以前 e79700d34620c495667b7b8e7b852f23ed7d7e4e
api/DebugController.cs
@@ -261,9 +261,9 @@
                endLoc.N_CURRENT_NUM = 1;
                using (var tran = db.Ado.UseTran()) {
                    if (db.Updateable<TN_Location>(startLoc).ExecuteCommand() <= 0 &&
                        db.Updateable<TN_Location>(endLoc).ExecuteCommand() <= 0 &&
                        db.Updateable<TN_Loc_Container>(locCntrRel).ExecuteCommand() <= 0) {
                    if (db.Updateable(startLoc).ExecuteCommand() <= 0 &&
                        db.Updateable(endLoc).ExecuteCommand() <= 0 &&
                        db.Updateable(locCntrRel).ExecuteCommand() <= 0) {
                        
                        tran.RollbackTran();
                        return "数据库操作失败!";