| 
															
																@@ -4,12 +4,15 @@ import com.iamberry.rst.core.cm.CompanyInfo; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import com.iamberry.rst.core.cm.StoreInfo; 
															 | 
															
															 | 
															
																 import com.iamberry.rst.core.cm.StoreInfo; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import com.iamberry.rst.faces.cm.CompanyInfoService; 
															 | 
															
															 | 
															
																 import com.iamberry.rst.faces.cm.CompanyInfoService; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import com.iamberry.rst.faces.cm.StoreInfoService; 
															 | 
															
															 | 
															
																 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 com.iamberry.wechat.tools.ResponseJson; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.slf4j.Logger; 
															 | 
															
															 | 
															
																 import org.slf4j.Logger; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.slf4j.LoggerFactory; 
															 | 
															
															 | 
															
																 import org.slf4j.LoggerFactory; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.springframework.beans.factory.annotation.Autowired; 
															 | 
															
															 | 
															
																 import org.springframework.beans.factory.annotation.Autowired; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.springframework.stereotype.Controller; 
															 | 
															
															 | 
															
																 import org.springframework.stereotype.Controller; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.springframework.web.bind.annotation.RequestMapping; 
															 | 
															
															 | 
															
																 import org.springframework.web.bind.annotation.RequestMapping; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+import org.springframework.web.bind.annotation.RequestParam; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import org.springframework.web.bind.annotation.ResponseBody; 
															 | 
															
															 | 
															
																 import org.springframework.web.bind.annotation.ResponseBody; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 import javax.servlet.http.HttpServletRequest; 
															 | 
															
															 | 
															
																 import javax.servlet.http.HttpServletRequest; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -29,6 +32,8 @@ public class AdminSalesChannelController { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     private CompanyInfoService companyInfoService; 
															 | 
															
															 | 
															
																     private CompanyInfoService companyInfoService; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     @Autowired 
															 | 
															
															 | 
															
																     @Autowired 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     private StoreInfoService storeInfoService; 
															 | 
															
															 | 
															
																     private StoreInfoService storeInfoService; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+    @Autowired 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+    private OrderDepartService orderDepartService; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																     /** 
															 | 
															
															 | 
															
																     /** 
															 | 
														
													
												
													
														
															| 
															 | 
															
																      * 获取店铺集合 
															 | 
															
															 | 
															
																      * 获取店铺集合 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -39,7 +44,13 @@ public class AdminSalesChannelController { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																      */ 
															 | 
															
															 | 
															
																      */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     @ResponseBody 
															 | 
															
															 | 
															
																     @ResponseBody 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     @RequestMapping(value = "/select_storeInfo") 
															 | 
															
															 | 
															
																     @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); 
															 | 
															
															 | 
															
																         storeInfo.setStoreStatus(1); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         List<StoreInfo> storeInfoList = storeInfoService.listStore(storeInfo); 
															 | 
															
															 | 
															
																         List<StoreInfo> storeInfoList = storeInfoService.listStore(storeInfo); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         ResponseJson rj = new ResponseJson(200, "查询成功", 200); 
															 | 
															
															 | 
															
																         ResponseJson rj = new ResponseJson(200, "查询成功", 200); 
															 |