|
|
@@ -20,6 +20,7 @@ import com.yami.shop.dao.ShopDetailMapper;
|
|
|
import com.yami.shop.service.RefundAddrService;
|
|
|
import com.yami.shop.service.hb.IStoreManagementService;
|
|
|
import com.yami.shop.utils.HBSignUtil;
|
|
|
+import com.yami.shop.utils.SmqjhUtil;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
@@ -49,15 +50,7 @@ public class StoreManagementService implements IStoreManagementService {
|
|
|
private final HBSignUtil hbSignUtil;
|
|
|
private final HBTransport2Mapper transport2Mapper;
|
|
|
private final RefundAddrService refundAddrService;
|
|
|
-
|
|
|
- /**
|
|
|
- * 市民请集合门店修改和新增调用
|
|
|
- */
|
|
|
- private static String smqjhMdUrlAddAndUpdate="http://47.109.84.152:8081/smqjh-pms/api/v1/shopDetail/save";
|
|
|
- /**
|
|
|
- * 市民请集合门店状态修改调用
|
|
|
- */
|
|
|
- private static String smqjhMdUrlUpdateStatus="http://47.109.84.152:8081/smqjh-pms/api/v1/shopDetail/updateStatus";
|
|
|
+ private final SmqjhUtil smqjhUtil;
|
|
|
|
|
|
/**
|
|
|
* 获取海博门店基础信息
|
|
|
@@ -226,7 +219,7 @@ public class StoreManagementService implements IStoreManagementService {
|
|
|
}
|
|
|
// String post =null;
|
|
|
// try {
|
|
|
-// post = HttpUtil.post(smqjhMdUrlAddAndUpdate, goodsInfoJson);
|
|
|
+// post = HttpUtil.post(smqjhUtil.getSmqjhPmsUrl()+SmqjhUtil.smqjhMdUrlAddAndUpdate, goodsInfoJson);
|
|
|
// JSONObject jsonObject = JSONObject.parseObject(post);
|
|
|
// Object code = jsonObject.get("code");
|
|
|
// if (!ObjectUtils.isEmpty(code)&&"00000".equals(code.toString())){
|
|
|
@@ -305,7 +298,7 @@ public class StoreManagementService implements IStoreManagementService {
|
|
|
// String post =null;
|
|
|
// try {
|
|
|
// goodsInfoJson.put("stationId",stationId);
|
|
|
-// post = HttpUtil.post(smqjhMdUrlUpdateStatus, goodsInfoJson);
|
|
|
+// post = HttpUtil.post(smqjhUtil.getSmqjhPmsUrl()+SmqjhUtil.smqjhMdUrlUpdateStatus, goodsInfoJson);
|
|
|
// JSONObject jsonObject = JSONObject.parseObject(post);
|
|
|
// Object code = jsonObject.get("code");
|
|
|
// if (!ObjectUtils.isEmpty(code)&&"00000".equals(code.toString())){
|