Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-strategy
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 65a86bf3
authored
Jan 20, 2026
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:策略订单统计
1 parent
ecc26359
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
src/main/java/cn/com/glsx/dj/strategy/controller/StrategyDetailController.java
src/main/java/cn/com/glsx/dj/strategy/controller/StrategyDetailController.java
View file @
65a86bf
package
cn
.
com
.
glsx
.
dj
.
strategy
.
controller
;
package
cn
.
com
.
glsx
.
dj
.
strategy
.
controller
;
import
cn.com.glsx.dj.strategy.dto.StrategyDetailReqDTO
;
import
cn.com.glsx.dj.strategy.dto.StrategyDetailRespDTO
;
import
cn.com.glsx.dj.strategy.remote.StrategyDetailRemote
;
import
cn.com.glsx.dj.strategy.request.*
;
import
cn.com.glsx.dj.strategy.request.*
;
import
cn.com.glsx.dj.strategy.response.*
;
import
cn.com.glsx.dj.strategy.response.*
;
import
cn.com.glsx.dj.strategy.service.StrategyDetailService
;
import
cn.com.glsx.dj.strategy.service.StrategyDetailService
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
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.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.NeedInSessionType
;
...
@@ -31,6 +36,7 @@ import java.util.Optional;
...
@@ -31,6 +36,7 @@ import java.util.Optional;
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
public
class
StrategyDetailController
{
public
class
StrategyDetailController
{
private
final
StrategyDetailRemote
strategyDetailRemote
;
private
final
StrategyDetailService
strategyDetailService
;
private
final
StrategyDetailService
strategyDetailService
;
...
@@ -54,8 +60,17 @@ public class StrategyDetailController {
...
@@ -54,8 +60,17 @@ public class StrategyDetailController {
@ServiceMethod
(
method
=
"dj.api.strategy.find.strategy.detail"
)
@ServiceMethod
(
method
=
"dj.api.strategy.find.strategy.detail"
)
public
RopResponse
<
StrategyDetailResponse
>
findStrategyDetail
(
StrategyDetailRequest
request
)
{
public
RopResponse
<
StrategyDetailResponse
>
findStrategyDetail
(
StrategyDetailRequest
request
)
{
try
{
try
{
StrategyDetailReqDTO
strategyDetailReqDTO
=
new
StrategyDetailReqDTO
();
return
RopResponse
.
success
(
null
);
strategyDetailReqDTO
.
setStrategyId
(
request
.
getStrategyId
());
RpcResponse
<
StrategyDetailRespDTO
>
strategyDetail
=
strategyDetailRemote
.
findStrategyDetail
(
strategyDetailReqDTO
);
if
(
strategyDetail
.
isFailed
())
{
log
.
error
(
"查询记录下/任务型策略详情失败: {}"
,
strategyDetail
.
getMessage
());
throw
new
RpcServiceException
(
strategyDetail
.
getError
(),
strategyDetail
.
getMessage
());
}
StrategyDetailRespDTO
result
=
strategyDetail
.
getResult
();
StrategyDetailResponse
strategyDetailResponse
=
BeanUtil
.
copyProperties
(
result
,
StrategyDetailResponse
.
class
);
return
RopResponse
.
success
(
strategyDetailResponse
);
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"dj.api.strategy.find.strategy.detail occur error!"
,
e
);
log
.
info
(
"dj.api.strategy.find.strategy.detail occur error!"
,
e
);
return
RopResponse
.
error
(
e
);
return
RopResponse
.
error
(
e
);
...
...
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