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

35 lines
1.1 KiB
Java
Raw Normal View History

2022-03-03 14:52:50 +08:00
package com.engine.salary.cmd.datacollection;
import com.engine.common.biz.AbstractCommonCommand;
import com.engine.common.entity.BizLogContext;
import com.engine.core.interceptor.CommandContext;
2022-03-04 10:10:38 +08:00
import com.engine.salary.biz.AddUpDeductionBiz;
import com.engine.salary.entity.datacollection.param.AddUpDeductionQueryParam;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
2022-03-03 14:52:50 +08:00
import weaver.hrm.User;
import java.util.Map;
2022-03-04 10:10:38 +08:00
public class AddUpDeductionExportCmd extends AbstractCommonCommand<HSSFWorkbook> {
2022-03-03 14:52:50 +08:00
public AddUpDeductionExportCmd(Map<String, Object> params, User user) {
this.user = user;
this.params = params;
}
@Override
public BizLogContext getLogContext() {
return null;
}
@Override
2022-03-04 10:10:38 +08:00
public HSSFWorkbook execute(CommandContext commandContext) {
AddUpDeductionQueryParam addUpDeductionQueryParam = (AddUpDeductionQueryParam) params.get("addUpDeductionQueryParam");
2022-03-03 14:52:50 +08:00
2022-03-04 10:10:38 +08:00
AddUpDeductionBiz addUpDeductionBiz = new AddUpDeductionBiz();
HSSFWorkbook workbook = addUpDeductionBiz.export(addUpDeductionQueryParam);
2022-03-03 14:52:50 +08:00
2022-03-04 10:10:38 +08:00
return workbook;
2022-03-03 14:52:50 +08:00
}
}