Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
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 4005fa03
authored
Jan 04, 2021
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加日志
1 parent
0c770fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/DeviceMgrServiceImpl.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/DeviceMgrServiceImpl.java
View file @
4005fa0
package
cn
.
com
.
glsx
.
openplatform
.
service
;
package
cn
.
com
.
glsx
.
openplatform
.
service
;
import
javax.annotation.Resource
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
cn.com.glsx.openplatform.mapper.PlatformCustomerMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformCustomerMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformDeviceMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformDeviceMapper
;
import
cn.com.glsx.openplatform.model.PlatformDevice
;
import
cn.com.glsx.openplatform.model.PlatformDevice
;
...
@@ -7,16 +11,12 @@ import cn.com.glsx.openplatform.vo.DeviceVo;
...
@@ -7,16 +11,12 @@ import cn.com.glsx.openplatform.vo.DeviceVo;
import
cn.com.glsx.openplatform.vo.R
;
import
cn.com.glsx.openplatform.vo.R
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.db.Page
;
import
cn.hutool.db.Page
;
import
cn.hutool.json.JSONUtil
;
import
com.alibaba.dubbo.config.annotation.Service
;
import
com.alibaba.dubbo.config.annotation.Service
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
javax.annotation.Resource
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
@Service
@Service
public
class
DeviceMgrServiceImpl
implements
DeviceMgrService
{
public
class
DeviceMgrServiceImpl
implements
DeviceMgrService
{
/**
/**
...
@@ -34,6 +34,7 @@ public class DeviceMgrServiceImpl implements DeviceMgrService {
...
@@ -34,6 +34,7 @@ public class DeviceMgrServiceImpl implements DeviceMgrService {
public
R
getDeviceMgrList
(
Page
page
,
DeviceVo
deviceVo
)
{
public
R
getDeviceMgrList
(
Page
page
,
DeviceVo
deviceVo
)
{
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
LOGGER
.
info
(
"测试代码是否生效"
);
LOGGER
.
info
(
"测试代码是否生效"
);
LOGGER
.
info
(
"getDeviceMgrList deviceVo = {}"
,
JSONUtil
.
toJsonStr
(
deviceVo
));
PageHelper
.
startPage
(
page
.
getPageNumber
(),
page
.
getPageSize
(),
true
);
PageHelper
.
startPage
(
page
.
getPageNumber
(),
page
.
getPageSize
(),
true
);
List
<
PlatformDevice
>
deviceMgrList
=
deviceMapper
.
getDeviceMgrList
(
deviceVo
);
List
<
PlatformDevice
>
deviceMgrList
=
deviceMapper
.
getDeviceMgrList
(
deviceVo
);
return
R
.
ok
().
putPageData
((
com
.
github
.
pagehelper
.
Page
<
PlatformDevice
>)
deviceMgrList
);
return
R
.
ok
().
putPageData
((
com
.
github
.
pagehelper
.
Page
<
PlatformDevice
>)
deviceMgrList
);
...
...
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