From ea46ccebbefcdf6ff9366bdcd3a4df53da124b32 Mon Sep 17 00:00:00 2001 From: qianming Date: Wed, 20 Apr 2022 20:15:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Exy=E5=9D=90=E6=A0=87=E8=BD=B4?= =?UTF-8?q?=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/db/migration/V1.0.17__add_dict_coord.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 report-core/src/main/resources/db/migration/V1.0.17__add_dict_coord.sql diff --git a/report-core/src/main/resources/db/migration/V1.0.17__add_dict_coord.sql b/report-core/src/main/resources/db/migration/V1.0.17__add_dict_coord.sql new file mode 100644 index 00000000..67401f4d --- /dev/null +++ b/report-core/src/main/resources/db/migration/V1.0.17__add_dict_coord.sql @@ -0,0 +1,6 @@ +-- 新增坐标轴字典 +INSERT INTO `aj_report`.`gaea_dict`(`dict_name`,`dict_code`,`remark`) SELECT "XY坐标属性","COORD_PROPERTIES","XY坐标属性" FROM DUAL WHERE NOT EXISTS(SELECT `dict_name`,`dict_code`,`remark` FROM `aj_report`.`gaea_dict` WHERE `dict_name`="XY坐标属性" AND `dict_code`="COORD_PROPERTIES" AND `remark`="XY坐标属性"); + +INSERT INTO `aj_report`.`gaea_dict_item`(`dict_code`,`item_name`,`item_value`,`locale`) SELECT "COORD_PROPERTIES","数据","series","zh" FROM DUAL WHERE NOT EXISTS(SELECT `dict_code`,`item_name`,`item_value`,`locale` FROM `aj_report`.`gaea_dict_item` WHERE `dict_code`="COORD_PROPERTIES" AND `item_name`="数据" AND `item_value`="series" AND `locale`="zh"); +INSERT INTO `aj_report`.`gaea_dict_item`(`dict_code`,`item_name`,`item_value`,`locale`) SELECT "COORD_PROPERTIES","X轴","xAxis","zh" FROM DUAL WHERE NOT EXISTS(SELECT `dict_code`,`item_name`,`item_value`,`locale` FROM `aj_report`.`gaea_dict_item` WHERE `dict_code`="COORD_PROPERTIES" AND `item_name`="X轴" AND `item_value`="xAxis" AND `locale`="zh"); +INSERT INTO `aj_report`.`gaea_dict_item`(`dict_code`,`item_name`,`item_value`,`locale`) SELECT "COORD_PROPERTIES","Y轴","yAxis","zh" FROM DUAL WHERE NOT EXISTS(SELECT `dict_code`,`item_name`,`item_value`,`locale` FROM `aj_report`.`gaea_dict_item` WHERE `dict_code`="COORD_PROPERTIES" AND `item_name`="Y轴" AND `item_value`="yAxis" AND `locale`="zh"); \ No newline at end of file