|
@@ -58,12 +58,12 @@ public class SaleNoticeController {
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Page<PurchaseNotice> getReceivedPurchaseNotices(PageParams params, String keyword) throws UnsupportedEncodingException {
|
|
|
|
|
|
|
+ public Page<PurchaseNotice> getReceivedPurchaseNotices(PageParams params, String keyword, Long fromDate, Long endDate) throws UnsupportedEncodingException {
|
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(全部)");
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(全部)");
|
|
|
PageInfo info = new PageInfo(params);
|
|
PageInfo info = new PageInfo(params);
|
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- return purchaseNoticeService.findAllByPageInfo(info, SearchKeyUtils.decodeURL(keyword));
|
|
|
|
|
|
|
+ return purchaseNoticeService.findAllByPageInfo(info, SearchKeyUtils.decodeURL(keyword), fromDate, endDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -101,7 +101,7 @@ public class SaleNoticeController {
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(params = RequestState.TODO, method = RequestMethod.GET)
|
|
@RequestMapping(params = RequestState.TODO, method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Page<PurchaseNotice> getTodoPurchaseNotices(PageParams params, String keyword) throws UnsupportedEncodingException {
|
|
|
|
|
|
|
+ public Page<PurchaseNotice> getTodoPurchaseNotices(PageParams params, String keyword, Long fromDate, Long endDate) throws UnsupportedEncodingException {
|
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(待发货)");
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(待发货)");
|
|
|
PageInfo info = new PageInfo(params);
|
|
PageInfo info = new PageInfo(params);
|
|
|
// 送货提醒状态为待发货
|
|
// 送货提醒状态为待发货
|
|
@@ -110,7 +110,7 @@ public class SaleNoticeController {
|
|
|
info.filter("waiting", Constant.NO);
|
|
info.filter("waiting", Constant.NO);
|
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- return purchaseNoticeService.findAllByPageInfo(info, SearchKeyUtils.decodeURL(keyword));
|
|
|
|
|
|
|
+ return purchaseNoticeService.findAllByPageInfo(info, SearchKeyUtils.decodeURL(keyword), fromDate, endDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -122,14 +122,14 @@ public class SaleNoticeController {
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(params = RequestState.DONE, method = RequestMethod.GET)
|
|
@RequestMapping(params = RequestState.DONE, method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Page<PurchaseNotice> getDonePurchaseNotices(PageParams params, String keyword) throws UnsupportedEncodingException {
|
|
|
|
|
|
|
+ public Page<PurchaseNotice> getDonePurchaseNotices(PageParams params, String keyword, Long fromDate, Long endDate) throws UnsupportedEncodingException {
|
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(已发货)");
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(已发货)");
|
|
|
PageInfo info = new PageInfo(params);
|
|
PageInfo info = new PageInfo(params);
|
|
|
// 送货提醒状态为已发货
|
|
// 送货提醒状态为已发货
|
|
|
info.filter("status", Status.REPLIED.value());
|
|
info.filter("status", Status.REPLIED.value());
|
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- return purchaseNoticeService.findDoneByPageInfo(info, SearchKeyUtils.decodeURL(keyword));
|
|
|
|
|
|
|
+ return purchaseNoticeService.findDoneByPageInfo(info, SearchKeyUtils.decodeURL(keyword), fromDate, endDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -141,14 +141,14 @@ public class SaleNoticeController {
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(params = "_state=waiting", method = RequestMethod.GET)
|
|
@RequestMapping(params = "_state=waiting", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Page<PurchaseNotice> getWaitingPurchaseNotices(PageParams params, String keyword) throws UnsupportedEncodingException {
|
|
|
|
|
|
|
+ public Page<PurchaseNotice> getWaitingPurchaseNotices(PageParams params, String keyword, Long fromDate, Long endDate) throws UnsupportedEncodingException {
|
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(备料中)");
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(备料中)");
|
|
|
PageInfo info = new PageInfo(params);
|
|
PageInfo info = new PageInfo(params);
|
|
|
// 需要等待发货
|
|
// 需要等待发货
|
|
|
info.filter("waiting", Constant.YES);
|
|
info.filter("waiting", Constant.YES);
|
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- return purchaseNoticeService.findAllByPageInfo(info, SearchKeyUtils.decodeURL(keyword));
|
|
|
|
|
|
|
+ return purchaseNoticeService.findAllByPageInfo(info, SearchKeyUtils.decodeURL(keyword), fromDate, endDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -160,14 +160,14 @@ public class SaleNoticeController {
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(params = RequestState.END, method = RequestMethod.GET)
|
|
@RequestMapping(params = RequestState.END, method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Page<PurchaseNotice> getEndPurchaseNotices(PageParams params, String keyword) throws UnsupportedEncodingException {
|
|
|
|
|
|
|
+ public Page<PurchaseNotice> getEndPurchaseNotices(PageParams params, String keyword, Long fromDate, Long endDate) throws UnsupportedEncodingException {
|
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(已结案)");
|
|
logger.log("客户送货提醒", "查看收到的客户送货提醒列表(已结案)");
|
|
|
PageInfo info = new PageInfo(params);
|
|
PageInfo info = new PageInfo(params);
|
|
|
// 询价单状态为已结案
|
|
// 询价单状态为已结案
|
|
|
info.filter("end", (short) Constant.YES);
|
|
info.filter("end", (short) Constant.YES);
|
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
info.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- return purchaseNoticeService.findAllByPageInfo(info, SearchKeyUtils.decodeURL(keyword));
|
|
|
|
|
|
|
+ return purchaseNoticeService.findAllByPageInfo(info, SearchKeyUtils.decodeURL(keyword), fromDate, endDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -209,12 +209,12 @@ public class SaleNoticeController {
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/sends", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/sends", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Page<SaleSendAll> getSaleSends(PageParams params, String keyword) {
|
|
|
|
|
|
|
+ public Page<SaleSendAll> getSaleSends(PageParams params, String keyword, Long fromDate, Long endDate) {
|
|
|
logger.log("发货单", "查看全部的送货单");
|
|
logger.log("发货单", "查看全部的送货单");
|
|
|
PageInfo info = new PageInfo(params);
|
|
PageInfo info = new PageInfo(params);
|
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
- return purchaseNoticeService.findSendsByPageInfo(info, keyword);
|
|
|
|
|
|
|
+ return purchaseNoticeService.findSendsByPageInfo(info, keyword, fromDate, endDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -225,13 +225,13 @@ public class SaleNoticeController {
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/sends", params = RequestState.DONE, method = RequestMethod.GET)
|
|
@RequestMapping(value = "/sends", params = RequestState.DONE, method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Page<SaleSendAll> getReceivedSaleSends(PageParams params, String keyword) {
|
|
|
|
|
|
|
+ public Page<SaleSendAll> getReceivedSaleSends(PageParams params, String keyword, Long fromDate, Long endDate) {
|
|
|
logger.log("发货单", "查看全部的送货单");
|
|
logger.log("发货单", "查看全部的送货单");
|
|
|
PageInfo info = new PageInfo(params);
|
|
PageInfo info = new PageInfo(params);
|
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
info.filter("verifystatus", Constant.YES);
|
|
info.filter("verifystatus", Constant.YES);
|
|
|
- return purchaseNoticeService.findSendsByPageInfo(info, keyword);
|
|
|
|
|
|
|
+ return purchaseNoticeService.findSendsByPageInfo(info, keyword, fromDate, endDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -242,13 +242,13 @@ public class SaleNoticeController {
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/sends", params = RequestState.TODO, method = RequestMethod.GET)
|
|
@RequestMapping(value = "/sends", params = RequestState.TODO, method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Page<SaleSendAll> getUnReceivedSaleSends(PageParams params, String keyword) {
|
|
|
|
|
|
|
+ public Page<SaleSendAll> getUnReceivedSaleSends(PageParams params, String keyword, Long fromDate, Long endDate) {
|
|
|
logger.log("发货单", "查看全部的送货单");
|
|
logger.log("发货单", "查看全部的送货单");
|
|
|
PageInfo info = new PageInfo(params);
|
|
PageInfo info = new PageInfo(params);
|
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
// 我作为卖家,把我的企业ID作为供应商ID传入
|
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
info.filter("verifystatus", Constant.NO);
|
|
info.filter("verifystatus", Constant.NO);
|
|
|
- return purchaseNoticeService.findSendsByPageInfo(info, keyword);
|
|
|
|
|
|
|
+ return purchaseNoticeService.findSendsByPageInfo(info, keyword, fromDate, endDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -258,7 +258,7 @@ public class SaleNoticeController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/xls", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/xls", method = RequestMethod.GET)
|
|
|
- public ModelAndView exportVendors(String keyword) {
|
|
|
|
|
|
|
+ public ModelAndView exportVendors(String keyword, Long fromDate, Long endDate) {
|
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
@@ -266,7 +266,7 @@ public class SaleNoticeController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("type", "全部");
|
|
modelAndView.addObject("type", "全部");
|
|
|
- modelAndView.addObject("data", purchaseNoticeService.findAllByPageInfo(pageInfo, keyword).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", purchaseNoticeService.findAllByPageInfo(pageInfo, keyword, fromDate, endDate).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_全部"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_全部"));
|
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出全部Excel列表");
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出全部Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
@@ -279,7 +279,7 @@ public class SaleNoticeController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/xls", params = RequestState.TODO, method = RequestMethod.GET)
|
|
@RequestMapping(value = "/xls", params = RequestState.TODO, method = RequestMethod.GET)
|
|
|
- public ModelAndView exportUndoVendors(String keyword) {
|
|
|
|
|
|
|
+ public ModelAndView exportUndoVendors(String keyword, Long fromDate, Long endDate) {
|
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
@@ -289,7 +289,7 @@ public class SaleNoticeController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("type", "待发货");
|
|
modelAndView.addObject("type", "待发货");
|
|
|
- modelAndView.addObject("data", purchaseNoticeService.findAllByPageInfo(pageInfo, keyword).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", purchaseNoticeService.findAllByPageInfo(pageInfo, keyword, fromDate, endDate).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_待发货"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_待发货"));
|
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出待发货Excel列表");
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出待发货Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
@@ -302,7 +302,7 @@ public class SaleNoticeController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/xls", params = RequestState.DONE, method = RequestMethod.GET)
|
|
@RequestMapping(value = "/xls", params = RequestState.DONE, method = RequestMethod.GET)
|
|
|
- public ModelAndView exportDoneVendors(String keyword) {
|
|
|
|
|
|
|
+ public ModelAndView exportDoneVendors(String keyword, Long fromDate, Long endDate) {
|
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
@@ -312,7 +312,7 @@ public class SaleNoticeController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("type", "已发货");
|
|
modelAndView.addObject("type", "已发货");
|
|
|
- modelAndView.addObject("data", purchaseNoticeService.findDoneByPageInfo(pageInfo, keyword).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", purchaseNoticeService.findDoneByPageInfo(pageInfo, keyword, fromDate, endDate).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_已发货"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_已发货"));
|
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出已发货Excel列表");
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出已发货Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
@@ -325,7 +325,7 @@ public class SaleNoticeController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/xls", params = RequestState.END, method = RequestMethod.GET)
|
|
@RequestMapping(value = "/xls", params = RequestState.END, method = RequestMethod.GET)
|
|
|
- public ModelAndView exporEndtVendors(String keyword) {
|
|
|
|
|
|
|
+ public ModelAndView exporEndtVendors(String keyword, Long fromDate, Long endDate) {
|
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
@@ -335,7 +335,7 @@ public class SaleNoticeController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("type", "已结案");
|
|
modelAndView.addObject("type", "已结案");
|
|
|
- modelAndView.addObject("data", purchaseNoticeService.findAllByPageInfo(pageInfo, keyword).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", purchaseNoticeService.findAllByPageInfo(pageInfo, keyword, fromDate, endDate).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_已结案"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_已结案"));
|
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出已结案Excel列表");
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出已结案Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
@@ -348,7 +348,7 @@ public class SaleNoticeController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/xls", params = "_state=waiting", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/xls", params = "_state=waiting", method = RequestMethod.GET)
|
|
|
- public ModelAndView exportWaitingVendors(String keyword) {
|
|
|
|
|
|
|
+ public ModelAndView exportWaitingVendors(String keyword, Long fromDate, Long endDate) {
|
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
pageInfo.filter("vendUU", SystemSession.getUser().getEnterprise().getUu());
|
|
@@ -358,7 +358,7 @@ public class SaleNoticeController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("type", "备料中");
|
|
modelAndView.addObject("type", "备料中");
|
|
|
- modelAndView.addObject("data", purchaseNoticeService.findAllByPageInfo(pageInfo, keyword).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", purchaseNoticeService.findAllByPageInfo(pageInfo, keyword, fromDate, endDate).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_备料中"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleNotice", "客户发货提醒列表_备料中"));
|
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出备料中Excel列表");
|
|
logger.log("客户送货提醒", "导出Excel列表", "导出备料中Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
@@ -371,7 +371,7 @@ public class SaleNoticeController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/sends/xls", params = RequestState.ALL, method = RequestMethod.GET)
|
|
@RequestMapping(value = "/sends/xls", params = RequestState.ALL, method = RequestMethod.GET)
|
|
|
- public ModelAndView exportSends(String keyword) {
|
|
|
|
|
|
|
+ public ModelAndView exportSends(String keyword, Long fromDate, Long endDate) {
|
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
@@ -379,7 +379,7 @@ public class SaleNoticeController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("state", "全部");
|
|
modelAndView.addObject("state", "全部");
|
|
|
- modelAndView.addObject("data", purchaseNoticeService.findSendsByPageInfo(pageInfo, keyword).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", purchaseNoticeService.findSendsByPageInfo(pageInfo, keyword, fromDate, endDate).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleSend", "发货单列表_全部"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleSend", "发货单列表_全部"));
|
|
|
logger.log("发货单", "导出Excel列表", "导出全部Excel列表");
|
|
logger.log("发货单", "导出Excel列表", "导出全部Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
@@ -392,7 +392,7 @@ public class SaleNoticeController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/sends/xls", params = RequestState.TODO, method = RequestMethod.GET)
|
|
@RequestMapping(value = "/sends/xls", params = RequestState.TODO, method = RequestMethod.GET)
|
|
|
- public ModelAndView exportTodoSends(String keyword) {
|
|
|
|
|
|
|
+ public ModelAndView exportTodoSends(String keyword, Long fromDate, Long endDate) {
|
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
@@ -401,7 +401,7 @@ public class SaleNoticeController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("state", "未收料");
|
|
modelAndView.addObject("state", "未收料");
|
|
|
- modelAndView.addObject("data", purchaseNoticeService.findSendsByPageInfo(pageInfo, keyword).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", purchaseNoticeService.findSendsByPageInfo(pageInfo, keyword, fromDate, endDate).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleSend", "发货单列表_未收料"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleSend", "发货单列表_未收料"));
|
|
|
logger.log("发货单", "导出Excel列表", "导出未收料Excel列表");
|
|
logger.log("发货单", "导出Excel列表", "导出未收料Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
@@ -414,7 +414,7 @@ public class SaleNoticeController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/sends/xls", params = RequestState.DONE, method = RequestMethod.GET)
|
|
@RequestMapping(value = "/sends/xls", params = RequestState.DONE, method = RequestMethod.GET)
|
|
|
- public ModelAndView exportDoneSends(String keyword) {
|
|
|
|
|
|
|
+ public ModelAndView exportDoneSends(String keyword, Long fromDate, Long endDate) {
|
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
PageInfo pageInfo = new PageInfo(1, JxlsExcelView.MAX_SIZE, 0);
|
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
pageInfo.sorting("date", Direction.DESC);
|
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
pageInfo.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
@@ -423,7 +423,7 @@ public class SaleNoticeController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("state", "已收料");
|
|
modelAndView.addObject("state", "已收料");
|
|
|
- modelAndView.addObject("data", purchaseNoticeService.findSendsByPageInfo(pageInfo, keyword).getContent());
|
|
|
|
|
|
|
+ modelAndView.addObject("data", purchaseNoticeService.findSendsByPageInfo(pageInfo, keyword, fromDate, endDate).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleSend", "发货单列表_已收料"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleSend", "发货单列表_已收料"));
|
|
|
logger.log("发货单", "导出Excel列表", "导出已收料Excel列表");
|
|
logger.log("发货单", "导出Excel列表", "导出已收料Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|