From fe646416d8d46de7b896ddbf65a3ad0cd30b729b Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 15 七月 2020 16:05:56 +0800
Subject: [PATCH] 大淘客与好单库与主包剥离

---
 fanli/src/main/java/com/yeshi/fanli/controller/admin/LostOrderAdminController.java |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/admin/LostOrderAdminController.java b/fanli/src/main/java/com/yeshi/fanli/controller/admin/LostOrderAdminController.java
index 47b7793..0896b7e 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/admin/LostOrderAdminController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/admin/LostOrderAdminController.java
@@ -6,6 +6,7 @@
 
 import javax.annotation.Resource;
 
+import com.yeshi.fanli.entity.accept.AdminAcceptData;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.yeshi.utils.JsonUtil;
@@ -36,8 +37,8 @@
 	 * @param out
 	 */
 	@RequestMapping("query")
-	public void query(String callback, Integer pageIndex, Integer pageSize, String key, Integer state, 
-			Integer handleType, Integer type, PrintWriter out) {
+	public void query(AdminAcceptData acceptData, String callback, Integer pageIndex, Integer pageSize, String key, Integer state,
+					  Integer handleType, Integer type, PrintWriter out) {
 		
 		if (pageIndex == null || pageIndex < 0){
 			pageIndex = 1;
@@ -49,7 +50,7 @@
 		
 		try {
 			
-			List<LostOrder> list = lostOrderService.listQuery((pageIndex - 1) * pageSize, pageSize, key, state, handleType, type);
+			List<LostOrder> list = lostOrderService.listQuery((pageIndex - 1) * pageSize, pageSize, key, state, handleType, type,acceptData.getSystem());
 			if (list == null || list.size() == 0) {
 				JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("鏆傛棤鏇村鏁版嵁"));
 				return;
@@ -98,7 +99,7 @@
 				}
 			}
 			
-			long count = lostOrderService.countQuery(key, state, handleType, type);
+			long count = lostOrderService.countQuery(key, state, handleType, type,acceptData.getSystem());
 			int totalPage = (int) (count % pageSize == 0 ? count / pageSize : count / pageSize + 1);
 			PageEntity pe = new PageEntity(pageIndex, pageSize, count, totalPage);
 			
@@ -126,7 +127,7 @@
 	 * @param out
 	 */
 	@RequestMapping("passOrder")
-	public void passOrder(String callback, Long id, PrintWriter out) {
+	public void passOrder(AdminAcceptData acceptData,String callback, Long id, PrintWriter out) {
 		
 		if (id == null) {
 			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("ID涓嶈兘涓虹┖"));
@@ -164,7 +165,7 @@
 	 * @param out
 	 */
 	@RequestMapping("rejectOrder")
-	public void rejectOrder(String callback, Long id, String reason, PrintWriter out) {
+	public void rejectOrder(AdminAcceptData acceptData,String callback, Long id, String reason, PrintWriter out) {
 		if (id == null) {
 			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("ID涓嶈兘涓虹┖"));
 			return;

--
Gitblit v1.8.0