mobile download
This commit is contained in:
@@ -72,6 +72,9 @@ public class StrategyService {
|
||||
sellJson != null
|
||||
? dslTimeframeNormalizer.normalizeJson(sellJson, strategyName)
|
||||
: null);
|
||||
if (dto.getFlowLayout() != null && !dto.getFlowLayout().isNull()) {
|
||||
entity.setFlowLayoutJson(objectMapper.writeValueAsString(dto.getFlowLayout()));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.warn("전략 DSL 직렬화 실패: {}", e.getMessage());
|
||||
}
|
||||
@@ -149,6 +152,8 @@ public class StrategyService {
|
||||
dto.setBuyCondition(objectMapper.readTree(e.getBuyConditionJson()));
|
||||
if (e.getSellConditionJson() != null)
|
||||
dto.setSellCondition(objectMapper.readTree(e.getSellConditionJson()));
|
||||
if (e.getFlowLayoutJson() != null && !e.getFlowLayoutJson().isBlank())
|
||||
dto.setFlowLayout(objectMapper.readTree(e.getFlowLayoutJson()));
|
||||
} catch (Exception ex) {
|
||||
log.warn("전략 DSL 역직렬화 실패: {}", ex.getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user