Commit a5769078 authored by wuxiaokai's avatar wuxiaokai

路网管理-路口管理

parent 116b8526
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
<result column="polylines" property="polylines" jdbcType="LONGVARCHAR"/> <result column="polylines" property="polylines" jdbcType="LONGVARCHAR"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, code, name, type, parent, location, gmt_create, gmt_modified id, code, name, type, parent, location, gmt_create, gmt_modified
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
polylines polylines
</sql> </sql>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer"> <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
...@@ -29,19 +29,18 @@ ...@@ -29,19 +29,18 @@
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_base_area_info delete
where id = #{id,jdbcType=INTEGER} from t_base_area_info
</delete> where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="net.wanji.web.entity.TBaseAreaInfo"> <insert id="insert" parameterType="net.wanji.web.entity.TBaseAreaInfo">
insert into t_base_area_info (id, code, name, insert into t_base_area_info (id, code, name,
type, parent, location, type, parent, location,
gmt_create, gmt_modified, polylines gmt_create, gmt_modified, polylines)
) values (#{id,jdbcType=INTEGER}, #{code,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{parent,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT}, #{parent,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{polylines,jdbcType=LONGVARCHAR})
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{polylines,jdbcType=LONGVARCHAR} </insert>
)
</insert>
<insert id="insertSelective" parameterType="net.wanji.web.entity.TBaseAreaInfo"> <insert id="insertSelective" parameterType="net.wanji.web.entity.TBaseAreaInfo">
insert into t_base_area_info insert into t_base_area_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -134,26 +133,26 @@ ...@@ -134,26 +133,26 @@
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="net.wanji.web.entity.TBaseAreaInfo"> <update id="updateByPrimaryKeyWithBLOBs" parameterType="net.wanji.web.entity.TBaseAreaInfo">
update t_base_area_info update t_base_area_info
set code = #{code,jdbcType=INTEGER}, set code = #{code,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT}, type = #{type,jdbcType=TINYINT},
parent = #{parent,jdbcType=INTEGER}, parent = #{parent,jdbcType=INTEGER},
location = #{location,jdbcType=VARCHAR}, location = #{location,jdbcType=VARCHAR},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}, gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
polylines = #{polylines,jdbcType=LONGVARCHAR} polylines = #{polylines,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKey" parameterType="net.wanji.web.entity.TBaseAreaInfo"> <update id="updateByPrimaryKey" parameterType="net.wanji.web.entity.TBaseAreaInfo">
update t_base_area_info update t_base_area_info
set code = #{code,jdbcType=INTEGER}, set code = #{code,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT}, type = #{type,jdbcType=TINYINT},
parent = #{parent,jdbcType=INTEGER}, parent = #{parent,jdbcType=INTEGER},
location = #{location,jdbcType=VARCHAR}, location = #{location,jdbcType=VARCHAR},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP} gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
...@@ -28,30 +28,36 @@ ...@@ -28,30 +28,36 @@
<result column="gmt_create" property="gmtCreate" jdbcType="TIMESTAMP"/> <result column="gmt_create" property="gmtCreate" jdbcType="TIMESTAMP"/>
<result column="gmt_modified" property="gmtModified" jdbcType="TIMESTAMP"/> <result column="gmt_modified" property="gmtModified" jdbcType="TIMESTAMP"/>
</resultMap> </resultMap>
<sql id="Base_Column_List">
id, name, type, level, area_code, location, is_signal, is_start, is_send, gmt_create,
gmt_modified
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String"> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
select select id,
<include refid="Base_Column_List"/> name,
type,
level,
area_code,
location,
is_signal,
is_start,
is_send,
gmt_create,
gmt_modified
from t_base_cross_info from t_base_cross_info
where id = #{id,jdbcType=CHAR} where id = #{id,jdbcType=CHAR}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_base_cross_info delete
where id = #{id,jdbcType=CHAR} from t_base_cross_info
</delete> where id = #{id,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="net.wanji.web.entity.TBaseCrossInfo"> <insert id="insert" parameterType="net.wanji.web.entity.TBaseCrossInfo">
insert into t_base_cross_info (id, name, type, insert into t_base_cross_info (id, name, type,
level, area_code, location, level, area_code, location,
is_signal, is_start, is_send, is_signal, is_start, is_send,
gmt_create, gmt_modified) gmt_create, gmt_modified)
values (#{id,jdbcType=CHAR}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, values (#{id,jdbcType=CHAR}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},
#{level,jdbcType=TINYINT}, #{areaCode,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR}, #{level,jdbcType=TINYINT}, #{areaCode,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR},
#{isSignal,jdbcType=TINYINT}, #{isStart,jdbcType=TINYINT}, #{isSend,jdbcType=TINYINT}, #{isSignal,jdbcType=TINYINT}, #{isStart,jdbcType=TINYINT}, #{isSend,jdbcType=TINYINT},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}) #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="net.wanji.web.entity.TBaseCrossInfo"> <insert id="insertSelective" parameterType="net.wanji.web.entity.TBaseCrossInfo">
insert into t_base_cross_info insert into t_base_cross_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -162,22 +168,23 @@ ...@@ -162,22 +168,23 @@
where id = #{id,jdbcType=CHAR} where id = #{id,jdbcType=CHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="net.wanji.web.entity.TBaseCrossInfo"> <update id="updateByPrimaryKey" parameterType="net.wanji.web.entity.TBaseCrossInfo">
update t_base_cross_info update t_base_cross_info
set name = #{name,jdbcType=VARCHAR}, set name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT}, type = #{type,jdbcType=TINYINT},
level = #{level,jdbcType=TINYINT}, level = #{level,jdbcType=TINYINT},
area_code = #{areaCode,jdbcType=INTEGER}, area_code = #{areaCode,jdbcType=INTEGER},
location = #{location,jdbcType=VARCHAR}, location = #{location,jdbcType=VARCHAR},
is_signal = #{isSignal,jdbcType=TINYINT}, is_signal = #{isSignal,jdbcType=TINYINT},
is_start = #{isStart,jdbcType=TINYINT}, is_start = #{isStart,jdbcType=TINYINT},
is_send = #{isSend,jdbcType=TINYINT}, is_send = #{isSend,jdbcType=TINYINT},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP} gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=CHAR} where id = #{id,jdbcType=CHAR}
</update> </update>
<select id="selectAll" parameterType="net.wanji.web.vo.CrossInfoVO" resultMap="SelectAllMap"> <select id="selectAll" parameterType="net.wanji.web.vo.CrossInfoVO" resultMap="SelectAllMap">
<bind name="startNum" value="(pageNum - 1) * pageSize"/> <bind name="startNum" value="(pageNum - 1) * pageSize"/>
select c.id,c.name,c.type,c.level,c.area_code,a.name area_name,c.location,c.is_signal,c.is_start,c.is_send,c.gmt_create,c.gmt_modified select c.id,c.name,c.type,c.level,c.area_code,a.name
area_name,c.location,c.is_signal,c.is_start,c.is_send,c.gmt_create,c.gmt_modified
from t_base_cross_info c from t_base_cross_info c
left join t_base_area_info a on c.area_code=a.code left join t_base_area_info a on c.area_code=a.code
<where> <where>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment