|
@@ -167,7 +167,7 @@ public class EasyExcelUtils {
|
|
|
data.add(invAccountOperate.getFundUse());
|
|
data.add(invAccountOperate.getFundUse());
|
|
|
data.add(invAccountOperate.getFundFen());
|
|
data.add(invAccountOperate.getFundFen());
|
|
|
data.add(invAccountOperate.getApplyAmount());
|
|
data.add(invAccountOperate.getApplyAmount());
|
|
|
- data.add(invAccountOperate.getRevenueOutlay().equals("0")?"收入":"支出");
|
|
|
|
|
|
|
+ data.add(invAccountOperate.getRevenueOutlay().equals("0") ? "收入" : "支出");
|
|
|
invAccountProfitList.forEach(invAccountProfit -> {
|
|
invAccountProfitList.forEach(invAccountProfit -> {
|
|
|
if (invAccountOperate.getOutProfit() != null) {
|
|
if (invAccountOperate.getOutProfit() != null) {
|
|
|
for (Map.Entry<String, Object> entry : invAccountOperate.getOutProfit().entrySet()) {
|
|
for (Map.Entry<String, Object> entry : invAccountOperate.getOutProfit().entrySet()) {
|
|
@@ -176,6 +176,13 @@ public class EasyExcelUtils {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (invAccountOperate.getEntProfit() != null){
|
|
|
|
|
+ for (Map.Entry<String, Object> entry : invAccountOperate.getEntProfit().entrySet()) {
|
|
|
|
|
+ if (entry.getKey().equals(invAccountProfit.getProfitEng())) {
|
|
|
|
|
+ data.add(entry.getValue());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
list.add(data);
|
|
list.add(data);
|
|
|
});
|
|
});
|
|
@@ -216,7 +223,7 @@ public class EasyExcelUtils {
|
|
|
/**
|
|
/**
|
|
|
* 导出资金申请模板
|
|
* 导出资金申请模板
|
|
|
*/
|
|
*/
|
|
|
- public String downAccountExcel(String uploadFilePath, List<InvAccountExcel> invAccountExcel,List<InvAccountProfit> invAccountProfit) {
|
|
|
|
|
|
|
+ public String downAccountExcel(String uploadFilePath, List<InvAccountExcel> invAccountExcel, List<InvAccountProfit> invAccountProfit) {
|
|
|
// 加载模板
|
|
// 加载模板
|
|
|
String templateFile = "资金申请单模板.xlsx";
|
|
String templateFile = "资金申请单模板.xlsx";
|
|
|
List<InvAccountExcel> list = new ArrayList<>();
|
|
List<InvAccountExcel> list = new ArrayList<>();
|