sjz
2025-07-28 f1deb7b024e17cba204de5fcb0dac15801436b90
MES.Service/service/BasicData/MesSupplierManager.cs
@@ -89,10 +89,10 @@
    private bool InsertSupplier(SqlSugarScope db, MesSupplier entity)
    {
        var exists = db.Queryable<MesSupplier>().Any(e => e.Id == entity.Id);
        var exists = db.Queryable<MesSupplier>().Any(e => e.Id == entity.Id && e.SuppNo == entity.SuppNo);
        if (exists)
        {
            var result = db.Updateable<MesSupplier>().ExecuteCommand();
            var result = db.Updateable(entity).Where(e => e.Id == entity.Id && e.SuppNo == entity.SuppNo).ExecuteCommand();
            return true;
        }
        else
@@ -111,10 +111,10 @@
    private bool InsertOrUpdate(SqlSugarScope db, MesSupplier entity)
    {
        var exists = db.Queryable<MesSupplier>().Any(e => e.Id == entity.Id);
        var exists = db.Queryable<MesSupplier>().Any(e => e.Id == entity.Id && e.SuppNo == entity.SuppNo);
        if (exists)
        {
            var update = db.Updateable(entity).ExecuteCommand();
            var update = db.Updateable(entity).Where(e => e.Id == entity.Id && e.SuppNo == entity.SuppNo).ExecuteCommand();
            return true;
        }
        else