Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-merchant
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 ffb4338b
authored
Dec 12, 2022
by
xiongzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Merged from rop-merchant rop-1207分支
1 parent
205ffb8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
src/main/java/cn/com/glsx/merchants/controller/LogController.java
src/main/java/cn/com/glsx/merchants/service/MerchantLogService.java
src/main/java/cn/com/glsx/merchants/controller/LogController.java
View file @
ffb4338
...
@@ -3,6 +3,7 @@ package cn.com.glsx.merchants.controller;
...
@@ -3,6 +3,7 @@ package cn.com.glsx.merchants.controller;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.request.log.LogSearchRequest
;
import
cn.com.glsx.merchants.request.log.LogSearchRequest
;
import
cn.com.glsx.merchants.request.log.MerchantAndStaffLogRopRequest
;
import
cn.com.glsx.merchants.response.LogResponse
;
import
cn.com.glsx.merchants.response.LogResponse
;
import
cn.com.glsx.merchants.service.MerchantLogService
;
import
cn.com.glsx.merchants.service.MerchantLogService
;
import
cn.com.glsx.merchants.util.Pagination
;
import
cn.com.glsx.merchants.util.Pagination
;
...
@@ -46,4 +47,22 @@ public class LogController {
...
@@ -46,4 +47,22 @@ public class LogController {
}
}
}
}
/**
* 查询商户、员工操作日志列表
*
* @param ropRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"merchants.api.menu.findMerchantAndStaffLog"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询商户、员工操作日志列表"
)
public
RopResponse
<
Pagination
<
LogResponse
>>
findMerchantAndStaffLog
(
MerchantAndStaffLogRopRequest
ropRequest
)
{
try
{
Pagination
<
LogResponse
>
list
=
merchantLogService
.
findMerchantAndStaffLog
(
ropRequest
);
return
RopResponse
.
success
(
list
);
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======LogController__invoke_findMerchantAndStaffLog__exception:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
}
}
}
}
src/main/java/cn/com/glsx/merchants/service/MerchantLogService.java
View file @
ffb4338
...
@@ -10,6 +10,7 @@ import cn.com.glsx.merchants.model.response.MerchantLogResponse;
...
@@ -10,6 +10,7 @@ import cn.com.glsx.merchants.model.response.MerchantLogResponse;
import
cn.com.glsx.merchants.remote.MerchantLogRemote
;
import
cn.com.glsx.merchants.remote.MerchantLogRemote
;
import
cn.com.glsx.merchants.request.log.LogRequest
;
import
cn.com.glsx.merchants.request.log.LogRequest
;
import
cn.com.glsx.merchants.request.log.LogSearchRequest
;
import
cn.com.glsx.merchants.request.log.LogSearchRequest
;
import
cn.com.glsx.merchants.request.log.MerchantAndStaffLogRopRequest
;
import
cn.com.glsx.merchants.response.LogResponse
;
import
cn.com.glsx.merchants.response.LogResponse
;
import
cn.com.glsx.merchants.util.Pagination
;
import
cn.com.glsx.merchants.util.Pagination
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -52,4 +53,12 @@ public class MerchantLogService {
...
@@ -52,4 +53,12 @@ public class MerchantLogService {
}
}
throw
new
RpcServiceException
(
merProductByPageRemote
.
getException
().
getErrId
(),
merProductByPageRemote
.
getMessage
());
throw
new
RpcServiceException
(
merProductByPageRemote
.
getException
().
getErrId
(),
merProductByPageRemote
.
getMessage
());
}
}
public
Pagination
<
LogResponse
>
findMerchantAndStaffLog
(
MerchantAndStaffLogRopRequest
ropRequest
)
{
RpcResponse
<
RpcPagination
<
MerchantLogResponse
>>
merProductByPageRemote
=
merchantLogRemote
.
findMerchantLogForScrm
(
ConvertRequest
.
convertPage
(
ropRequest
,
new
MerchantLogRequest
()));
if
(
merProductByPageRemote
.
isSuccess
())
{
return
ConvertResponse
.
convertPage
(
merProductByPageRemote
.
getResult
(),
LogResponse
.
class
);
}
throw
new
RpcServiceException
(
merProductByPageRemote
.
getException
().
getErrId
(),
merProductByPageRemote
.
getMessage
());
}
}
}
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