From 2a64b537e8e3bce9ce030585a3da17d48379c0ad Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期一, 26 五月 2025 15:04:45 +0800
Subject: [PATCH] 修改json类型转换错误
---
aps-modules/aps-gen/src/main/resources/mapper/generator/GenTableMapper.xml | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/aps-modules/aps-gen/src/main/resources/mapper/generator/GenTableMapper.xml b/aps-modules/aps-gen/src/main/resources/mapper/generator/GenTableMapper.xml
index d901fb5..f4716e4 100644
--- a/aps-modules/aps-gen/src/main/resources/mapper/generator/GenTableMapper.xml
+++ b/aps-modules/aps-gen/src/main/resources/mapper/generator/GenTableMapper.xml
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.gen.mapper.GenTableMapper">
- <resultMap type="GenTable" id="GenTableResult">
+ <resultMap type="com.aps.gen.domain.GenTable" id="GenTableResult">
<id property="tableId" column="table_id" />
<result property="tableName" column="table_name" />
<result property="tableComment" column="table_comment" />
@@ -28,7 +28,7 @@
<collection property="columns" javaType="java.util.List" resultMap="GenTableColumnResult" />
</resultMap>
- <resultMap type="GenTableColumn" id="GenTableColumnResult">
+ <resultMap type="com.aps.gen.domain.GenTableColumn" id="GenTableColumnResult">
<id property="columnId" column="column_id" />
<result property="tableId" column="table_id" />
<result property="columnName" column="column_name" />
@@ -57,14 +57,14 @@
select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, tpl_web_type, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from gen_table
</sql>
- <select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
+ <select id="selectGenTableList" parameterType="com.aps.gen.domain.GenTable" resultMap="GenTableResult">
<include refid="selectGenTableVo"/>
<where>
<if test="tableName != null and tableName != ''">
- AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
+ AND lower(table_name) like '%'|| #{tableName}|| '%'
</if>
<if test="tableComment != null and tableComment != ''">
- AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
+ AND lower(table_comment) like '%' || #{tableComment} ||'%'
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
and to_char(create_time,'yyyy-MM-dd') >= to_char(#{params.beginTime},'yyyy-MM-dd')
@@ -75,16 +75,16 @@
</where>
</select>
- <select id="selectDbTableList" parameterType="GenTable" resultMap="GenTableResult">
+ <select id="selectDbTableList" parameterType="com.aps.gen.domain.GenTable" resultMap="GenTableResult">
SELECT table_name, table_comment, create_time, update_time
FROM list_table
WHERE table_name NOT LIKE 'qrtz_%' AND table_name NOT LIKE 'gen_%'
AND table_name NOT IN (select table_name from gen_table)
<if test="tableName != null and tableName != ''">
- AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
+ AND lower(table_name) like '%'|| #{tableName}||'%'
</if>
<if test="tableComment != null and tableComment != ''">
- AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
+ AND lower(table_comment) like '%'|| #{tableComment}||'%'
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
and create_time::date >= to_date(#{params.beginTime},'yyyy-MM-dd')
@@ -135,7 +135,7 @@
order by c.sort
</select>
- <insert id="insertGenTable" parameterType="GenTable" useGeneratedKeys="true" keyProperty="tableId">
+ <insert id="insertGenTable" parameterType="com.aps.gen.domain.GenTable" useGeneratedKeys="true" keyProperty="tableId">
insert into gen_table (
<if test="tableName != null">table_name,</if>
<if test="tableComment != null and tableComment != ''">table_comment,</if>
@@ -169,7 +169,7 @@
)
</insert>
- <update id="updateGenTable" parameterType="GenTable">
+ <update id="updateGenTable" parameterType="com.aps.gen.domain.GenTable">
update gen_table
<set>
<if test="tableName != null">table_name = #{tableName},</if>
--
Gitblit v1.9.3