Commit 5ab16466 by tyfanchz

修改:直接使用 dubbo 服务调用商城接口

1 parent d0b0e45d
...@@ -47,7 +47,7 @@ public class SmartProductServiceImpl extends BaseService implements SmartProduct ...@@ -47,7 +47,7 @@ public class SmartProductServiceImpl extends BaseService implements SmartProduct
@Autowired @Autowired
private SmartSysCodeMapper sysCodeMapper; private SmartSysCodeMapper sysCodeMapper;
@Autowired //@Autowired
private DjApiInvoker djApiInvoker; private DjApiInvoker djApiInvoker;
/** /**
......
...@@ -18,7 +18,6 @@ import com.glsx.smart.service.BaseService; ...@@ -18,7 +18,6 @@ import com.glsx.smart.service.BaseService;
import com.glsx.smart.service.SmartProductTypeService; import com.glsx.smart.service.SmartProductTypeService;
import com.glsx.smart.utils.DjApiInvoker; import com.glsx.smart.utils.DjApiInvoker;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -35,7 +34,7 @@ public class SmartProductTypeServiceImpl extends BaseService implements SmartPro ...@@ -35,7 +34,7 @@ public class SmartProductTypeServiceImpl extends BaseService implements SmartPro
@Resource @Resource
private SmartProductTypeMapper productTypeMapper; private SmartProductTypeMapper productTypeMapper;
@Autowired //@Autowired
private DjApiInvoker djApiInvoker; private DjApiInvoker djApiInvoker;
/** /**
......
...@@ -11,17 +11,18 @@ import lombok.extern.slf4j.Slf4j; ...@@ -11,17 +11,18 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
/** /**
* <p>Description: 嘀加商城 API 调用工具类 * <p>Description: 嘀加商城 API 调用工具类
* <p>Project: chejia-smart * <p>Project: chejia-smart
* *
* @deprecated 已废弃,不用 http 方式调用嘀加接口
* @author wbh * @author wbh
* @date 2021-03-23 * @date 2021-03-23
*/ */
@Slf4j @Slf4j
@Component //@Component
@Deprecated
public class DjApiInvoker { public class DjApiInvoker {
private static final String ARG_METHOD = "method"; private static final String ARG_METHOD = "method";
private static final String ARG_FORMAT = "format"; private static final String ARG_FORMAT = "format";
......
...@@ -22,3 +22,6 @@ pagehelper.helperDialect=mysql ...@@ -22,3 +22,6 @@ pagehelper.helperDialect=mysql
#pagehelper.reasonable=true #pagehelper.reasonable=true
pagehelper.supportMethodsArguments=true pagehelper.supportMethodsArguments=true
pagehelper.params=count=countSql pagehelper.params=count=countSql
#\u8BBE\u5907\u8FDC\u7A0B\u8BBF\u95EEurl
device_remote_url=http://192.168.3.222:8099/smartDevices-platform-service
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!