|
@@ -78,6 +78,7 @@
|
|
|
<result column="create_time" property="createTime"/>
|
|
<result column="create_time" property="createTime"/>
|
|
|
<result column="update_by" property="updateBy"/>
|
|
<result column="update_by" property="updateBy"/>
|
|
|
<result column="update_time" property="updateTime"/>
|
|
<result column="update_time" property="updateTime"/>
|
|
|
|
|
+ <result column="station_id" property="stationId"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
@@ -154,13 +155,11 @@
|
|
|
create_by,
|
|
create_by,
|
|
|
create_time,
|
|
create_time,
|
|
|
update_by,
|
|
update_by,
|
|
|
- update_time
|
|
|
|
|
|
|
+ update_time,
|
|
|
|
|
+ station_id
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<insert id="insert" parameterType="com.railway.business.catenary.domain.BusZzdzxx">
|
|
<insert id="insert" parameterType="com.railway.business.catenary.domain.BusZzdzxx">
|
|
|
- <selectKey keyProperty="id" order="BEFORE" resultType="String">
|
|
|
|
|
- select replace(uuid(), '-', '') from dual
|
|
|
|
|
- </selectKey>
|
|
|
|
|
INSERT INTO bus_zzdzxx
|
|
INSERT INTO bus_zzdzxx
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test ='null != db'>
|
|
<if test ='null != db'>
|
|
@@ -380,7 +379,10 @@
|
|
|
update_by,
|
|
update_by,
|
|
|
</if>
|
|
</if>
|
|
|
<if test ='null != updateTime'>
|
|
<if test ='null != updateTime'>
|
|
|
- update_time
|
|
|
|
|
|
|
+ update_time,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test ='null != stationId'>
|
|
|
|
|
+ station_id
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -601,7 +603,10 @@
|
|
|
#{updateBy},
|
|
#{updateBy},
|
|
|
</if>
|
|
</if>
|
|
|
<if test ='null != updateTime'>
|
|
<if test ='null != updateTime'>
|
|
|
- #{updateTime}
|
|
|
|
|
|
|
+ #{updateTime},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test ='null != stationId'>
|
|
|
|
|
+ #{stationId}
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -688,6 +693,7 @@
|
|
|
<if test ='null != createTime'>create_time = #{createTime},</if>
|
|
<if test ='null != createTime'>create_time = #{createTime},</if>
|
|
|
<if test ='null != updateBy'>update_by = #{updateBy},</if>
|
|
<if test ='null != updateBy'>update_by = #{updateBy},</if>
|
|
|
<if test ='null != updateTime'>update_time = #{updateTime}</if>
|
|
<if test ='null != updateTime'>update_time = #{updateTime}</if>
|
|
|
|
|
+ <if test ='null != stationId'>station_id = #{stationId}</if>
|
|
|
</set>
|
|
</set>
|
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
|
</update>
|
|
</update>
|
|
@@ -704,9 +710,23 @@
|
|
|
<select id="getList" resultMap="BaseResultMap">
|
|
<select id="getList" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM bus_zzdzxx
|
|
|
|
|
|
|
+ FROM bus_zzdzxx a
|
|
|
|
|
+ left join bus_station b
|
|
|
|
|
+ on a.station_id = b.station_id
|
|
|
<where>
|
|
<where>
|
|
|
- del_flag='0'
|
|
|
|
|
|
|
+ a.del_flag='0'
|
|
|
|
|
+ <if test="stationId!=null and stationId!=''">
|
|
|
|
|
+ and b.station_id=#{stationId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deptId!=null and deptId!=''">
|
|
|
|
|
+ and b.deppt_id=#{deptId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="lineId!=null and lineId!=''">
|
|
|
|
|
+ and b.line_id=#{lineId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="db!=null and db!=''">
|
|
|
|
|
+ and db=#{db}
|
|
|
|
|
+ </if>
|
|
|
<if test="db!=null and db!=''">
|
|
<if test="db!=null and db!=''">
|
|
|
and db=#{db}
|
|
and db=#{db}
|
|
|
</if>
|
|
</if>
|