修改枚举key

This commit is contained in:
暮光:城中城
2023-01-12 20:08:56 +08:00
parent d29068bb9c
commit 602a9cc55c
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import java.util.stream.Stream;
*/ */
public enum SystemConfigEnum { public enum SystemConfigEnum {
// 系统相关 // 系统相关
SYSTEM_VERSION("system_version", "系统当前的版本号"), DOC_SYSTEM_VERSION("doc_system_version", "系统当前的版本号"),
; ;
private String key; private String key;

View File

@@ -47,7 +47,7 @@ public class UpgradeSystemDdlTask {
@PostConstruct @PostConstruct
public void init() { public void init() {
try { try {
String nowVersion = systemConfigService.getConfigValue(SystemConfigEnum.SYSTEM_VERSION); String nowVersion = systemConfigService.getConfigValue(SystemConfigEnum.DOC_SYSTEM_VERSION);
if (Objects.equals(nowVersion, ZyplayerDocVersion.version)) { if (Objects.equals(nowVersion, ZyplayerDocVersion.version)) {
logger.info("当前数据库DDL已是最新版本" + nowVersion); logger.info("当前数据库DDL已是最新版本" + nowVersion);
return; return;
@@ -66,7 +66,7 @@ public class UpgradeSystemDdlTask {
upgradeByNowVersion(nowVersion, tableList); upgradeByNowVersion(nowVersion, tableList);
} }
// 更新当前版本 // 更新当前版本
systemConfigService.setConfigValue(SystemConfigEnum.SYSTEM_VERSION, ZyplayerDocVersion.version); systemConfigService.setConfigValue(SystemConfigEnum.DOC_SYSTEM_VERSION, ZyplayerDocVersion.version);
} catch (Exception e) { } catch (Exception e) {
logger.error("执行升级SQL失败请手动执行升级SQL或修改system_config表中的system_version记录行的版本为{},异常信息:{}", ZyplayerDocVersion.version, e.getMessage()); logger.error("执行升级SQL失败请手动执行升级SQL或修改system_config表中的system_version记录行的版本为{},异常信息:{}", ZyplayerDocVersion.version, e.getMessage());
} }

View File

@@ -30,7 +30,7 @@
</div> </div>
</div> </div>
<div class="comment-input-box"> <div class="comment-input-box">
<textarea rows="5" placeholder="发表评论" v-model="commentTextInput"></textarea> <textarea rows="5" placeholder="发表评论" v-model="commentTextInput" :maxlength="500"></textarea>
<el-button style="float: right; margin: 2px 5px" type="primary" size="small" v-on:click="submitPageComment">发送</el-button> <el-button style="float: right; margin: 2px 5px" type="primary" size="small" v-on:click="submitPageComment">发送</el-button>
</div> </div>
</template> </template>