MES.Service/service/BasicData/MesStaffManager.cs
@@ -140,8 +140,7 @@ } // 批量更新员工状态的方法 private bool UpdateStaffStatusBatch(SqlSugarScope db, List<MesStaff> staffList, string status) private bool UpdateStaffStatusBatch(SqlSugarScope db,List<MesStaff> staffList, string status) { var ids = staffList.Select(it => it.Id).ToArray(); var result = db.Updateable<MesStaff>().SetColumns(s => s.FforbidStatus == status).Where(s => ids.Contains(s.Id)).ExecuteCommand();