| 
					
				 | 
			
			
				@@ -4,12 +4,15 @@ import com.iamberry.rst.core.cm.CompanyInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.iamberry.rst.core.cm.StoreInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.iamberry.rst.faces.cm.CompanyInfoService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.iamberry.rst.faces.cm.StoreInfoService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.iamberry.rst.faces.order.OrderDepartService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.iamberry.rst.utils.AdminUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.iamberry.wechat.tools.ResponseJson; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.slf4j.Logger; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.slf4j.LoggerFactory; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.stereotype.Controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.RequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.bind.annotation.RequestParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.ResponseBody; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javax.servlet.http.HttpServletRequest; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -29,6 +32,8 @@ public class AdminSalesChannelController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private CompanyInfoService companyInfoService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private StoreInfoService storeInfoService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private OrderDepartService orderDepartService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 获取店铺集合 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -39,7 +44,13 @@ public class AdminSalesChannelController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ResponseBody 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping(value = "/select_storeInfo") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public ResponseJson listStoreInfo(HttpServletRequest request, StoreInfo storeInfo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseJson listStoreInfo(HttpServletRequest request, StoreInfo storeInfo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                      @RequestParam(value = "isMyStore", defaultValue = "2", required = false) Integer isMyStore) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(isMyStore == 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //判断用户只能查看自己所能查询的公司的订单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Integer[] storeIds = orderDepartService.getDepartStoreIds(AdminUtils.getLoginAdminId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            storeInfo.setStoreIds(storeIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         storeInfo.setStoreStatus(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<StoreInfo> storeInfoList = storeInfoService.listStore(storeInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ResponseJson rj = new ResponseJson(200, "查询成功", 200); 
			 |