|
|
|
@ -19,13 +19,14 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap id="PhotoMarkMap" type="com.shxy.xymanager_common.dto.PhotoMarkDto">
|
|
|
|
|
<result column="id" jdbcType="INTEGER" property="markId"/>
|
|
|
|
|
<result column="width" jdbcType="INTEGER" property="width"/>
|
|
|
|
|
<result column="mark_id" jdbcType="INTEGER" property="markId"/>
|
|
|
|
|
<result column="height" jdbcType="INTEGER" property="height"/>
|
|
|
|
|
<result column="color" jdbcType="VARCHAR" property="color"/>
|
|
|
|
|
<result column="boder_width" jdbcType="SMALLINT" property="boderWidth"/>
|
|
|
|
|
<result column="path" jdbcType="VARCHAR" property="path"/>
|
|
|
|
|
<collection property="list" javaType="list" ofType="com.shxy.xymanager_common.dto.TerminalChannelsDto">
|
|
|
|
|
<collection property="list" javaType="list" ofType="com.shxy.xymanager_common.dto.TermChannelCoordinateDto">
|
|
|
|
|
<result column="x1" jdbcType="FLOAT" property="x1"/>
|
|
|
|
|
<result column="x2" jdbcType="FLOAT" property="x2"/>
|
|
|
|
|
<result column="y1" jdbcType="FLOAT" property="y1"/>
|
|
|
|
@ -462,6 +463,7 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectPhotoMark" resultMap="PhotoMarkMap" parameterType="com.shxy.xymanager_common.vo.MarkReqVo">
|
|
|
|
|
select
|
|
|
|
|
tpm.id as id,
|
|
|
|
|
tpm.width as width,
|
|
|
|
|
tpm.height as height,
|
|
|
|
|
tpm.color as color,
|
|
|
|
@ -474,20 +476,20 @@
|
|
|
|
|
tpmp.y2 as y2,
|
|
|
|
|
tp.path as path
|
|
|
|
|
from
|
|
|
|
|
terminal_photo_marks tpm left join terminal_photo_mark_paths tpmp on tpmp.mark_id = tpm.id
|
|
|
|
|
left join
|
|
|
|
|
(
|
|
|
|
|
SELECT path,term_id,channel_id
|
|
|
|
|
from terminal_photos where id = (select max(id) from terminal_photos where media_type =0 and
|
|
|
|
|
term_id = #{termId} and channel_id = #{channelId})
|
|
|
|
|
)tp on tpm.term_id = tp.term_id and tpm.channel_id = tp.channel_id
|
|
|
|
|
where tpm.term_id = #{termId} and tpm.channel_id = #{channelId}
|
|
|
|
|
)tp left join terminal_photo_marks tpm on tpm.term_id = tp.term_id and tpm.channel_id = tp.channel_id
|
|
|
|
|
|
|
|
|
|
left join terminal_photo_mark_paths tpmp on tpmp.mark_id = tpm.id
|
|
|
|
|
where tp.term_id = #{termId} and tp.channel_id = #{channelId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectPhotoWithoutPic" resultMap="PhotoMarkMap" parameterType="com.shxy.xymanager_common.vo.MarkReqVo">
|
|
|
|
|
select
|
|
|
|
|
tpm.id as id,
|
|
|
|
|
tpm.width as width,
|
|
|
|
|
tpm.height as height,
|
|
|
|
|
tpm.color as color,
|
|
|
|
|