From c837ec9c4cb0ec93d499df48e8d225312ab1a760 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Fri, 2 Feb 2024 15:55:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=8F=92=E4=BB=B6=E5=90=8E=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=9C=AA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1035106 --user=宋昌昌 【系统设置】系统-插件管理-插件列表更新时间-编辑插件后更新时间未更新 https://www.tapd.cn/55049933/s/1459486 --- .../main/java/io/metersphere/system/service/PluginService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/service/PluginService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/service/PluginService.java index 07b5df3b72..b66b87b7a9 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/service/PluginService.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/service/PluginService.java @@ -224,7 +224,7 @@ public class PluginService { Plugin plugin = new Plugin(); BeanUtils.copyBean(plugin, request); plugin.setCreateTime(null); - plugin.setUpdateTime(null); + plugin.setUpdateTime(System.currentTimeMillis()); // 校验重名 checkPluginUpdateExist(plugin); pluginMapper.updateByPrimaryKeySelective(plugin);