Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5ab16466
authored
Mar 25, 2021
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改:直接使用 dubbo 服务调用商城接口
1 parent
d0b0e45d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
src/main/java/com/glsx/smart/service/impl/SmartProductServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartProductTypeServiceImpl.java
src/main/java/com/glsx/smart/utils/DjApiInvoker.java
src/main/resources/application.properties
src/main/java/com/glsx/smart/service/impl/SmartProductServiceImpl.java
View file @
5ab1646
...
@@ -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
;
/**
/**
...
...
src/main/java/com/glsx/smart/service/impl/SmartProductTypeServiceImpl.java
View file @
5ab1646
...
@@ -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
;
/**
/**
...
...
src/main/java/com/glsx/smart/utils/DjApiInvoker.java
View file @
5ab1646
...
@@ -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"
;
...
...
src/main/resources/application.properties
View file @
5ab1646
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment