날짜포멧 수정
This commit is contained in:
@@ -72,6 +72,11 @@ public class GcAppSettings {
|
||||
@Builder.Default
|
||||
private String chartTimeFormat = "MM-dd HH:mm";
|
||||
|
||||
/** 매매 시그널 알림 팝업 시간 표시 포맷 */
|
||||
@Column(name = "trade_alert_time_format", length = 64, nullable = false)
|
||||
@Builder.Default
|
||||
private String tradeAlertTimeFormat = "MM-dd HH:mm";
|
||||
|
||||
/** 캔들 색상 JSON (frontend MainChartStyle 구조) */
|
||||
@Column(name = "main_chart_style_json", columnDefinition = "JSON")
|
||||
@JdbcTypeCode(SqlTypes.JSON)
|
||||
|
||||
@@ -83,6 +83,7 @@ public class AppSettingsService {
|
||||
if (d.containsKey("defaultLayoutId")) s.setDefaultLayoutId((String) d.get("defaultLayoutId"));
|
||||
if (d.containsKey("displayTimezone")) s.setDisplayTimezone((String) d.get("displayTimezone"));
|
||||
if (d.containsKey("chartTimeFormat")) s.setChartTimeFormat(normalizeChartTimeFormat((String) d.get("chartTimeFormat")));
|
||||
if (d.containsKey("tradeAlertTimeFormat")) s.setTradeAlertTimeFormat(normalizeChartTimeFormat((String) d.get("tradeAlertTimeFormat")));
|
||||
if (d.containsKey("mainChartStyle")) s.setMainChartStyleJson(toJson(d.get("mainChartStyle")));
|
||||
if (d.containsKey("syncOptions")) s.setSyncOptionsJson(toJson(d.get("syncOptions")));
|
||||
if (d.containsKey("btAutoPopup")) s.setBtAutoPopup(
|
||||
@@ -190,6 +191,7 @@ public class AppSettingsService {
|
||||
m.put("defaultLayoutId", s.getDefaultLayoutId() != null ? s.getDefaultLayoutId() : "1");
|
||||
m.put("displayTimezone", s.getDisplayTimezone() != null ? s.getDisplayTimezone() : "Asia/Seoul");
|
||||
m.put("chartTimeFormat", s.getChartTimeFormat() != null ? s.getChartTimeFormat() : "MM-dd HH:mm");
|
||||
m.put("tradeAlertTimeFormat", s.getTradeAlertTimeFormat() != null ? s.getTradeAlertTimeFormat() : "MM-dd HH:mm");
|
||||
m.put("mainChartStyle", parseJson(s.getMainChartStyleJson()));
|
||||
m.put("syncOptions", parseJson(s.getSyncOptionsJson()));
|
||||
m.put("btAutoPopup", s.getBtAutoPopup() != null ? s.getBtAutoPopup() : true);
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE gc_app_settings
|
||||
ADD COLUMN trade_alert_time_format VARCHAR(64) NOT NULL DEFAULT 'MM-dd HH:mm' AFTER chart_time_format;
|
||||
Reference in New Issue
Block a user