Browse Source

模具询价单导出问题修改

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@8502 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
dongbw 9 years ago
parent
commit
1031fb2c1f

+ 5 - 3
src/main/java/com/uas/platform/b2b/controller/SaleInquiryMouldController.java

@@ -91,7 +91,7 @@ public class SaleInquiryMouldController {
 			pageParams.getFilters().put("im_enuu", new MultiValue(list, true));
 		}
 		List<Sort> sortList = new ArrayList<>();
-		sortList.add(new Sort("im_id", false, Type.LONG, new Long(1)));
+		sortList.add(new Sort("im_id", false, Type.LONG, 1L));
 		pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
 		return searchService.searchPurcInquiryMouldIds(keyword, pageParams);
 	}
@@ -124,7 +124,7 @@ public class SaleInquiryMouldController {
 		pageParams.getFilters().put("im_overdue", Constant.NO);
 		pageParams.getFilters().put("im_valid", Constant.YES);
 		List<Sort> sortList = new ArrayList<>();
-		sortList.add(new Sort("im_id", false, Type.LONG, new Long(1)));
+		sortList.add(new Sort("im_id", false, Type.LONG, 1L));
 		pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
 		return searchService.searchPurcInquiryMouldIds(keyword, pageParams);
 	}
@@ -377,6 +377,7 @@ public class SaleInquiryMouldController {
 		// 询价单状态为未回复
 		pageInfo.filter("status", Status.NOT_REPLY.value());
 		pageInfo.filter("overdue", Constant.NO);
+		pageInfo.filter("valid", Constant.YES);
 		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy年MM月dd日");
 		ModelAndView modelAndView = new ModelAndView();
 		modelAndView.addObject("dateFormat", dateFormat);
@@ -400,6 +401,7 @@ public class SaleInquiryMouldController {
 		pageInfo.filter("venduu", SystemSession.getUser().getEnterprise().getUu());
 		// 询价单状态为已回复
 		pageInfo.filter("status", Status.REPLIED.value());
+		pageInfo.filter("valid", Constant.YES);
 		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy年MM月dd日");
 		ModelAndView modelAndView = new ModelAndView();
 		modelAndView.addObject("dateFormat", dateFormat);
@@ -447,7 +449,7 @@ public class SaleInquiryMouldController {
 		pageInfo.sorting("date", Direction.DESC);
 		pageInfo.filter("venduu", SystemSession.getUser().getEnterprise().getUu());
 		// 询价单状态为已作废
-		pageInfo.filter("status", Status.REPLIED.value());
+//		pageInfo.filter("status", Status.REPLIED.value()); // 未报价也可以作废
 		pageInfo.filter("valid", Constant.NO);
 		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy年MM月dd日");
 		ModelAndView modelAndView = new ModelAndView();