You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
2.0 KiB
XML
46 lines
2.0 KiB
XML
<?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="com.cuit.solarenergy.mapper.TMinioMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.cuit.solarenergy.entity.TMinio">
|
|
<id property="id" column="id" jdbcType="INTEGER"/>
|
|
<result property="stream" column="stream" jdbcType="VARCHAR"/>
|
|
<result property="fileType" column="file_type" jdbcType="VARCHAR"/>
|
|
<result property="fileSize" column="file_size" jdbcType="VARCHAR"/>
|
|
<result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
|
|
<result property="minioId" column="minio_id" jdbcType="VARCHAR"/>
|
|
<result property="fileName" column="file_name" jdbcType="VARCHAR"/>
|
|
<result property="isDeleted" column="is_deleted" jdbcType="CHAR"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
id,stream,file_type,
|
|
file_size,file_url,minio_id,
|
|
file_name,is_deleted
|
|
</sql>
|
|
<select id="getList" resultType="com.cuit.solarenergy.entity.TMinio">
|
|
SELECT
|
|
*
|
|
FROM
|
|
t_minio mi
|
|
<where>
|
|
mi.is_deleted = 0
|
|
<if test="stream != null and stream != '' ">
|
|
AND mi.stream = #{stream}
|
|
</if>
|
|
<if test="fileType != null and fileType != '' ">
|
|
AND mi.file_type = #{fileType}
|
|
</if>
|
|
<if test="keywords != null and keywords != ''">
|
|
AND (mi.file_name LIKE CONCAT('%',#{keywords}, '%' )
|
|
OR mi.file_size LIKE CONCAT('%',#{keywords}, '%' )
|
|
OR mi.file_url_min LIKE CONCAT('%',#{keywords}, '%' )
|
|
OR mi.create_time LIKE CONCAT('%',#{keywords}, '%' )
|
|
OR mi.file_type LIKE CONCAT('%',#{keywords}, '%' )
|
|
OR mi.stream LIKE CONCAT('%',#{keywords}, '%' ))
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper> |