package com.kingdee.shr.customer.gtiit.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.metadata.entity.FilterInfo;
import com.kingdee.bos.sql.ParserException;
import com.kingdee.shr.base.syssetting.exception.SHRWebException;
import com.kingdee.shr.compensation.web.handler.integrate.CalSubmitCmpEmpORelationF7Handler;

public class CalSubmitCmpEmpORelationF7HandlerEx extends CalSubmitCmpEmpORelationF7Handler{

	private static Logger logger =
	        Logger.getLogger("com.kingdee.shr.customer.gtiit.handler.CalSubmitCmpEmpORelationF7HandlerEx");
	
	@Override
	protected FilterInfo getDefaultFilter(HttpServletRequest request, HttpServletResponse response)
			throws SHRWebException {
		FilterInfo defaultFilter = super.getDefaultFilter(request, response);
//		StringBuffer filter = new StringBuffer(); 
//		filter.append("person.id = (SELECT '2023-02-15' as maxdate FROM CT_MP_Pcontractinfo as Pcontractinfo where fid='CL/lLZGTTJuZylTUylzAC9hZU2A=')");
//		try {
//			FilterInfo addFilter = new FilterInfo(filter.toString());
//			defaultFilter.mergeFilter(addFilter, "and");
//			logger.error(defaultFilter.toString());
//		} catch (ParserException e) {
//			e.printStackTrace();
//			logger.error("过滤员工变动记录错误："+e.getMessage());
//		} catch (BOSException e) {
//			e.printStackTrace();
//			logger.error("过滤员工变动记录错误："+e.getMessage());
//		}
		return defaultFilter;
	}
	
}
