|
@@ -1,7 +1,7 @@
|
|
|
package com.dayou.controller;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
-import com.dayou.utils.ExcelOneToManyExport;
|
|
|
+import com.dayou.utils.ExcelOneToManyExportUtils;
|
|
|
import com.dayou.vo.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -14,7 +14,6 @@ import com.dayou.common.RestResponse;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -121,10 +120,10 @@ public class FinanceRealFundController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/major/evaluator/settle/export")
|
|
|
- public void majorEvaluatorSettleExport(SettleMajorProductionVO production, HttpServletResponse response)throws IOException {
|
|
|
+ public void majorEvaluatorSettleExport(SettleMajorProductionVO production, HttpServletResponse response) throws IOException, NoSuchFieldException, IllegalAccessException {
|
|
|
List<SettleMajorProductionVO> result = financeRealFundService.majorEvaluatorSettleExport(production);
|
|
|
// exportPlus(response,"大中型评估人员结算项目",result, SettleMajorProductionVO.class);
|
|
|
- ExcelOneToManyExport.exportWithParentChild(response,result, SettleMajorProductionVO.class, SettleProInvoiceVo.class,"大中型评估人员结算项目", "invoices");
|
|
|
+ ExcelOneToManyExportUtils.exportOneToMany(response,result, SettleMajorProductionVO.class, SettleProInvoiceVo.class,"大中型评估人员结算项目", "invoices");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -145,10 +144,10 @@ public class FinanceRealFundController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/major/market/settle/export")
|
|
|
- public void majorMarketSettleExport(SettleMajorProductionVO production, HttpServletResponse response)throws IOException {
|
|
|
+ public void majorMarketSettleExport(SettleMajorProductionVO production, HttpServletResponse response) throws IOException, NoSuchFieldException, IllegalAccessException {
|
|
|
List<SettleMajorProductionVO> result = financeRealFundService.majorMarketSettleExport(production);
|
|
|
// exportPlus(response,"大中型市场人员结算项目",result, SettleMajorProductionVO.class);
|
|
|
- ExcelOneToManyExport.exportWithParentChild(response,result, SettleMajorProductionVO.class, SettleProInvoiceVo.class,"大中型市场人员结算项目", "invoices");
|
|
|
+ ExcelOneToManyExportUtils.exportOneToMany(response,result, SettleMajorProductionVO.class, SettleProInvoiceVo.class,"大中型市场人员结算项目", "invoices");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -453,10 +452,10 @@ public class FinanceRealFundController extends BaseController {
|
|
|
* @param settleVO vo
|
|
|
*/
|
|
|
@GetMapping("/assets/market/settle/export")
|
|
|
- public void assetsMarketSettleExport(SettleAssetsProductionVO settleVO, HttpServletResponse response)throws IOException {
|
|
|
+ public void assetsMarketSettleExport(SettleAssetsProductionVO settleVO, HttpServletResponse response) throws IOException, NoSuchFieldException, IllegalAccessException {
|
|
|
List<SettleAssetsProductionVO> result = financeRealFundService.assetsMarketSettleExport(settleVO);
|
|
|
// exportPlus(response,"资产市场人员结算项目",result, SettleAssetsProductionVO.class);
|
|
|
- ExcelOneToManyExport.exportWithParentChild(response,result, SettleAssetsProductionVO.class, SettleProInvoiceVo.class,"资产市场人员结算项目", "invoices");
|
|
|
+ ExcelOneToManyExportUtils.exportOneToMany(response,result, SettleAssetsProductionVO.class, SettleProInvoiceVo.class,"资产市场人员结算项目", "invoices");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -476,10 +475,10 @@ public class FinanceRealFundController extends BaseController {
|
|
|
* @param settleVO vo
|
|
|
*/
|
|
|
@GetMapping("/assets/evaluator/settle/export")
|
|
|
- public void assetsEvaluatorSettleExport(SettleAssetsProductionVO settleVO, HttpServletResponse response)throws IOException {
|
|
|
+ public void assetsEvaluatorSettleExport(SettleAssetsProductionVO settleVO, HttpServletResponse response) throws IOException, NoSuchFieldException, IllegalAccessException {
|
|
|
List<SettleAssetsProductionVO> result = financeRealFundService.assetsEvaluatorSettleExport(settleVO);
|
|
|
// exportPlus(response,"资产评估人员结算项目",result, SettleAssetsProductionVO.class);
|
|
|
- ExcelOneToManyExport.exportWithParentChild(response,result, SettleAssetsProductionVO.class, SettleProInvoiceVo.class,"资产评估人员结算项目", "invoices");
|
|
|
+ ExcelOneToManyExportUtils.exportOneToMany(response,result, SettleAssetsProductionVO.class, SettleProInvoiceVo.class,"资产评估人员结算项目", "invoices");
|
|
|
}
|
|
|
}
|
|
|
|