|
@@ -8,6 +8,7 @@
|
|
<result property="parentId" column="parent_id" />
|
|
<result property="parentId" column="parent_id" />
|
|
<result property="code" column="code_" />
|
|
<result property="code" column="code_" />
|
|
<result property="name" column="name_" />
|
|
<result property="name" column="name_" />
|
|
|
|
+ <result property="mileage" column="mileage_" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
@@ -22,13 +23,14 @@
|
|
-->
|
|
-->
|
|
<![CDATA[
|
|
<![CDATA[
|
|
insert into base_destination
|
|
insert into base_destination
|
|
- (id_,parent_id,code_,name_,del_flag,create_time,create_by,update_time,update_by)
|
|
|
|
|
|
+ (id_,parent_id,code_,name_,mileage_,del_flag,create_time,create_by,update_time,update_by)
|
|
values
|
|
values
|
|
(
|
|
(
|
|
#{id,jdbcType=VARCHAR}
|
|
#{id,jdbcType=VARCHAR}
|
|
,#{parentId,jdbcType=VARCHAR}
|
|
,#{parentId,jdbcType=VARCHAR}
|
|
,#{code,jdbcType=VARCHAR}
|
|
,#{code,jdbcType=VARCHAR}
|
|
,#{name,jdbcType=VARCHAR}
|
|
,#{name,jdbcType=VARCHAR}
|
|
|
|
+,#{mileage,jdbcType= NUMERIC }
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
@@ -52,9 +54,12 @@
|
|
<if test="name!=null">
|
|
<if test="name!=null">
|
|
name_=#{name,jdbcType=VARCHAR},
|
|
name_=#{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="delFlag!=null">
|
|
|
|
- del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
|
|
|
|
+ <if test="mileage!=null">
|
|
|
|
+ mileage_=#{mileage,jdbcType= NUMERIC },
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="delFlag!=null">
|
|
|
|
+ del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
|
|
+ </if>
|
|
<if test="createTime!=null">
|
|
<if test="createTime!=null">
|
|
create_time=#{createTime,jdbcType= TIMESTAMP },
|
|
create_time=#{createTime,jdbcType= TIMESTAMP },
|
|
</if>
|
|
</if>
|
|
@@ -72,7 +77,7 @@
|
|
</update>
|
|
</update>
|
|
<select id="get" parameterType="string" resultMap="DestinationMap">
|
|
<select id="get" parameterType="string" resultMap="DestinationMap">
|
|
select
|
|
select
|
|
-id_,parent_id,code_,name_,del_flag,create_time,create_by,update_time,update_by from base_destination where id_=#{0}
|
|
|
|
|
|
+id_,parent_id,code_,name_,mileage_,del_flag,create_time,create_by,update_time,update_by from base_destination where id_=#{0}
|
|
</select>
|
|
</select>
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
select count(*) from base_destination where id_=#{0}
|
|
select count(*) from base_destination where id_=#{0}
|