时间拍照表和装置管理状态
parent
e2121bbd92
commit
46eff898b9
@ -0,0 +1,23 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class TerminalPositions implements Serializable {
|
||||
private Integer termId;
|
||||
|
||||
private Byte coordinateType;
|
||||
|
||||
private Short radius;
|
||||
|
||||
private Double latitude;
|
||||
|
||||
private Double longitude;
|
||||
|
||||
private Long updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package com.shxy.xymanager_dao.dao;
|
||||
|
||||
import com.shxy.xymanager_common.entity.TerminalPositions;
|
||||
|
||||
public interface TerminalPositionsDao {
|
||||
TerminalPositions selectByPrimaryKey(Integer termId);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
<?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.TerminalPositionsDao">
|
||||
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalPositions">
|
||||
<id column="term_id" jdbcType="INTEGER" property="termId"/>
|
||||
<result column="coordinate_type" jdbcType="TINYINT" property="coordinateType"/>
|
||||
<result column="radius" jdbcType="SMALLINT" property="radius"/>
|
||||
<result column="latitude" jdbcType="DOUBLE" property="latitude"/>
|
||||
<result column="longitude" jdbcType="DOUBLE" property="longitude"/>
|
||||
<result column="update_time" jdbcType="BIGINT" property="updateTime"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
term_id, coordinate_type, radius, latitude, longitude, update_time
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from terminal_positions
|
||||
where term_id = #{termId,jdbcType=INTEGER}
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue