|
@@ -1,8 +1,12 @@
|
|
package com.fs.live.service.impl;
|
|
package com.fs.live.service.impl;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
import com.fs.common.utils.DateUtils;
|
|
import com.fs.common.utils.DateUtils;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
+import com.fs.company.domain.CompanyUser;
|
|
|
|
+import com.fs.his.mapper.FsStoreProductMapper;
|
|
import com.fs.his.domain.FsStore;
|
|
import com.fs.his.domain.FsStore;
|
|
import com.fs.his.service.IFsStoreService;
|
|
import com.fs.his.service.IFsStoreService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -20,6 +24,10 @@ import com.fs.live.service.ILiveGoodsService;
|
|
@Service
|
|
@Service
|
|
public class LiveGoodsServiceImpl extends ServiceImpl<LiveGoodsMapper, LiveGoods> implements ILiveGoodsService {
|
|
public class LiveGoodsServiceImpl extends ServiceImpl<LiveGoodsMapper, LiveGoods> implements ILiveGoodsService {
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private FsStoreProductMapper fsStoreProductMapper;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private IFsStoreService fsStoreService;
|
|
private IFsStoreService fsStoreService;
|
|
|
|
|
|
@@ -104,4 +112,18 @@ public class LiveGoodsServiceImpl extends ServiceImpl<LiveGoodsMapper, LiveGoods
|
|
//获取店铺信息
|
|
//获取店铺信息
|
|
return fsStoreService.selectFsStoreByStoreId(storeId);
|
|
return fsStoreService.selectFsStoreByStoreId(storeId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 批量新增直播商品
|
|
|
|
+ *
|
|
|
|
+ * @param payload 包含 直播间和商品信息ids
|
|
|
|
+ * @return 结果
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public int insertLiveGoods(Map<String, Object> payload, CompanyUser user) {
|
|
|
|
+ String liveId = (String) payload.get("liveId");
|
|
|
|
+ String goodsIds = (String) payload.get("goodsIds");
|
|
|
|
+// fsStoreProductMapper.se
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
}
|
|
}
|