|
@@ -174,7 +174,7 @@ public class HBFrontCategoryService implements IHBFrontCategoryService {
|
|
|
|
|
|
|
|
shopCategoryMapper.insert(shopCategory);
|
|
shopCategoryMapper.insert(shopCategory);
|
|
|
try {
|
|
try {
|
|
|
- String syncUrl = smqjhUtil.getSmqjhPmsUrl() + "/syncShopCategoryData/";
|
|
|
|
|
|
|
+ String syncUrl = smqjhUtil.getSmqjhPmsUrl() + "/syncShopCategoryData";
|
|
|
String response = com.yami.shop.common.util.HttpUtil.post(syncUrl, shopCategory);
|
|
String response = com.yami.shop.common.util.HttpUtil.post(syncUrl, shopCategory);
|
|
|
log.info("推送门店分类到同步服务器结果: {}", response);
|
|
log.info("推送门店分类到同步服务器结果: {}", response);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -227,7 +227,7 @@ public class HBFrontCategoryService implements IHBFrontCategoryService {
|
|
|
try {
|
|
try {
|
|
|
List<ShopCategory> shopCategories = shopCategoryMapper.selectList(new LambdaQueryWrapper<ShopCategory>().eq(ShopCategory::getCode, code));
|
|
List<ShopCategory> shopCategories = shopCategoryMapper.selectList(new LambdaQueryWrapper<ShopCategory>().eq(ShopCategory::getCode, code));
|
|
|
for (ShopCategory shopCategory : shopCategories) {
|
|
for (ShopCategory shopCategory : shopCategories) {
|
|
|
- String syncUrl = smqjhUtil.getSmqjhPmsUrl() + "/syncShopCategoryData/";
|
|
|
|
|
|
|
+ String syncUrl = smqjhUtil.getSmqjhPmsUrl() + "/syncShopCategoryData";
|
|
|
String response = com.yami.shop.common.util.HttpUtil.post(syncUrl, shopCategory);
|
|
String response = com.yami.shop.common.util.HttpUtil.post(syncUrl, shopCategory);
|
|
|
log.info("推送门店分类到同步服务器结果: {}", response);
|
|
log.info("推送门店分类到同步服务器结果: {}", response);
|
|
|
}
|
|
}
|