|  |  |  | @ -29,31 +29,31 @@ public class PoiStoreController extends BaseController { | 
		
	
		
			
				|  |  |  |  |     private PoiStoreService poiStoreService; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     /** | 
		
	
		
			
				|  |  |  |  |      * 根据用户id,区域id获取店铺 | 
		
	
		
			
				|  |  |  |  |      * | 
		
	
		
			
				|  |  |  |  |      * @return | 
		
	
		
			
				|  |  |  |  |      */ | 
		
	
		
			
				|  |  |  |  |     @RequestMapping(value = "/user/shop",method = RequestMethod.POST) | 
		
	
		
			
				|  |  |  |  |     @RequestMapping(value = "/user/shop", method = RequestMethod.POST) | 
		
	
		
			
				|  |  |  |  |     @ResponseBody | 
		
	
		
			
				|  |  |  |  |     public Map<String,Object> getUserShop(@RequestParam("userId")long userId, @RequestParam(value = "customerIds",required =false)String customerIds){ | 
		
	
		
			
				|  |  |  |  |     public Map<String, Object> getUserShop(@RequestParam("userId") long userId, @RequestParam(value = "customerIds", required = false) String customerIds) { | 
		
	
		
			
				|  |  |  |  |         try { | 
		
	
		
			
				|  |  |  |  |             List<Long> customers = null; | 
		
	
		
			
				|  |  |  |  |             if (StringUtils.isNotBlank(customerIds)){ | 
		
	
		
			
				|  |  |  |  |             if (StringUtils.isNotBlank(customerIds)) { | 
		
	
		
			
				|  |  |  |  |                 String[] split = customerIds.replace("[", "").replace("]", "").split(","); | 
		
	
		
			
				|  |  |  |  |                 List<String> strings = Arrays.asList(split); | 
		
	
		
			
				|  |  |  |  |                 if (CollectionUtils.isNotEmpty(strings)){ | 
		
	
		
			
				|  |  |  |  |                 if (CollectionUtils.isNotEmpty(strings)) { | 
		
	
		
			
				|  |  |  |  |                     customers = new ArrayList<>(); | 
		
	
		
			
				|  |  |  |  |                     for (String customerId:strings){ | 
		
	
		
			
				|  |  |  |  |                         if (StringUtils.isNotBlank(customerId)){ | 
		
	
		
			
				|  |  |  |  |                     for (String customerId : strings) { | 
		
	
		
			
				|  |  |  |  |                         if (StringUtils.isNotBlank(customerId)) { | 
		
	
		
			
				|  |  |  |  |                             customers.add(Long.parseLong(customerId)); | 
		
	
		
			
				|  |  |  |  |                         } | 
		
	
		
			
				|  |  |  |  |                     } | 
		
	
		
			
				|  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |             return data(poiStoreService.getRegionShop(userId,customers)); | 
		
	
		
			
				|  |  |  |  |         }catch (Exception e){ | 
		
	
		
			
				|  |  |  |  |             log.error("获取用户店铺失败",e); | 
		
	
		
			
				|  |  |  |  |             return data(poiStoreService.getRegionShop(userId, customers)); | 
		
	
		
			
				|  |  |  |  |         } catch (Exception e) { | 
		
	
		
			
				|  |  |  |  |             log.error("获取用户店铺失败", e); | 
		
	
		
			
				|  |  |  |  |             return fail(); | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
	
		
			
				
					|  |  |  | @ -61,32 +61,34 @@ public class PoiStoreController extends BaseController { | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     /** | 
		
	
		
			
				|  |  |  |  |      * 根据用户id,区域id获取店铺 | 
		
	
		
			
				|  |  |  |  |      * | 
		
	
		
			
				|  |  |  |  |      * @return | 
		
	
		
			
				|  |  |  |  |      */ | 
		
	
		
			
				|  |  |  |  |     @RequestMapping(value = "/user/shopDTO",method = RequestMethod.POST) | 
		
	
		
			
				|  |  |  |  |     @RequestMapping(value = "/user/shopDTO", method = RequestMethod.POST) | 
		
	
		
			
				|  |  |  |  |     @ResponseBody | 
		
	
		
			
				|  |  |  |  |     public Map<String,Object> getUserShopDTO(@RequestParam("userId")long userId, @RequestParam(value = "customerIds",required =false)String customerIds){ | 
		
	
		
			
				|  |  |  |  |     public Map<String, Object> getUserShopDTO(@RequestParam("userId") long userId, @RequestParam(value = "customerIds", required = false) String customerIds, @RequestParam("scheduleId") long scheduleId) { | 
		
	
		
			
				|  |  |  |  |         try { | 
		
	
		
			
				|  |  |  |  |             List<Long> customers = null; | 
		
	
		
			
				|  |  |  |  |             if (StringUtils.isNotBlank(customerIds)){ | 
		
	
		
			
				|  |  |  |  |             if (StringUtils.isNotBlank(customerIds)) { | 
		
	
		
			
				|  |  |  |  |                 String[] split = customerIds.replace("[", "").replace("]", "").split(","); | 
		
	
		
			
				|  |  |  |  |                 List<String> strings = Arrays.asList(split); | 
		
	
		
			
				|  |  |  |  |                 if (CollectionUtils.isNotEmpty(strings)){ | 
		
	
		
			
				|  |  |  |  |                 if (CollectionUtils.isNotEmpty(strings)) { | 
		
	
		
			
				|  |  |  |  |                     customers = new ArrayList<>(); | 
		
	
		
			
				|  |  |  |  |                     for (String customerId:strings){ | 
		
	
		
			
				|  |  |  |  |                         if (StringUtils.isNotBlank(customerId)){ | 
		
	
		
			
				|  |  |  |  |                     for (String customerId : strings) { | 
		
	
		
			
				|  |  |  |  |                         if (StringUtils.isNotBlank(customerId)) { | 
		
	
		
			
				|  |  |  |  |                             customers.add(Long.parseLong(customerId)); | 
		
	
		
			
				|  |  |  |  |                         } | 
		
	
		
			
				|  |  |  |  |                     } | 
		
	
		
			
				|  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |             return data(poiStoreService.getRegionShopDTO(userId,customers)); | 
		
	
		
			
				|  |  |  |  |         }catch (Exception e){ | 
		
	
		
			
				|  |  |  |  |             log.error("获取用户店铺失败",e); | 
		
	
		
			
				|  |  |  |  |             return data(poiStoreService.getRegionShopDTO(userId, customers, scheduleId)); | 
		
	
		
			
				|  |  |  |  |         } catch (Exception e) { | 
		
	
		
			
				|  |  |  |  |             log.error("获取用户店铺失败", e); | 
		
	
		
			
				|  |  |  |  |             return fail(); | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     /** | 
		
	
		
			
				|  |  |  |  |      * 查询所有店铺 | 
		
	
		
			
				|  |  |  |  |      * | 
		
	
	
		
			
				
					|  |  |  | 
 |