|
|
|
@ -139,26 +139,23 @@
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
-->
|
|
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
|
</selectKey>
|
|
|
|
|
insert into mntn_cmd_history (term_id, `name`, cmd,
|
|
|
|
|
`desc`, `status`, create_time,
|
|
|
|
|
publish_time)
|
|
|
|
|
values (#{termId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{cmd,jdbcType=VARCHAR},
|
|
|
|
|
#{desc,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{publishTime,jdbcType=TIMESTAMP})
|
|
|
|
|
insert into mntn_cmd_history (id, term_id, `name`,
|
|
|
|
|
cmd, `desc`, `status`,
|
|
|
|
|
create_time, publish_time)
|
|
|
|
|
values (#{id,jdbcType=BIGINT}, #{termId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
|
|
|
|
|
#{cmd,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{publishTime,jdbcType=TIMESTAMP})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.MntnCmdHistory">
|
|
|
|
|
<!--
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
-->
|
|
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
|
</selectKey>
|
|
|
|
|
insert into mntn_cmd_history
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="termId != null">
|
|
|
|
|
term_id,
|
|
|
|
|
</if>
|
|
|
|
@ -182,6 +179,9 @@
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=BIGINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="termId != null">
|
|
|
|
|
#{termId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|