알림목록 지표로딩 문제 수정
This commit is contained in:
@@ -203,7 +203,8 @@ public class LiveConditionStatusService {
|
|||||||
private void walk(JsonNode node, String timeframe, String side,
|
private void walk(JsonNode node, String timeframe, String side,
|
||||||
List<PendingCond> out, Set<String> seen) {
|
List<PendingCond> out, Set<String> seen) {
|
||||||
if (node == null || node.isNull()) return;
|
if (node == null || node.isNull()) return;
|
||||||
String type = node.path("type").asText("");
|
// StrategyDslToTa4jAdapter 와 동일하게 type 미설정 시 "CONDITION" 기본값 적용
|
||||||
|
String type = node.path("type").asText("CONDITION");
|
||||||
|
|
||||||
if ("TIMEFRAME".equals(type)) {
|
if ("TIMEFRAME".equals(type)) {
|
||||||
String tf = LiveStrategyTimeframeService.normalize(
|
String tf = LiveStrategyTimeframeService.normalize(
|
||||||
|
|||||||
@@ -47,7 +47,8 @@ function walk(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.type === 'CONDITION' && node.condition) {
|
// StrategyDslToTa4jAdapter 와 동일: type 미설정(구버전 DSL) 시 CONDITION 으로 처리
|
||||||
|
if ((!node.type || node.type === 'CONDITION') && node.condition) {
|
||||||
const c = node.condition;
|
const c = node.condition;
|
||||||
const key = `${side}:${timeframe}:${c.indicatorType}:${c.conditionType}:${c.targetValue ?? ''}:${c.leftField ?? ''}`;
|
const key = `${side}:${timeframe}:${c.indicatorType}:${c.conditionType}:${c.targetValue ?? ''}:${c.leftField ?? ''}`;
|
||||||
if (seen.has(key)) return;
|
if (seen.has(key)) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user