Commit 759e8380 by 杨卫

fix:1026244:门店看板时间线-展业风险、停止展业应取值无订单第一天,即往后取一天

1 parent 4828ea95
...@@ -135,6 +135,15 @@ public class StrategyInfoController { ...@@ -135,6 +135,15 @@ public class StrategyInfoController {
log.error(response.getMessage()); log.error(response.getMessage());
return RopResponse.error(response.getError(), 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()); return RopResponse.success(response.getResult());
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.error("=====dj.api.strategy.merchant.timeline rpcServiceException:{}", e.getMessage()); log.error("=====dj.api.strategy.merchant.timeline rpcServiceException:{}", e.getMessage());
......
...@@ -16,7 +16,7 @@ public class StaffInfoSearchRequest extends AbstractRopRequest { ...@@ -16,7 +16,7 @@ public class StaffInfoSearchRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "员工姓名") @ApiModelProperty(notes = "员工姓名")
private String staffName; private String staffName;
@NotNull(message = "门店ID列表不能为空") // @NotNull(message = "门店ID列表不能为空")
@ApiModelProperty(notes = "门店ID列表") @ApiModelProperty(notes = "门店ID列表")
private List<Integer> merchantIdList; private List<Integer> merchantIdList;
......
...@@ -97,4 +97,34 @@ public class StrategyDetailControllerTest extends BaseControllerTest { ...@@ -97,4 +97,34 @@ public class StrategyDetailControllerTest extends BaseControllerTest {
params.add("sessionId", "4485da32-6f5b-445d-82bc-0c4f671497d2"); params.add("sessionId", "4485da32-6f5b-445d-82bc-0c4f671497d2");
System.out.println(post(params)); 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));
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!