kazelee
4 天以前 63e94e068622d4ef843cee0d19d4f2d231316304
wms/SYSHelper.cs
@@ -9,6 +9,9 @@
using System.Threading.Tasks;
namespace HH.WCS.Mobox3.DSZSH.wms {
    /// <summary>
    /// [ 序列号生成 ] 帮助类
    /// </summary>
    internal class SYSHelper {
        private static object locker = new object();
        internal static int GetSerialNumber(string snType, string prefix) {
@@ -33,7 +36,7 @@
                else {
                    //插入表
                    sId = new OI_SYS_MAXID { CN_S_TYPE = snType, CN_S_PRE = prefix, CN_N_MAX = 1 };
                    result = db.Insertable<OI_SYS_MAXID>(sId).ExecuteCommand() > 0 ? 1 : 0;
                    result = db.Insertable(sId).ExecuteCommand() > 0 ? 1 : 0;
                }
            }