feat: ASW-90 新增 pcakage 相关接口
This commit is contained in:
@@ -3,12 +3,51 @@
|
||||
|
||||
<mapper namespace="net.geedge.asw.module.app.dao.PackageDao">
|
||||
|
||||
<resultMap id="pkgResult" type="net.geedge.asw.module.app.entity.PackageEntity">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="icon" column="icon"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="platform" column="platform"/>
|
||||
<result property="version" column="version"/>
|
||||
<result property="identifier" column="identifier"/>
|
||||
<result property="path" column="path"/>
|
||||
<result property="size" column="size"/>
|
||||
<result property="createTimestamp" column="create_timestamp"/>
|
||||
<result property="updateTimestamp" column="update_timestamp"/>
|
||||
<result property="createUserId" column="create_user_id"/>
|
||||
<result property="updateUserId" column="update_user_id"/>
|
||||
<result property="workspaceId" column="workspace_id"/>
|
||||
|
||||
<select id="queryList" resultType="net.geedge.asw.module.app.entity.PackageEntity">
|
||||
<association property="createUser" columnPrefix="cu_" javaType="net.geedge.asw.module.sys.entity.SysUserEntity">
|
||||
<id property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
</association>
|
||||
|
||||
<association property="updateUser" columnPrefix="uu_" javaType="net.geedge.asw.module.sys.entity.SysUserEntity">
|
||||
<id property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
</association>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="queryList" resultMap="pkgResult">
|
||||
SELECT
|
||||
pkg.*
|
||||
pkg.*,
|
||||
|
||||
cu.id AS cu_id,
|
||||
cu.name AS cu_name,
|
||||
cu.user_name AS cu_user_name,
|
||||
|
||||
uu.id AS uu_id,
|
||||
uu.name AS uu_name,
|
||||
uu.user_name AS uu_user_name
|
||||
FROM
|
||||
package pkg
|
||||
LEFT JOIN sys_user cu ON pkg.create_user_id = cu.id
|
||||
LEFT JOIN sys_user uu ON pkg.update_user_id = uu.id
|
||||
LEFT JOIN workbook_resource wr ON pkg.id = wr.resource_id AND wr.resource_type = 'package'
|
||||
<where>
|
||||
<if test="params.ids != null and params.ids != ''">
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
<result property="platform" column="platform"/>
|
||||
<result property="identifier" column="identifier"/>
|
||||
<result property="version" column="version"/>
|
||||
<result property="logo" column="logo"/>
|
||||
</association>
|
||||
|
||||
<association property="runner" columnPrefix="run_" javaType="net.geedge.asw.module.runner.entity.RunnerEntity">
|
||||
@@ -54,7 +53,6 @@
|
||||
pkg.id AS pkg_id,
|
||||
pkg.platform AS pkg_platform,
|
||||
pkg.version AS pkg_version,
|
||||
pkg.logo AS pkg_logo,
|
||||
pkg.identifier AS pkg_identifier,
|
||||
|
||||
run.id AS run_id,
|
||||
|
||||
Reference in New Issue
Block a user