package com.engine.salary.cmd.datacollection; import com.engine.common.biz.AbstractCommonCommand; import com.engine.common.entity.BizLogContext; import com.engine.core.interceptor.CommandContext; import com.engine.salary.biz.OtherDeductionBiz; import com.engine.salary.entity.datacollection.param.OtherDeductionQueryParam; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import weaver.hrm.User; import java.util.Map; public class OtherDeductionExportCmd extends AbstractCommonCommand { public OtherDeductionExportCmd(Map params, User user) { this.user = user; this.params = params; } @Override public BizLogContext getLogContext() { return null; } @Override public XSSFWorkbook execute(CommandContext commandContext) { OtherDeductionQueryParam OtherDeductionQueryParam = (OtherDeductionQueryParam) params.get("queryParam"); OtherDeductionBiz OtherDeductionBiz = new OtherDeductionBiz(); XSSFWorkbook workbook = OtherDeductionBiz.export(OtherDeductionQueryParam); return workbook; } }