weaver-hrm-salary/src/com/engine/salary/cmd/datacollection/OtherDeductionExportCmd.java

35 lines
1.1 KiB
Java

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<XSSFWorkbook> {
public OtherDeductionExportCmd(Map<String, Object> 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;
}
}