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.
78 lines
2.8 KiB
XML
78 lines
2.8 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.TSamplingSiteImageMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.cuit.solarenergy.entity.TSamplingSiteImage">
|
|
<id property="id" column="id" jdbcType="OTHER"/>
|
|
<result property="fatherId" column="father_id" jdbcType="VARCHAR"/>
|
|
<result property="pictureAdd" column="picture_add" jdbcType="VARCHAR"/>
|
|
<result property="pictureMinus" column="picture_minus" jdbcType="VARCHAR"/>
|
|
<result property="videoAdd" column="video_add" jdbcType="VARCHAR"/>
|
|
<result property="videoMinus" column="video_minus" jdbcType="VARCHAR"/>
|
|
<result property="uavAdd" column="uav_add" jdbcType="VARCHAR"/>
|
|
<result property="uavMinus" column="uav_minus" jdbcType="VARCHAR"/>
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
<result property="isDeleted" column="is_deleted" jdbcType="INTEGER"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
id,father_id,picture_add,
|
|
picture_minus,video_add,video_minus,
|
|
uav_add,uav_minus,create_time,
|
|
update_time,is_deleted
|
|
</sql>
|
|
<select id="getSitePictures" resultType="java.lang.String">
|
|
SELECT
|
|
file_url_min
|
|
FROM
|
|
t_minio
|
|
WHERE
|
|
#{siteId} LIKE CONCAT( t_minio.stream, '%' )
|
|
AND file_type = "PIC"
|
|
AND t_minio.is_deleted = 0
|
|
</select>
|
|
<select id="getSiteVideos" resultType="java.lang.String">
|
|
SELECT
|
|
minio_id
|
|
FROM
|
|
t_minio
|
|
WHERE
|
|
#{siteId} LIKE CONCAT( t_minio.stream, '%' )
|
|
AND file_type = "AVI"
|
|
AND t_minio.is_deleted = 0
|
|
</select>
|
|
<!-- 通过缩略图查询真实图片URL-->
|
|
<select id="getRealPictureForOne" resultType="java.lang.String">
|
|
SELECT
|
|
minio_id
|
|
FROM
|
|
t_minio
|
|
WHERE
|
|
file_url_min = #{simplePicture}
|
|
AND t_minio.is_deleted = 0
|
|
</select>
|
|
<!-- 通过缩略图查询真实视频URL-->
|
|
<select id="getRealVideoForOne" resultType="java.lang.String">
|
|
SELECT
|
|
minio_id
|
|
FROM
|
|
t_minio
|
|
WHERE
|
|
file_url_min = #{simpleVideo}
|
|
AND t_minio.is_deleted = 0
|
|
</select>
|
|
<!-- 通过缩略图查询真实视频URL-->
|
|
<select id="getRealUAVForOne" resultType="java.lang.String">
|
|
SELECT
|
|
uav_add
|
|
FROM
|
|
t_sampling_site_image
|
|
WHERE
|
|
uav_minus = #{simpleUAV}
|
|
AND is_deleted = 0
|
|
</select>
|
|
</mapper>
|