|
|
@@ -24,6 +24,7 @@ import org.apache.commons.beanutils.BeanUtils;
|
|
|
import org.apache.commons.collections4.map.HashedMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
@@ -68,6 +69,8 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
private AsyncUtils asyncUtils;
|
|
|
@Autowired
|
|
|
private FinanceCountMapper financeCountMapper;
|
|
|
+ @Value(value = "${upload.path}")
|
|
|
+ private final String uploadPath = null;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1011,7 +1014,7 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
list2.add(out2);
|
|
|
}
|
|
|
NewExcelUtil<outPaymentListFinance> excelUtil=new NewExcelUtil<>(outPaymentListFinance.class);
|
|
|
- return excelUtil.exportExcel(list2, "财务成本列表");
|
|
|
+ return excelUtil.exportExcel(list2, "财务成本列表",uploadPath);
|
|
|
}else {
|
|
|
List<outPaymentListPatent> list3=new ArrayList<outPaymentListPatent>();
|
|
|
for (outPaymentList out : list) {
|
|
|
@@ -1036,7 +1039,7 @@ public class ThirdPartyCompanyServiceImpl extends BaseMybatisDao<ThirdPartyComp
|
|
|
list3.add(out3);
|
|
|
}
|
|
|
NewExcelUtil<outPaymentListPatent> p=new NewExcelUtil<>(outPaymentListPatent.class);
|
|
|
- return p.exportExcel(list3, "专利成本列表");
|
|
|
+ return p.exportExcel(list3, "专利成本列表",uploadPath);
|
|
|
}
|
|
|
}
|
|
|
|