图片报警和历史图片修改
parent
8db6d72a51
commit
3f193caab2
@ -1 +1 @@
|
|||||||
#org.springframework.boot.env.EnvironmentPostProcessor=com.shxy.xymanager_framework.config.MyEnvironmentPostProcessor
|
org.springframework.boot.env.EnvironmentPostProcessor=com.shxy.xymanager_framework.config.MyEnvironmentPostProcessor
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.shxy.xymanager_common.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class DyAndLineAndTowerAndTermDto {
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private Integer dyValue;
|
||||||
|
|
||||||
|
private List<LineAndTowerAndTermDto> list;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.shxy.xymanager_common.dto;
|
||||||
|
|
||||||
|
import com.shxy.xymanager_common.entity.Terminals;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class LineAndTowerAndTermDto {
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String bsManufacturer;
|
||||||
|
|
||||||
|
private Integer dyLevel;
|
||||||
|
|
||||||
|
private List<TowerAndTermDto> list;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.shxy.xymanager_common.dto;
|
||||||
|
|
||||||
|
import com.shxy.xymanager_common.entity.Terminals;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class TowerAndTermDto {
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private List<Terminals> list;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.shxy.xymanager_common.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigInteger;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class TerminalImgAlarms implements Serializable {
|
||||||
|
|
||||||
|
private Integer termId;
|
||||||
|
|
||||||
|
private Integer channelId;
|
||||||
|
|
||||||
|
private Integer presetId;
|
||||||
|
|
||||||
|
private Integer photoOrgId;
|
||||||
|
|
||||||
|
private BigInteger alarmTime;
|
||||||
|
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
private String alarmInfo;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
package com.shxy.xymanager_common.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigInteger;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class TerminalImgAlarmsDetails implements Serializable {
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private BigInteger alarmId;
|
||||||
|
|
||||||
|
private Integer label;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String enName;
|
||||||
|
|
||||||
|
private Double prob;
|
||||||
|
|
||||||
|
private Double x;
|
||||||
|
|
||||||
|
private Double y;
|
||||||
|
|
||||||
|
private Double width;
|
||||||
|
|
||||||
|
private Double height;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.shxy.xymanager_dao.dao;
|
||||||
|
|
||||||
|
import com.shxy.xymanager_common.entity.TerminalImgAlarms;
|
||||||
|
|
||||||
|
public interface TerminalImgAlarmsDao {
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(TerminalImgAlarms record);
|
||||||
|
|
||||||
|
int insertSelective(TerminalImgAlarms record);
|
||||||
|
|
||||||
|
TerminalImgAlarms selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(TerminalImgAlarms record);
|
||||||
|
|
||||||
|
int updateByPrimaryKeyWithBLOBs(TerminalImgAlarms record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(TerminalImgAlarms record);
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.shxy.xymanager_dao.dao;
|
||||||
|
|
||||||
|
import com.shxy.xymanager_common.entity.TerminalImgAlarmsDetails;
|
||||||
|
|
||||||
|
public interface TerminalImgAlarmsDetailsDao {
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(TerminalImgAlarmsDetails record);
|
||||||
|
|
||||||
|
int insertSelective(TerminalImgAlarmsDetails record);
|
||||||
|
|
||||||
|
TerminalImgAlarmsDetails selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(TerminalImgAlarmsDetails record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(TerminalImgAlarmsDetails record);
|
||||||
|
}
|
@ -0,0 +1,136 @@
|
|||||||
|
<?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.shxy.xymanager_dao.dao.TerminalImgAlarmsDao">
|
||||||
|
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalImgAlarms">
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||||
|
<result column="term_id" jdbcType="INTEGER" property="termId"/>
|
||||||
|
<result column="channel_id" jdbcType="TINYINT" property="channelId"/>
|
||||||
|
<result column="preset_id" jdbcType="TINYINT" property="presetId"/>
|
||||||
|
<result column="photo_org_id" jdbcType="INTEGER" property="photoOrgId"/>
|
||||||
|
<result column="alarm_time" jdbcType="BIGINT" property="alarmTime"/>
|
||||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
||||||
|
<result column="alarm_info" jdbcType="LONGVARCHAR" property="alarmInfo"/>
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id, term_id, channel_id, preset_id, photo_org_id,alarm_info, alarm_time, create_time
|
||||||
|
</sql>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List"/>
|
||||||
|
from terminal_img_alarms
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectAlarmsDetails" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List"/>
|
||||||
|
from terminal_img_alarms
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
delete from terminal_img_alarms
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalImgAlarms">
|
||||||
|
insert into terminal_img_alarms (id, term_id, channel_id,
|
||||||
|
preset_id, photo_org_id, alarm_time,
|
||||||
|
create_time, alarm_info)
|
||||||
|
values (#{id,jdbcType=BIGINT}, #{termId,jdbcType=INTEGER}, #{channelId,jdbcType=TINYINT},
|
||||||
|
#{presetId,jdbcType=TINYINT}, #{photoOrgId,jdbcType=INTEGER}, #{alarmTime,jdbcType=BIGINT},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{alarmInfo,jdbcType=LONGVARCHAR})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalImgAlarms">
|
||||||
|
insert into terminal_img_alarms
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="termId != null">
|
||||||
|
term_id,
|
||||||
|
</if>
|
||||||
|
<if test="channelId != null">
|
||||||
|
channel_id,
|
||||||
|
</if>
|
||||||
|
<if test="presetId != null">
|
||||||
|
preset_id,
|
||||||
|
</if>
|
||||||
|
<if test="photoOrgId != null">
|
||||||
|
photo_org_id,
|
||||||
|
</if>
|
||||||
|
<if test="alarmTime != null">
|
||||||
|
alarm_time,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="alarmInfo != null">
|
||||||
|
alarm_info,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="termId != null">
|
||||||
|
#{termId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="channelId != null">
|
||||||
|
#{channelId,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="presetId != null">
|
||||||
|
#{presetId,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="photoOrgId != null">
|
||||||
|
#{photoOrgId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="alarmTime != null">
|
||||||
|
#{alarmTime,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="alarmInfo != null">
|
||||||
|
#{alarmInfo,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TerminalImgAlarms">
|
||||||
|
update terminal_img_alarms
|
||||||
|
<set>
|
||||||
|
<if test="termId != null">
|
||||||
|
term_id = #{termId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="channelId != null">
|
||||||
|
channel_id = #{channelId,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="presetId != null">
|
||||||
|
preset_id = #{presetId,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="photoOrgId != null">
|
||||||
|
photo_org_id = #{photoOrgId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="alarmTime != null">
|
||||||
|
alarm_time = #{alarmTime,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="alarmInfo != null">
|
||||||
|
alarm_info = #{alarmInfo,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TerminalImgAlarms">
|
||||||
|
update terminal_img_alarms
|
||||||
|
set term_id = #{termId,jdbcType=INTEGER},
|
||||||
|
channel_id = #{channelId,jdbcType=TINYINT},
|
||||||
|
preset_id = #{presetId,jdbcType=TINYINT},
|
||||||
|
photo_org_id = #{photoOrgId,jdbcType=INTEGER},
|
||||||
|
alarm_time = #{alarmTime,jdbcType=BIGINT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
@ -0,0 +1,150 @@
|
|||||||
|
<?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.shxy.xymanager_dao.dao.TerminalImgAlarmsDetailsDao">
|
||||||
|
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalImgAlarmsDetails">
|
||||||
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
|
<result column="alarm_id" jdbcType="BIGINT" property="alarmId" />
|
||||||
|
<result column="label" jdbcType="INTEGER" property="label" />
|
||||||
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||||
|
<result column="en_name" jdbcType="VARCHAR" property="enName" />
|
||||||
|
<result column="prob" jdbcType="REAL" property="prob" />
|
||||||
|
<result column="x" jdbcType="REAL" property="x" />
|
||||||
|
<result column="y" jdbcType="REAL" property="y" />
|
||||||
|
<result column="width" jdbcType="REAL" property="width" />
|
||||||
|
<result column="height" jdbcType="REAL" property="height" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id, alarm_id, label, name, en_name, prob, x, y, width, height
|
||||||
|
</sql>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from terminal_img_alarm_details
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
delete from terminal_img_alarm_details
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalImgAlarmsDetails">
|
||||||
|
insert into terminal_img_alarm_details (id, alarm_id, label,
|
||||||
|
name, en_name, prob, x,
|
||||||
|
y, width, height)
|
||||||
|
values (#{id,jdbcType=BIGINT}, #{alarmId,jdbcType=BIGINT}, #{label,jdbcType=INTEGER},
|
||||||
|
#{name,jdbcType=VARCHAR}, #{enName,jdbcType=VARCHAR}, #{prob,jdbcType=REAL}, #{x,jdbcType=REAL},
|
||||||
|
#{y,jdbcType=REAL}, #{width,jdbcType=REAL}, #{height,jdbcType=REAL})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalImgAlarmsDetails">
|
||||||
|
insert into terminal_img_alarm_details
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="alarmId != null">
|
||||||
|
alarm_id,
|
||||||
|
</if>
|
||||||
|
<if test="label != null">
|
||||||
|
label,
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
name,
|
||||||
|
</if>
|
||||||
|
<if test="enName != null">
|
||||||
|
en_name,
|
||||||
|
</if>
|
||||||
|
<if test="prob != null">
|
||||||
|
prob,
|
||||||
|
</if>
|
||||||
|
<if test="x != null">
|
||||||
|
x,
|
||||||
|
</if>
|
||||||
|
<if test="y != null">
|
||||||
|
y,
|
||||||
|
</if>
|
||||||
|
<if test="width != null">
|
||||||
|
width,
|
||||||
|
</if>
|
||||||
|
<if test="height != null">
|
||||||
|
height,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="alarmId != null">
|
||||||
|
#{alarmId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="label != null">
|
||||||
|
#{label,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
#{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="enName != null">
|
||||||
|
#{enName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="prob != null">
|
||||||
|
#{prob,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="x != null">
|
||||||
|
#{x,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="y != null">
|
||||||
|
#{y,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="width != null">
|
||||||
|
#{width,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="height != null">
|
||||||
|
#{height,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TerminalImgAlarmsDetails">
|
||||||
|
update terminal_img_alarm_details
|
||||||
|
<set>
|
||||||
|
<if test="alarmId != null">
|
||||||
|
alarm_id = #{alarmId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="label != null">
|
||||||
|
label = #{label,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="name != null">
|
||||||
|
name = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="enName != null">
|
||||||
|
en_name = #{enName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="prob != null">
|
||||||
|
prob = #{prob,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="x != null">
|
||||||
|
x = #{x,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="y != null">
|
||||||
|
y = #{y,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="width != null">
|
||||||
|
width = #{width,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
<if test="height != null">
|
||||||
|
height = #{height,jdbcType=REAL},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TerminalImgAlarmsDetails">
|
||||||
|
update terminal_img_alarm_details
|
||||||
|
set alarm_id = #{alarmId,jdbcType=BIGINT},
|
||||||
|
label = #{label,jdbcType=INTEGER},
|
||||||
|
name = #{name,jdbcType=VARCHAR},
|
||||||
|
en_name = #{enName,jdbcType=VARCHAR},
|
||||||
|
prob = #{prob,jdbcType=REAL},
|
||||||
|
x = #{x,jdbcType=REAL},
|
||||||
|
y = #{y,jdbcType=REAL},
|
||||||
|
width = #{width,jdbcType=REAL},
|
||||||
|
height = #{height,jdbcType=REAL}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue