Commit fd8e04e7 by zhouhaibao

[+]新增参数

1 parent 01b225a9
......@@ -181,6 +181,7 @@ public class MonitoringService {
List<CompletableFuture<List<ItemDetail>>> futures1 = new ArrayList<>();
QueryParams queryParams = new QueryParams();
queryParams.setBizs(changeBusiness(request.getBusinessType()));
queryParams.setStartDate(nextPeriodRange.getStartDate());
queryParams.setEndDate(nextPeriodRange.getEndDate());
if (request.getExts()!=null){
......@@ -195,6 +196,7 @@ public class MonitoringService {
queryParams.setExts("merchantIds");
}
queryParams.setDateType(4);
queryParams.setBrandIds(env.getProperty("check.param.brandIds")==null?"-1,-2,-4,3454":env.getProperty("check.param.brandIds"));
for (Rule rule : rules) {
queryParams.setItemCodes(rule.getFieldName());
......@@ -252,6 +254,19 @@ public class MonitoringService {
return allWarnings;
}
public static Integer changeBusiness(Integer businessType) {
switch (businessType) {
case 2:
return 2;
case 3:
return 3;
case 4:
return 1;
default:
return null;
}
}
// ========== 辅助方法 ==========
private String buildKey(String itemCode, Integer merchantId, String staffUuid) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!