sjz
2 天以前 302054e253f1550ee64430882786ec9a3920ec92
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();