mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-18 19:42:49 +08:00
优化组件历史
This commit is contained in:
parent
67176d7d1b
commit
dc80260b8d
@ -5,7 +5,7 @@
|
||||
"groupId" : "6f106ebdee21489db34b956f7770ff03",
|
||||
"name" : "组件历史",
|
||||
"createTime" : null,
|
||||
"updateTime" : 1709803968033,
|
||||
"updateTime" : 1709965399273,
|
||||
"lock" : null,
|
||||
"createBy" : null,
|
||||
"updateBy" : null,
|
||||
@ -26,7 +26,8 @@ return db.page("""
|
||||
select
|
||||
id,
|
||||
create_date,
|
||||
(select username from sys_user where id = sdch.create_by) createBy
|
||||
(select username from sys_user where id = sdch.create_by) create_by
|
||||
from sys_dynamic_component_history sdch
|
||||
where component_id = #{componentId}
|
||||
order by create_date desc
|
||||
""")
|
32
data/magic-api/api/系统管理/组件/获取最后一版代码.ms
Normal file
32
data/magic-api/api/系统管理/组件/获取最后一版代码.ms
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"properties" : { },
|
||||
"id" : "530c445f0e69494581d1420cd5311440",
|
||||
"script" : null,
|
||||
"groupId" : "6f106ebdee21489db34b956f7770ff03",
|
||||
"name" : "获取最后一版代码",
|
||||
"createTime" : null,
|
||||
"updateTime" : 1709964701024,
|
||||
"lock" : null,
|
||||
"createBy" : null,
|
||||
"updateBy" : null,
|
||||
"path" : "/getLastCode",
|
||||
"method" : "GET",
|
||||
"parameters" : [ ],
|
||||
"options" : [ ],
|
||||
"requestBody" : "",
|
||||
"headers" : [ ],
|
||||
"paths" : [ ],
|
||||
"responseBody" : null,
|
||||
"description" : null,
|
||||
"requestBodyDefinition" : null,
|
||||
"responseBodyDefinition" : null
|
||||
}
|
||||
================================
|
||||
return db.selectOne("""
|
||||
select
|
||||
source_code,
|
||||
create_date,
|
||||
(select username from sys_user where id = sdch.create_by) create_by
|
||||
from sys_dynamic_component_history sdch where component_id = #{componentId}
|
||||
order by create_date desc limit 1
|
||||
""")
|
Loading…
Reference in New Issue
Block a user