|
|
@@ -179,12 +179,20 @@ public class PubInquiryListController {
|
|
|
modelAndView.addObject("data", enquiryService.fingByPageInfo(pageInfo, filter, uuList).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/public/publicInquiry", "客户公共询价列表"));
|
|
|
logger.log("公共询价单", "导出Excel列表", "导出我的客户询价列表");
|
|
|
- } else if (state.equals("remind")){
|
|
|
- modelAndView.addObject("state", "推荐报价列表");
|
|
|
+ } else if (state.equals("remind")) {
|
|
|
+ modelAndView.addObject("state", "个人商机询价列表");
|
|
|
List<InquiryRemind> reminds = InquiryUtils.getRemind(pageInfo, filter, SystemSession.getUser().getUserUU(), SystemSession.getUser().getEnterprise().getUu()).getContent();
|
|
|
modelAndView.addObject("data", !CollectionUtils.isEmpty(reminds) ? reminds : new ArrayList<InquiryRemind>());
|
|
|
- modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/public/inquiryRemind", "推荐报价列表"));
|
|
|
- logger.log("公共询价单", "导出Excel列表", "导出推荐报价列表");
|
|
|
+ modelAndView.addObject("title", "个人商机询价列表");
|
|
|
+ modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/public/inquiryRemind", "个人商机询价列表"));
|
|
|
+ logger.log("公共询价单", "导出Excel列表", "导出个人商机询价列表");
|
|
|
+ } else if (state.equals("enterprise")) { // 导出企业商机
|
|
|
+ modelAndView.addObject("state", "企业商机询价列表");
|
|
|
+ List<InquiryRemind> reminds = InquiryUtils.getEngerpriseRemind(pageInfo, filter, SystemSession.getUser().getUserUU(), SystemSession.getUser().getEnterprise().getUu()).getContent();
|
|
|
+ modelAndView.addObject("data", !CollectionUtils.isEmpty(reminds) ? reminds : new ArrayList<InquiryRemind>());
|
|
|
+ modelAndView.addObject("title", "企业商机询价列表");
|
|
|
+ modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/public/inquiryRemind", "企业商机询价列表"));
|
|
|
+ logger.log("公共询价单", "导出Excel列表", "导出企业商机询价列表");
|
|
|
}
|
|
|
return modelAndView;
|
|
|
}
|