Commit e200f4c5 authored by Ken you's avatar Ken you

update jxls excel export---Ken

parent d31ce086
......@@ -83,7 +83,7 @@ public class DataPreviewController extends BaseController {
public void downloadCFQueryData(@RequestBody CashFlowParam param, HttpServletResponse response) {
logger.debug("enter downloadCFQueryData");
String fileName="testFile";
// dataPreviewSerivceImpl.exportCashFlowList(response, param, fileName);
dataPreviewSerivceImpl.exportCashFlowList(response, param, fileName);
}
@RequestMapping(value = "exportTBData/get", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
......
/*
package pwc.taxtech.atms.service.impl;
import org.jxls.common.Context;
import org.jxls.expression.JexlExpressionEvaluator;
import org.jxls.transform.Transformer;
......@@ -82,4 +80,4 @@ public class CommonDocumentHelper {
}
}
*/
......@@ -60,6 +60,8 @@ public class DataPreviewSerivceImpl extends BaseService {
@Resource
private OrganizationMapper organizationMapper;
@Resource
private CommonDocumentHelper commonDocumentHelper;
public PageInfo<TrialBalanceDto> getTBDataForDisplay(TrialBalanceParam param) {
......@@ -123,7 +125,7 @@ public class DataPreviewSerivceImpl extends BaseService {
return pageInfo;
}
/*public HttpServletResponse exportCashFlowList(HttpServletResponse response, CashFlowParam param, String fileName) {
public HttpServletResponse exportCashFlowList(HttpServletResponse response, CashFlowParam param, String fileName) {
//Boolean isEn = StringUtils.equals(language, "en-us");
logger.debug("start export input invoice list to excel");
//String excelTemplatePathInClassPath = "/vat_excel_template/cash_flow"+(isEn?"":"_cn") + ".xlsx";
......@@ -157,7 +159,7 @@ public class DataPreviewSerivceImpl extends BaseService {
logger.error(e.getMessage());
}
return null;
}*/
}
public PageInfo<JournalEntryDto> getJEDataForDisplay(JournalEntryParam param) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment