|
@@ -13,11 +13,12 @@
|
|
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
|
|
<result property="dateUpdate" column="date_update" jdbcType="TIMESTAMP"/>
|
|
|
<result property="shortName" column="short_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="seq" column="SEQ" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 基本字段 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, type, path, date_create, app_id, create_by, update_by, status, date_update, short_name </sql>
|
|
|
+ id, type, path, date_create, app_id, create_by, update_by, status, date_update, short_name, SEQ </sql>
|
|
|
|
|
|
<!-- 查询单个 -->
|
|
|
<select id="selectById" resultMap="MessageTypeMap">
|
|
@@ -71,26 +72,29 @@
|
|
|
<if test="shortName != null and shortName != ''">
|
|
|
and short_name = #{shortName}
|
|
|
</if>
|
|
|
+ <if test="seq != null">
|
|
|
+ and SEQ = #{seq}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<!-- 新增所有列 -->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
insert into uims_message_type(id, type, path, date_create, app_id, create_by, update_by, status, date_update,
|
|
|
- short_name)
|
|
|
+ short_name, SEQ)
|
|
|
values (#{id}, #{type}, #{path}, #{dateCreate}, #{appId}, #{createBy}, #{updateBy}, #{status}, #{dateUpdate},
|
|
|
- #{shortName})
|
|
|
+ #{shortName}, #{seq})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 批量新增 -->
|
|
|
<insert id="batchInsert">
|
|
|
insert into uims_message_type(id, type, path, date_create, app_id, create_by, update_by, status, date_update,
|
|
|
- short_name)
|
|
|
+ short_name, SEQ)
|
|
|
values
|
|
|
<foreach collection="messageTypes" item="item" index="index" separator=",">
|
|
|
(
|
|
|
#{item.id}, #{item.type}, #{item.path}, #{item.dateCreate}, #{item.appId}, #{item.createBy},
|
|
|
- #{item.updateBy}, #{item.status}, #{item.dateUpdate}, #{item.shortName} )
|
|
|
+ #{item.updateBy}, #{item.status}, #{item.dateUpdate}, #{item.shortName}, #{item.seq} )
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -125,6 +129,9 @@
|
|
|
<if test="shortName != null and shortName != ''">
|
|
|
short_name = #{shortName},
|
|
|
</if>
|
|
|
+ <if test="seq != null">
|
|
|
+ SEQ = #{seq},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -176,6 +183,9 @@
|
|
|
<if test="messageType.shortName != null and messageType.shortName != ''">
|
|
|
and short_name = #{messageType.shortName}
|
|
|
</if>
|
|
|
+ <if test="messageType.seq != null">
|
|
|
+ and SEQ = #{messageType.seq}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
</mapper>
|