|
|
@@ -14,6 +14,7 @@ import com.sqx.common.exception.SqxException;
|
|
|
import com.sqx.common.utils.PageUtils;
|
|
|
import com.sqx.common.utils.RedisUtils;
|
|
|
import com.sqx.common.utils.Result;
|
|
|
+import com.sqx.datasource.annotation.DataSource;
|
|
|
import com.sqx.modules.activity.service.ActivityShopService;
|
|
|
import com.sqx.modules.activity.vo.ShopActivityVO;
|
|
|
import com.sqx.modules.common.entity.CommonInfo;
|
|
|
@@ -160,6 +161,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result selectGoodsList(Long shopId, Double lng, Double lat) {
|
|
|
GoodsShop goodsShop = goodsShopDao.selectGoodsList(shopId, lng, lat);
|
|
|
//List<Goods> goodsList = goodsDao.selectGoodsClassifyList(shopId);
|
|
|
@@ -390,6 +392,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result selectShortShop(double lng, double lat, String shopName, Integer page, Integer limit, Long shopId) {
|
|
|
Page<GoodsShop> pages = new Page<>(page, limit);
|
|
|
IPage<GoodsShop> goodsShopIPage = goodsDao.selectShortShop(pages, lng, lat, shopName, shopId);
|
|
|
@@ -504,6 +507,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result selectShop(ShopQueryDTO queryDTO) {
|
|
|
//如果没有经纬度,则默认为北京的经纬度
|
|
|
Double lat = queryDTO.getLat();
|
|
|
@@ -733,6 +737,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
// }
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result selectGoodsById(Long goodsId) {
|
|
|
Goods goods = goodsDao.selectGoodsById(goodsId);
|
|
|
if (goods != null) {
|
|
|
@@ -804,6 +809,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result selectSupplierShop(ShopQueryDTO queryDTO) {
|
|
|
//如果没有经纬度,则默认为北京的经纬度
|
|
|
Double lat = queryDTO.getLat();
|
|
|
@@ -863,6 +869,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result selectGoodShop(Long shopId) {
|
|
|
GoodsShop goodsShop = goodsShopDao.selectById(shopId);
|
|
|
|
|
|
@@ -887,6 +894,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result goodsCoverList(Integer page,Integer limit,String name) {
|
|
|
Page<Goods> pages = new Page<>(page, limit);
|
|
|
Integer total=(page-1)*limit;
|
|
|
@@ -896,6 +904,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result goodsPictureList(Integer page, Integer limit, String name) {
|
|
|
Page<Goods> pages = new Page<>(page, limit);
|
|
|
Integer total=(page-1)*limit;
|
|
|
@@ -905,6 +914,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result goodsParticularsPictureList(Integer page, Integer limit, String name) {
|
|
|
Page<Goods> pages = new Page<>(page, limit);
|
|
|
Integer total=(page-1)*limit;
|
|
|
@@ -914,6 +924,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result selectGoodsClassifyList(Long shopId, Double lng, Double lat) {
|
|
|
GoodsShop goodsShop = goodsShopDao.selectGoodsList(shopId, lng, lat);
|
|
|
//List<Goods> goodsList = goodsDao.selectGoodsClassifyList(shopId);
|
|
|
@@ -936,6 +947,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements Go
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @DataSource("dynamic")
|
|
|
public Result selectSupermarketGoodsList(Long shopId, Integer classifyId, Integer page, Integer limit) {
|
|
|
Page<Goods> pages = new Page<>(page, limit);
|
|
|
IPage<Goods> goodsIPage = goodsDao.selectSupermarketGoodsList(pages,shopId, classifyId);
|