|
|
|
@ -234,6 +234,111 @@
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertCustomTemplate" parameterType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO"
|
|
|
|
|
keyProperty="id"
|
|
|
|
|
keyColumn="id" useGeneratedKeys="true">
|
|
|
|
|
INSERT INTO JCL_ORG_CUSTOM_TEMPLATE
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="creator != null">
|
|
|
|
|
creator,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
create_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="basicFields != null">
|
|
|
|
|
basic_fields,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="personalFields != null">
|
|
|
|
|
personal_fields,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="workFields != null">
|
|
|
|
|
work_fields,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="creator != null">
|
|
|
|
|
#{creator},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
#{createTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
#{updateTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
#{name},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="basicFields != null">
|
|
|
|
|
#{basicFields},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="personalFields != null">
|
|
|
|
|
#{personalFields},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="workFields != null">
|
|
|
|
|
#{workFields},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertCustomTemplate" parameterType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO"
|
|
|
|
|
databaseId="oracle">
|
|
|
|
|
<selectKey keyProperty="id" resultType="int" order="AFTER">
|
|
|
|
|
select JCL_ORG_CUSTOM_TEMPLATE_ID.currval from dual
|
|
|
|
|
</selectKey>
|
|
|
|
|
INSERT INTO JCL_ORG_CUSTOM_TEMPLATE
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="creator != null">
|
|
|
|
|
creator,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
create_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="basicFields != null">
|
|
|
|
|
basic_fields,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="personalFields != null">
|
|
|
|
|
personal_fields,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="workFields != null">
|
|
|
|
|
work_fields,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="creator != null">
|
|
|
|
|
#{creator},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
#{createTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
#{updateTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="name != null">
|
|
|
|
|
#{name},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="basicFields != null">
|
|
|
|
|
#{basicFields},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="personalFields != null">
|
|
|
|
|
#{personalFields},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="workFields != null">
|
|
|
|
|
#{workFields},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteSearchTemplate">
|
|
|
|
|
delete
|
|
|
|
@ -242,6 +347,13 @@
|
|
|
|
|
and creator = #{userId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteCustomTemplate">
|
|
|
|
|
delete
|
|
|
|
|
from jcl_org_custom_template
|
|
|
|
|
where id = #{id}
|
|
|
|
|
and creator = #{userId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<sql id="likeSql">
|
|
|
|
|
<if test="resourcePO.lastName != null and resourcePO.lastName != ''">
|
|
|
|
|
AND t.lastname like CONCAT('%',#{resourcePO.lastName},'%')
|
|
|
|
|