using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HH.WCS.Mobox3.DSZSH.models;
using HH.WCS.Mobox3.DSZSH.util;
using Newtonsoft.Json;
using SqlSugar;
namespace HH.WCS.Mobox3.DSZSH.wms {
///
/// [ 数据库事务处理 ] 帮助类
///
public class DbTranHelper {
///
/// 数据库事务处理 ( 创建任务 )
///
/// [ 要求 ] obj ≠ null
/// [ 注意 ] 所有的数据库操作 , 都会在对象 = null 时选择跳过 , 且不会报错 , 除了 TaskToInsert ;
///
如果存在某个必须完成的数据库操作 , 需在调用时确保该对象 ≠ null
///
///
public static (bool, string) CreateTask(CreateTaskObj obj) {
var db = new SqlHelper