11
啊鑫
2025-03-01 03c89cb192a63a5d6b4725e68c90a7e4c92e074e
StandardPda/MES.Service/service/BasicData/MesSupplierManager.cs
@@ -69,7 +69,7 @@
        // 提取所有需要的 MesId 组合 
        var ids = supplierId.Select(customer => customer.Id.ToString())
            .ToList();
        // 使用这些 MesId 去查询 MesLinkU9 表,找到对应的 U9Id
        var u9Ids = Db.Queryable<MesLinkU9>()
            .Where(u =>
@@ -200,8 +200,9 @@
    private bool InsertOrUpdate(SqlSugarScope db, List<MesSupplier> entity)
    {
        DeleteSupplier(entity);
        var insert = db.Insertable(entity).ExecuteCommand();
        var insert = db.Insertable(entity).PageSize(1).IgnoreColumnsNull()
            .ExecuteCommand();
        return insert > 0;
    }
}