#20230510 欣影管理平台装置信息查询代码

master
18616268358 2 years ago
parent f063d00504
commit 21b87aa9f5

@ -1,5 +1,6 @@
package com.shxy.xymanager_common.model;
import com.shxy.xymanager_common.dto.TermChannelCoordinateDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -41,19 +42,6 @@ public class PhotoMarkModel implements Serializable {
private String path;
@ApiModelProperty(value = "通道编号和名称", example = "213")
private List<CoordinateBeans> list;
@Data
public static class CoordinateBeans {
@ApiModelProperty(value = "线段起始坐标x", example = "213")
private float x1;
@ApiModelProperty(value = "线段结束坐标x", example = "213")
private float x2;
@ApiModelProperty(value = "线段起始坐标y", example = "213")
private float y1;
@ApiModelProperty(value = "线段结束坐标y", example = "213")
private float y2;
}
private List<TermChannelCoordinateDto> list;
}

@ -39,10 +39,6 @@ public class PhotoMarkVo {
@ApiModelProperty(value = "绘制编号", example = "213")
private Integer id;
@ApiModelProperty(value = "照片编号", example = "213")
private Integer photoId;
@ApiModelProperty(value = "绘制编号", example = "213")
private Date createTime;
@ -51,8 +47,6 @@ public class PhotoMarkVo {
@Data
public static class CoordinateBeans {
@ApiModelProperty(value = "线段ID", example = "213")
private Integer markId;
@ApiModelProperty(value = "线段起始坐标x", example = "213")
private float x1;
@ApiModelProperty(value = "线段结束坐标x", example = "213")

@ -18,22 +18,6 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
</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.TermChannelCoordinateDto">
<result column="x1" jdbcType="FLOAT" property="x1"/>
<result column="x2" jdbcType="FLOAT" property="x2"/>
<result column="y1" jdbcType="FLOAT" property="y1"/>
<result column="y2" jdbcType="FLOAT" property="y2"/>
</collection>
</resultMap>
<resultMap id="PhotoAndLineAndChannelMap" type="com.shxy.xymanager_common.dto.PhotoAndLineAndChannelDto">
<result column="term_id" jdbcType="INTEGER" property="termid"/>
<result column="display_name" jdbcType="VARCHAR" property="displayname"/>
@ -50,6 +34,22 @@
<result column="media_type" jdbcType="VARCHAR" property="mediatype"/>
</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.TermChannelCoordinateDto">
<result column="x1" jdbcType="FLOAT" property="x1"/>
<result column="x2" jdbcType="FLOAT" property="x2"/>
<result column="y1" jdbcType="FLOAT" property="y1"/>
<result column="y2" jdbcType="FLOAT" property="y2"/>
</collection>
</resultMap>
<resultMap id="TermAndChannelLatestPhotoMap" type="com.shxy.xymanager_common.dto.TermAndChannelLatestPhotoMapperDto">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="term_id" jdbcType="INTEGER" property="termid"/>
@ -469,7 +469,6 @@
tpm.color as color,
tpm.boder_width as boder_width,
tpm.id as mark_id,
tpmp.id as path_id,
tpmp.x1 as x1,
tpmp.x2 as x2,
tpmp.y1 as y1,
@ -486,7 +485,6 @@
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,
@ -495,7 +493,6 @@
tpm.color as color,
tpm.boder_width as boder_width,
tpm.id as mark_id,
tpmp.id as path_id,
tpmp.x1 as x1,
tpmp.x2 as x2,
tpmp.y1 as y1,

Loading…
Cancel
Save