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 759e8380
authored
Jan 30, 2026
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:1026244:门店看板时间线-展业风险、停止展业应取值无订单第一天,即往后取一天
1 parent
4828ea95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletions
src/main/java/cn/com/glsx/dj/strategy/controller/StrategyInfoController.java
src/main/java/cn/com/glsx/dj/strategy/request/StaffInfoSearchRequest.java
src/test/java/cn/com/glsx/dj/strategy/controller/StrategyDetailControllerTest.java
src/main/java/cn/com/glsx/dj/strategy/controller/StrategyInfoController.java
View file @
759e838
...
...
@@ -135,6 +135,15 @@ public class StrategyInfoController {
log
.
error
(
response
.
getMessage
());
return
RopResponse
.
error
(
response
.
getError
(),
response
.
getMessage
());
}
/*MerchantBusinessOverview result = response.getResult();
List<StrategyMerchantTimelineTest> collect = result.getTimelineList().stream().map(el -> {
StrategyMerchantTimelineTest strategyMerchantTimelineTest = BeanUtil.copyProperties(el, StrategyMerchantTimelineTest.class);
strategyMerchantTimelineTest.setNodeDateStr(DateUtil.format(strategyMerchantTimelineTest.getNodeDate(), DatePattern.NORM_DATE_PATTERN));
strategyMerchantTimelineTest.setNoteTypeStr(MerchantNodeTypeEnum.getDisplayName(el.getNodeType()));
return strategyMerchantTimelineTest;
}).collect(Collectors.toList());
log.info("时间线{}", JSONUtil.toJsonStr(collect));*/
return
RopResponse
.
success
(
response
.
getResult
());
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"=====dj.api.strategy.merchant.timeline rpcServiceException:{}"
,
e
.
getMessage
());
...
...
src/main/java/cn/com/glsx/dj/strategy/request/StaffInfoSearchRequest.java
View file @
759e838
...
...
@@ -16,7 +16,7 @@ public class StaffInfoSearchRequest extends AbstractRopRequest {
@ApiModelProperty
(
notes
=
"员工姓名"
)
private
String
staffName
;
@NotNull
(
message
=
"门店ID列表不能为空"
)
//
@NotNull(message = "门店ID列表不能为空")
@ApiModelProperty
(
notes
=
"门店ID列表"
)
private
List
<
Integer
>
merchantIdList
;
...
...
src/test/java/cn/com/glsx/dj/strategy/controller/StrategyDetailControllerTest.java
View file @
759e838
...
...
@@ -97,4 +97,34 @@ public class StrategyDetailControllerTest extends BaseControllerTest {
params
.
add
(
"sessionId"
,
"4485da32-6f5b-445d-82bc-0c4f671497d2"
);
System
.
out
.
println
(
post
(
params
));
}
@Test
public
void
listStaffWithPageTest
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"dj.api.strategy.staff.page"
);
params
.
add
(
"pageSize"
,
"10"
);
params
.
add
(
"currentPage"
,
"1"
);
params
.
add
(
"positionTypeList[0]"
,
"0"
);
params
.
add
(
"positionTypeList[1]"
,
"6"
);
params
.
add
(
"positionTypeList[2]"
,
"9"
);
// params.add("merchantIdList[0]", "44211677");
params
.
add
(
"sceneType"
,
"0"
);
params
.
add
(
"cycleType"
,
"2"
);
params
.
add
(
"sessionId"
,
"ac361d66-57da-46c6-93c6-0f8a9f9627b5"
);
System
.
out
.
println
(
post
(
params
));
}
@Test
public
void
listStrategyMerchantTimelineTest
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"dj.api.strategy.merchant.timeline"
);
// params.add("merchantIdList[0]", "44211677");
params
.
add
(
"sceneType"
,
"0"
);
params
.
add
(
"bizs"
,
"1"
);
params
.
add
(
"merchantId"
,
"44211227"
);
params
.
add
(
"sessionId"
,
"8772c593-08c9-424d-8e03-d46b50e6dd5d"
);
System
.
out
.
println
(
post
(
params
));
}
}
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