package com.kingdee.eas.custom.performancenew.handler;

import com.kingdee.shr.base.syssetting.exception.SHRWebException;
import com.kingdee.shr.base.syssetting.json.GridDataEntity;
import com.kingdee.shr.base.syssetting.web.handler.ListHandler;
import com.kingdee.ws.ca.utils.StringUtils;
import org.springframework.ui.ModelMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author qingwu
 * @date 2024/4/18
 * @apiNote 周期季度部门过滤
 */
public class AdminOrgZQJDFilterHandler extends ListHandler {
    /**
     * 周期季度评分人过滤页面所看到的部门
     *
     * @param request
     * @param response
     * @param modelMap
     */
    public void adminOrgFilter(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) {

    }

    /**
     * 周期季度评分人过滤页面所看到的部门
     * @param request
     * @param response
     * @param gridDataEntity
     * @throws SHRWebException
     */
    @Override
    protected void afterGetListData(HttpServletRequest request, HttpServletResponse response, GridDataEntity gridDataEntity) throws SHRWebException {


        List<Map<String, Object>> rows = gridDataEntity.getRows();
        List<Map<String, Object>> modifiedRows = new ArrayList<>();
        for (int i = 0; i < rows.size(); i++) {

        }
        gridDataEntity.setRows(modifiedRows);
        super.afterGetListData(request, response, gridDataEntity);
    }
}
