|
|
@@ -136,12 +136,14 @@ public class VendorController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/customer/xls", method = RequestMethod.GET)
|
|
|
- public ModelAndView exportVendors() {
|
|
|
+ public ModelAndView exportVendors(PageParams params, String keyword) {
|
|
|
+ params.setCount(SearchConstants.TOP_NUM);
|
|
|
+ params.setPage(1);
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
- pageInfo.sorting("myEnUU", Direction.ASC);
|
|
|
- pageInfo.filter("vendEnUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- map.put("data", vendorService.findAllByPageInfo(pageInfo).getContent());
|
|
|
+// PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
+// pageInfo.sorting("myEnUU", Direction.ASC);
|
|
|
+// pageInfo.filter("vendEnUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
+ map.put("data", getCustomers(params, keyword).getContent());
|
|
|
return new ModelAndView(new JxlsExcelView("classpath:jxls-tpl/Customer", "客户列表"), map);
|
|
|
}
|
|
|
|