|  | @@ -3,13 +3,17 @@ package com.fs.app.controller;
 | 
	
		
			
				|  |  |  import com.fs.app.annotation.Login;
 | 
	
		
			
				|  |  |  import com.fs.common.core.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.fs.common.core.domain.AjaxResult;
 | 
	
		
			
				|  |  | +import com.fs.common.core.page.TableDataInfo;
 | 
	
		
			
				|  |  | +import com.fs.his.domain.FsStoreProduct;
 | 
	
		
			
				|  |  |  import com.fs.his.service.IFsStoreService;
 | 
	
		
			
				|  |  | +import com.fs.live.domain.LiveGoods;
 | 
	
		
			
				|  |  |  import com.fs.live.service.ILiveGoodsService;
 | 
	
		
			
				|  |  |  import com.fs.live.vo.FsStoreLiveVO;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.util.HashMap;
 | 
	
		
			
				|  |  | +import java.util.List;
 | 
	
		
			
				|  |  |  import java.util.Map;
 | 
	
		
			
				|  |  |  import java.util.Objects;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -29,16 +33,17 @@ public class FsStoreController extends AppBaseController
 | 
	
		
			
				|  |  |      private ILiveGoodsService liveGoodsService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  | -     * 获取店铺管理详细信息
 | 
	
		
			
				|  |  | +     * 获取店铺管理详细信息(下面小黄车的商品)
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @Login
 | 
	
		
			
				|  |  |      @GetMapping("/{storeId}")
 | 
	
		
			
				|  |  | -    public AjaxResult getInfo(@PathVariable("storeId") Long storeId,@RequestParam String key)
 | 
	
		
			
				|  |  | +    public AjaxResult getInfo(@PathVariable("storeId") Long storeId,@RequestParam String key,@RequestParam String liveId)
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |          Map<String, Object> params = new HashMap<>();
 | 
	
		
			
				|  |  |          params.put("storeId", storeId);
 | 
	
		
			
				|  |  |          params.put("userId", getUserId());
 | 
	
		
			
				|  |  |          params.put("productName", key);
 | 
	
		
			
				|  |  | +        params.put("liveId", liveId);
 | 
	
		
			
				|  |  |          FsStoreLiveVO fsStore = fsStoreService.selectFsStoreLiveByMap(params);
 | 
	
		
			
				|  |  |          if (Objects.nonNull(fsStore)) {
 | 
	
		
			
				|  |  |              fsStore.setGoodsList(liveGoodsService.selectLiveGoodsListByMap(params));
 | 
	
	
		
			
				|  | @@ -47,6 +52,18 @@ public class FsStoreController extends AppBaseController
 | 
	
		
			
				|  |  |          return AjaxResult.success(fsStore);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * 获取店铺所有产品
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    @Login
 | 
	
		
			
				|  |  | +    @GetMapping
 | 
	
		
			
				|  |  | +    public TableDataInfo getStoreProducts(LiveGoods storeId)
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        startPage();
 | 
	
		
			
				|  |  | +        List<FsStoreProduct> list = liveGoodsService.selectStoreProducts(storeId);
 | 
	
		
			
				|  |  | +        return getDataTable(list);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }
 |