Commit a5769078 authored by wuxiaokai's avatar wuxiaokai

路网管理-路口管理

parent 116b8526
......@@ -29,18 +29,17 @@
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_base_area_info
delete
from t_base_area_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="net.wanji.web.entity.TBaseAreaInfo">
insert into t_base_area_info (id, code, name,
type, parent, location,
gmt_create, gmt_modified, polylines
)
gmt_create, gmt_modified, polylines)
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=INTEGER}, #{name,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 id="insertSelective" parameterType="net.wanji.web.entity.TBaseAreaInfo">
insert into t_base_area_info
......
......@@ -28,18 +28,24 @@
<result column="gmt_create" property="gmtCreate" jdbcType="TIMESTAMP"/>
<result column="gmt_modified" property="gmtModified" jdbcType="TIMESTAMP"/>
</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
<include refid="Base_Column_List"/>
select id,
name,
type,
level,
area_code,
location,
is_signal,
is_start,
is_send,
gmt_create,
gmt_modified
from t_base_cross_info
where id = #{id,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_base_cross_info
delete
from t_base_cross_info
where id = #{id,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="net.wanji.web.entity.TBaseCrossInfo">
......@@ -177,7 +183,8 @@
</update>
<select id="selectAll" parameterType="net.wanji.web.vo.CrossInfoVO" resultMap="SelectAllMap">
<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
left join t_base_area_info a on c.area_code=a.code
<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