fix: application 接口 添加 properties 属性
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<result property="website" column="website"/>
|
||||
<result property="provider" column="provider"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="properties" column="properties" typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="createTimestamp" column="create_timestamp"/>
|
||||
<result property="updateTimestamp" column="update_timestamp"/>
|
||||
@@ -59,48 +60,4 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryLogList" resultMap="appResult">
|
||||
SELECT
|
||||
app.*,
|
||||
cu.id as cu_id,
|
||||
cu.name as cu_name,
|
||||
uu.id as uu_id,
|
||||
uu.id as uu_name
|
||||
FROM
|
||||
(select * from application union select * from application_log) app
|
||||
left join sys_user cu on app.create_user_id = cu.id
|
||||
left join sys_user uu on app.update_user_id = uu.id
|
||||
<where>
|
||||
<if test="id != null and id != ''">
|
||||
AND app.id = #{id}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY app.op_version DESC
|
||||
</select>
|
||||
|
||||
<select id="compare" resultMap="appResult">
|
||||
SELECT
|
||||
app.*,
|
||||
cu.id as cu_id,
|
||||
cu.name as cu_name,
|
||||
uu.id as uu_id,
|
||||
uu.id as uu_name
|
||||
FROM
|
||||
(select * from application union select * from application_log ) app
|
||||
left join sys_user cu on app.create_user_id = cu.id
|
||||
left join sys_user uu on app.update_user_id = uu.id
|
||||
<where>
|
||||
<if test="params.versions != null and params.versions != ''">
|
||||
AND app.op_version in
|
||||
<foreach item="version" collection="params.versions" separator="," open="(" close=")">
|
||||
#{version}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="params.id != null and params.id != ''">
|
||||
AND app.id = #{params.id}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -115,5 +115,7 @@ INSERT INTO `sys_i18n`(`id`, `name`, `code`, `value`, `lang`, `remark`, `update_
|
||||
INSERT INTO `sys_i18n`(`id`, `name`, `code`, `value`, `lang`, `remark`, `update_user_id`, `update_timestamp`) VALUES (187, '201014', 'APP_NOTE_CONTENT_CANNOT_EMPTY', '应用说明内容不能为空', 'zh', '', 'admin', 1724030366000);
|
||||
INSERT INTO `sys_i18n`(`id`, `name`, `code`, `value`, `lang`, `remark`, `update_user_id`, `update_timestamp`) VALUES (189, '201015', 'APP_ATTACHMENT_NOT_EXIST', 'application attachment does not exist', 'en', '', 'admin', 1724030366000);
|
||||
INSERT INTO `sys_i18n`(`id`, `name`, `code`, `value`, `lang`, `remark`, `update_user_id`, `update_timestamp`) VALUES (191, '201015', 'APP_ATTACHMENT_NOT_EXIST', '应用附件不存在', 'zh', '', 'admin', 1724030366000);
|
||||
INSERT INTO `sys_i18n`(`id`, `name`, `code`, `value`, `lang`, `remark`, `update_user_id`, `update_timestamp`) VALUES (193, '201016', 'APP_PROPERTIES_FORMAT_ERROR', 'application properties format error', 'en', '', 'admin', 1724030366000);
|
||||
INSERT INTO `sys_i18n`(`id`, `name`, `code`, `value`, `lang`, `remark`, `update_user_id`, `update_timestamp`) VALUES (195, '201016', 'APP_PROPERTIES_FORMAT_ERROR', '应用属性格式错误', 'zh', '', 'admin', 1724030366000);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
@@ -256,6 +256,7 @@ CREATE TABLE `application` (
|
||||
`website` VARCHAR(1024) NOT NULL DEFAULT '' COMMENT '网站',
|
||||
`provider` VARCHAR(256) NOT NULL DEFAULT '' COMMENT '开发者',
|
||||
`status` VARCHAR(32) NOT NULL DEFAULT '' COMMENT '状态:open,inprogress,done',
|
||||
`properties` VARCHAR(4096) NOT NULL DEFAULT '' COMMENT '属性',
|
||||
`description` text NOT NULL DEFAULT '' COMMENT '描述信息',
|
||||
`create_timestamp` bigint(20) NOT NULL COMMENT '创建时间戳',
|
||||
`update_timestamp` bigint(20) NOT NULL COMMENT '更新时间戳',
|
||||
@@ -281,6 +282,7 @@ CREATE TABLE `application_log` (
|
||||
`website` VARCHAR(1024) NOT NULL DEFAULT '' COMMENT '网站',
|
||||
`provider` VARCHAR(256) NOT NULL DEFAULT '' COMMENT '开发者',
|
||||
`status` VARCHAR(32) NOT NULL DEFAULT '' COMMENT '状态:open,inprogress,done',
|
||||
`properties` VARCHAR(4096) NOT NULL DEFAULT '' COMMENT '属性',
|
||||
`description` text NOT NULL DEFAULT '' COMMENT '描述信息',
|
||||
`create_timestamp` bigint(20) NOT NULL COMMENT '创建时间戳',
|
||||
`update_timestamp` bigint(20) NOT NULL COMMENT '更新时间戳',
|
||||
|
||||
Reference in New Issue
Block a user