|
|
@ -13,13 +13,14 @@ |
|
|
|
<result property="orderNm" column="order_nm" jdbcType="DECIMAL"/> |
|
|
|
<result property="pubDate" column="pub_date" jdbcType="TIMESTAMP"/> |
|
|
|
<result property="createUser" column="create_user" jdbcType="VARCHAR"/> |
|
|
|
<result property="relationSceneCount" column="relation_scene_count" jdbcType="INTEGER"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id |
|
|
|
,name,parent_id, |
|
|
|
xpath,dir_seq,order_nm,pub_date, |
|
|
|
create_user |
|
|
|
create_user,relation_scene_count |
|
|
|
</sql> |
|
|
|
|
|
|
|
<!--获取指定场景指定类型所有的目录--> |
|
|
@ -54,9 +55,10 @@ |
|
|
|
<!--新增实体对象--> |
|
|
|
<insert id="insertAll"> |
|
|
|
insert into sy_dir |
|
|
|
(id, name, parent_id, xpath, dir_seq, order_nm, pub_date, create_user, is_valid) |
|
|
|
(id, name, parent_id, xpath, dir_seq, order_nm, pub_date, create_user, relation_scene_count, is_valid) |
|
|
|
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, |
|
|
|
#{xpath,jdbcType=VARCHAR}, #{dirSeq,jdbcType=VARCHAR}, #{orderNm,jdbcType=NUMERIC}, #{pubDate}, #{createUser,jdbcType=VARCHAR}, 1) |
|
|
|
#{xpath,jdbcType=VARCHAR}, #{dirSeq,jdbcType=VARCHAR}, #{orderNm,jdbcType=NUMERIC}, #{pubDate}, |
|
|
|
#{createUser,jdbcType=VARCHAR}, #{relationSceneCount,jdbcType=INTEGER}, 1) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!--更新实体对象--> |
|
|
@ -70,6 +72,7 @@ |
|
|
|
<if test="orderNm != null">order_nm=#{orderNm,jdbcType=NUMERIC},</if> |
|
|
|
<if test="pubDate != null">pub_date=#{pubDate},</if> |
|
|
|
<if test="createUser != null">create_user=#{createUser,jdbcType=VARCHAR},</if> |
|
|
|
<if test="relationSceneCount != null">#{relationSceneCount,jdbcType=INTEGER},</if> |
|
|
|
</set> |
|
|
|
where is_valid = 1 |
|
|
|
and |
|
|
|