kazelee
5 小时以前 2d3ee03961d6cfbde70342e8a97bc7b05d0b0dc3
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;
                }
            }