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.AddUpDeductionBiz; import com.engine.salary.entity.datacollection.param.AddUpDeductionQueryParam; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import weaver.hrm.User; import java.util.Map; public class AddUpDeductionExportCmd extends AbstractCommonCommand { public AddUpDeductionExportCmd(Map params, User user) { this.user = user; this.params = params; } @Override public BizLogContext getLogContext() { return null; } @Override public XSSFWorkbook execute(CommandContext commandContext) { AddUpDeductionQueryParam addUpDeductionQueryParam = (AddUpDeductionQueryParam) params.get("addUpDeductionQueryParam"); AddUpDeductionBiz addUpDeductionBiz = new AddUpDeductionBiz(); XSSFWorkbook workbook = addUpDeductionBiz.export(addUpDeductionQueryParam); return workbook; } }