2024-09-28 20:34:13 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="cn.bunny.services.mapper.I18nMapper">
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
|
<resultMap id="BaseResultMap" type="cn.bunny.dao.entity.i18n.I18n">
|
|
|
|
<id column="id" property="id"/>
|
|
|
|
<result column="key_name" property="keyName"/>
|
|
|
|
<result column="translation" property="translation"/>
|
2024-09-30 14:57:43 +08:00
|
|
|
<result column="type_name" property="typeName"/>
|
2024-09-28 20:34:13 +08:00
|
|
|
<result column="create_user" property="createUser"/>
|
|
|
|
<result column="update_user" property="updateUser"/>
|
|
|
|
<result column="update_time" property="updateTime"/>
|
|
|
|
<result column="create_time" property="createTime"/>
|
|
|
|
<result column="is_deleted" property="isDeleted"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
|
<sql id="Base_Column_List">
|
2024-09-30 14:57:43 +08:00
|
|
|
id, key_name, translation, type_name, create_user, update_user, update_time, create_time, is_deleted
|
2024-09-28 20:34:13 +08:00
|
|
|
</sql>
|
|
|
|
|
2024-09-29 23:46:44 +08:00
|
|
|
<!-- 物理删除多语言 -->
|
|
|
|
<delete id="deleteBatchIdsWithPhysics">
|
|
|
|
delete
|
|
|
|
from sys_i18n
|
|
|
|
where id in
|
|
|
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
|
|
#{id}
|
|
|
|
</foreach>
|
|
|
|
</delete>
|
|
|
|
|
2024-09-29 16:51:50 +08:00
|
|
|
<!-- 分页查询多语言内容 -->
|
|
|
|
<select id="selectListByPage" resultType="cn.bunny.dao.entity.i18n.I18n">
|
2024-09-30 14:57:43 +08:00
|
|
|
select
|
|
|
|
<include refid="Base_Column_List"/>
|
2024-09-29 16:51:50 +08:00
|
|
|
from sys_i18n
|
2024-09-30 14:57:43 +08:00
|
|
|
<where>
|
|
|
|
<if test="dto.keyName != null and dto.keyName != ''">
|
2024-10-11 16:47:15 +08:00
|
|
|
and key_name like CONCAT('%',#{dto.keyName},'%')
|
2024-09-30 14:57:43 +08:00
|
|
|
</if>
|
|
|
|
<if test="dto.translation != null and dto.translation != ''">
|
2024-10-11 16:47:15 +08:00
|
|
|
and translation like CONCAT('%',#{dto.translation},'%')
|
2024-09-30 14:57:43 +08:00
|
|
|
</if>
|
|
|
|
<if test="dto.typeName != null and dto.typeName != ''">
|
2024-10-11 16:47:15 +08:00
|
|
|
and type_name like CONCAT('%',#{dto.typeName},'%')
|
2024-09-30 14:57:43 +08:00
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
order by update_time
|
2024-09-29 16:51:50 +08:00
|
|
|
</select>
|
|
|
|
|
2024-09-28 20:34:13 +08:00
|
|
|
</mapper>
|