|
|
@ -178,28 +178,25 @@
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
|
insert into mntn_cmd_history (id, term_id, `name`,
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
cmd, `desc`, `status`,
|
|
|
|
</selectKey>
|
|
|
|
create_time, publish_time, `result`,
|
|
|
|
insert into mntn_cmd_history (term_id, `name`, cmd,
|
|
|
|
res_time, content)
|
|
|
|
`desc`, `status`, create_time,
|
|
|
|
values (#{id,jdbcType=BIGINT}, #{termId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
|
|
|
|
publish_time, `result`, res_time,
|
|
|
|
#{cmd,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
|
content)
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{publishTime,jdbcType=TIMESTAMP}, #{result,jdbcType=INTEGER},
|
|
|
|
values (#{termId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{cmd,jdbcType=VARCHAR},
|
|
|
|
#{resTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR})
|
|
|
|
#{desc,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
#{publishTime,jdbcType=TIMESTAMP}, #{result,jdbcType=INTEGER}, #{resTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
#{content,jdbcType=LONGVARCHAR})
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.MntnCmdHistory">
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.MntnCmdHistory">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
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
|
|
|
|
insert into mntn_cmd_history
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
|
|
|
id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="termId != null">
|
|
|
|
<if test="termId != null">
|
|
|
|
term_id,
|
|
|
|
term_id,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -232,6 +229,9 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
|
|
|
#{id,jdbcType=BIGINT},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="termId != null">
|
|
|
|
<if test="termId != null">
|
|
|
|
#{termId,jdbcType=INTEGER},
|
|
|
|
#{termId,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|