|
@@ -18,8 +18,8 @@
|
|
<result property="status" column="status_" />
|
|
<result property="status" column="status_" />
|
|
<result property="thumbnailImage" column="thumbnail_image" />
|
|
<result property="thumbnailImage" column="thumbnail_image" />
|
|
<result property="endTime" column="end_time" />
|
|
<result property="endTime" column="end_time" />
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ <result property="codeImage" column="code_image" />
|
|
|
|
+ <result property="phone" column="phone_" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.TrainingInfo">
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.TrainingInfo">
|
|
<!--
|
|
<!--
|
|
@@ -29,7 +29,9 @@
|
|
-->
|
|
-->
|
|
<![CDATA[
|
|
<![CDATA[
|
|
insert into base_training_info
|
|
insert into base_training_info
|
|
- (id_,name_,title_,content_,file_,create_by,create_time,update_by,update_time,del_flag,enterprise_id,status_,thumbnail_image,end_time)
|
|
|
|
|
|
+ (id_,name_,title_,content_,file_,create_by,create_time,
|
|
|
|
+ update_by,update_time,del_flag,enterprise_id,status_,
|
|
|
|
+ thumbnail_image,end_time,code_image,phone_)
|
|
values
|
|
values
|
|
(
|
|
(
|
|
#{id,jdbcType=VARCHAR}
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -46,6 +48,8 @@
|
|
,#{status,jdbcType=VARCHAR}
|
|
,#{status,jdbcType=VARCHAR}
|
|
,#{thumbnailImage,jdbcType=VARCHAR}
|
|
,#{thumbnailImage,jdbcType=VARCHAR}
|
|
,#{endTime,jdbcType= TIMESTAMP }
|
|
,#{endTime,jdbcType= TIMESTAMP }
|
|
|
|
+,#{codeImage,jdbcType=VARCHAR}
|
|
|
|
+,#{phone,jdbcType=VARCHAR}
|
|
)
|
|
)
|
|
]]>
|
|
]]>
|
|
</insert>
|
|
</insert>
|
|
@@ -94,6 +98,12 @@
|
|
<if test="endTime!=null">
|
|
<if test="endTime!=null">
|
|
end_time=#{endTime,jdbcType= TIMESTAMP },
|
|
end_time=#{endTime,jdbcType= TIMESTAMP },
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="codeImage!=null">
|
|
|
|
+ code_image=#{codeImage,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="phone!=null">
|
|
|
|
+ phone_=#{phone,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id_=#{id}
|
|
where id_=#{id}
|
|
</update>
|
|
</update>
|