|
@@ -15,6 +15,7 @@ import com.uas.platform.b2b.support.UsageBufferedLogger;
|
|
|
import com.uas.platform.core.logging.BufferedLoggerManager;
|
|
import com.uas.platform.core.logging.BufferedLoggerManager;
|
|
|
import com.uas.platform.core.model.PageInfo;
|
|
import com.uas.platform.core.model.PageInfo;
|
|
|
import com.uas.platform.core.model.PageParams;
|
|
import com.uas.platform.core.model.PageParams;
|
|
|
|
|
+import com.uas.ps.core.util.CollectionUtils;
|
|
|
import com.uas.ps.core.util.StringUtils;
|
|
import com.uas.ps.core.util.StringUtils;
|
|
|
import com.uas.search.b2b.model.SPage;
|
|
import com.uas.search.b2b.model.SPage;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -62,7 +63,7 @@ public class PubInquiryListController {
|
|
|
logger.log("公共询价单", "查看公共询价单列表");
|
|
logger.log("公共询价单", "查看公共询价单列表");
|
|
|
PageInfo pageInfo = new PageInfo(params);
|
|
PageInfo pageInfo = new PageInfo(params);
|
|
|
SearchFilter filter = JSONObject.parseObject(searchFilter, SearchFilter.class);
|
|
SearchFilter filter = JSONObject.parseObject(searchFilter, SearchFilter.class);
|
|
|
- return enquiryService.fingByPageInfo(pageInfo, filter);
|
|
|
|
|
|
|
+ return enquiryService.fingByPageInfo(pageInfo, filter, null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -165,13 +166,16 @@ public class PubInquiryListController {
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
if (StringUtils.isEmpty(state) || state.equals("all")) {
|
|
if (StringUtils.isEmpty(state) || state.equals("all")) {
|
|
|
modelAndView.addObject("state", "全部");
|
|
modelAndView.addObject("state", "全部");
|
|
|
- modelAndView.addObject("data", enquiryService.fingByPageInfo(pageInfo, filter).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", enquiryService.fingByPageInfo(pageInfo, filter, null).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/public/publicInquiry", "公共询价单列表"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/public/publicInquiry", "公共询价单列表"));
|
|
|
logger.log("公共询价单", "导出Excel列表", "导出公共询价列表(全部)");
|
|
logger.log("公共询价单", "导出Excel列表", "导出公共询价列表(全部)");
|
|
|
} else if (state.equals("customer")) {// 导出客户询价列表
|
|
} else if (state.equals("customer")) {// 导出客户询价列表
|
|
|
modelAndView.addObject("state", "我的客户询价");
|
|
modelAndView.addObject("state", "我的客户询价");
|
|
|
- filter.setDistribute(customerService.getCustomerDistribute());
|
|
|
|
|
- modelAndView.addObject("data", enquiryService.fingByPageInfo(pageInfo, filter).getContent());
|
|
|
|
|
|
|
+ List<Long> uuList = customerService.getCustomerDistribute();
|
|
|
|
|
+ if (CollectionUtils.isEmpty(uuList)) {
|
|
|
|
|
+ uuList.add(1l);
|
|
|
|
|
+ }
|
|
|
|
|
+ modelAndView.addObject("data", enquiryService.fingByPageInfo(pageInfo, filter, uuList).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/public/publicInquiry", "客户公共询价列表"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/public/publicInquiry", "客户公共询价列表"));
|
|
|
logger.log("公共询价单", "导出Excel列表", "导出我的客户询价列表");
|
|
logger.log("公共询价单", "导出Excel列表", "导出我的客户询价列表");
|
|
|
} else if (state.equals("remind")){
|
|
} else if (state.equals("remind")){
|