修改枚举key
This commit is contained in:
@@ -12,7 +12,7 @@ import java.util.stream.Stream;
|
||||
*/
|
||||
public enum SystemConfigEnum {
|
||||
// 系统相关
|
||||
SYSTEM_VERSION("system_version", "系统当前的版本号"),
|
||||
DOC_SYSTEM_VERSION("doc_system_version", "系统当前的版本号"),
|
||||
;
|
||||
|
||||
private String key;
|
||||
|
||||
@@ -47,7 +47,7 @@ public class UpgradeSystemDdlTask {
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
try {
|
||||
String nowVersion = systemConfigService.getConfigValue(SystemConfigEnum.SYSTEM_VERSION);
|
||||
String nowVersion = systemConfigService.getConfigValue(SystemConfigEnum.DOC_SYSTEM_VERSION);
|
||||
if (Objects.equals(nowVersion, ZyplayerDocVersion.version)) {
|
||||
logger.info("当前数据库DDL已是最新版本:" + nowVersion);
|
||||
return;
|
||||
@@ -66,7 +66,7 @@ public class UpgradeSystemDdlTask {
|
||||
upgradeByNowVersion(nowVersion, tableList);
|
||||
}
|
||||
// 更新当前版本
|
||||
systemConfigService.setConfigValue(SystemConfigEnum.SYSTEM_VERSION, ZyplayerDocVersion.version);
|
||||
systemConfigService.setConfigValue(SystemConfigEnum.DOC_SYSTEM_VERSION, ZyplayerDocVersion.version);
|
||||
} catch (Exception e) {
|
||||
logger.error("执行升级SQL失败,请手动执行升级SQL或修改:system_config表中的system_version记录行的版本为:{},异常信息:{}", ZyplayerDocVersion.version, e.getMessage());
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user