111
啊鑫
2025-03-18 13b875793c17b3eb9437a8d2db65bab04f027e39
StandardPda/MES.Service/service/BasicData/MesStaffManager.cs
@@ -62,10 +62,7 @@
        MesStaff entity)
    {
        var exists = db.Queryable<SysUser>().Any(u => u.Sid == sysUser.Sid);
        if (!exists)
        {
            db.Insertable(sysUser).ExecuteCommand();
        }
        if (!exists) db.Insertable(sysUser).ExecuteCommand();
        
        db.Deleteable<MesStaff>()
            .Where(s => s.Id == entity.Id)