|
|
@@ -14,8 +14,10 @@
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
+ <result property="enterpriseId" column="enterprise_id" />
|
|
|
+ <result property="status" column="status_" />
|
|
|
</resultMap>
|
|
|
- <insert id="insert" parameterType="TrainingInfo">
|
|
|
+ <insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.TrainingInfo">
|
|
|
<!--
|
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
|
select sys_guid() from dual
|
|
|
@@ -23,7 +25,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_training_info
|
|
|
- (id_,name_,title_,content_,file_,create_by,create_time,update_by,update_time,del_flag)
|
|
|
+ (id_,name_,title_,content_,file_,create_by,create_time,update_by,update_time,del_flag,enterprise_id,status_)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
|
@@ -36,13 +38,15 @@
|
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
|
+,#{enterpriseId,jdbcType=VARCHAR}
|
|
|
+,#{status,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
|
<delete id="delete" parameterType="string">
|
|
|
delete from base_training_info where id_=#{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
- <update id="update" parameterType="TrainingInfo">
|
|
|
+ <update id="update" parameterType="com.jpsoft.employment.modules.base.entity.TrainingInfo">
|
|
|
update base_training_info
|
|
|
<set>
|
|
|
<if test="name!=null">
|
|
|
@@ -72,12 +76,17 @@
|
|
|
<if test="delFlag!=null">
|
|
|
del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
|
</if>
|
|
|
+ <if test="enterpriseId!=null">
|
|
|
+ enterprise_id=#{enterpriseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="status!=null">
|
|
|
+ status_=#{status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
|
<select id="get" parameterType="string" resultMap="TrainingInfoMap">
|
|
|
- select
|
|
|
-id_,name_,title_,content_,file_,create_by,create_time,update_by,update_time,del_flag from base_training_info where id_=#{0}
|
|
|
+ select * from base_training_info where id_=#{0}
|
|
|
</select>
|
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
|
select count(*) from base_training_info where id_=#{0}
|
|
|
@@ -90,6 +99,7 @@ id_,name_,title_,content_,file_,create_by,create_time,update_by,update_time,del_
|
|
|
select * from base_training_info
|
|
|
]]>
|
|
|
<where>
|
|
|
+ del_flag = false
|
|
|
<if test="searchParams.id != null">
|
|
|
and ID_ like #{searchParams.id}
|
|
|
</if>
|