|
|
|
@ -106,8 +106,9 @@
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertIgnoreNull" parameterType="com.engine.organization.entity.personnelcard.po.CardAccessPO" databaseId="oracle">
|
|
|
|
|
<selectKey keyProperty="id" resultType="long" order="AFTER">
|
|
|
|
|
<insert id="insertIgnoreNull" parameterType="com.engine.organization.entity.personnelcard.po.CardAccessPO"
|
|
|
|
|
databaseId="oracle">
|
|
|
|
|
<selectKey keyProperty="id" resultType="long" order="AFTER">
|
|
|
|
|
select JCL_ORG_CARDACCESS_ID.currval from dual
|
|
|
|
|
</selectKey>
|
|
|
|
|
INSERT INTO jcl_org_cardaccess
|
|
|
|
@ -218,7 +219,7 @@
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="custom =case" suffix="end,">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index">
|
|
|
|
|
when id=#{item.id} then #{item.custom}
|
|
|
|
|
when id=#{item.id} then #{item.custom}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="update_time =case" suffix="end,">
|
|
|
|
@ -235,6 +236,50 @@
|
|
|
|
|
</foreach>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="saveCardAccess" parameterType="java.util.List" databaseId="postgresql">
|
|
|
|
|
update jcl_org_cardaccess
|
|
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
|
|
<trim prefix="status =case" suffix="end,">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index">
|
|
|
|
|
<if test="item.status != null">
|
|
|
|
|
when id=#{item.id} then #{item.status}
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="all_people =case" suffix="end,">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index">
|
|
|
|
|
<if test="item.allPeople != null">
|
|
|
|
|
when id=#{item.id} then #{item.allPeople}
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="superior =case" suffix="end,">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index">
|
|
|
|
|
<if test="item.superior != null">
|
|
|
|
|
when id=#{item.id} then #{item.superior}
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="all_superior =case" suffix="end,">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index">
|
|
|
|
|
<if test="item.allSuperior != null">
|
|
|
|
|
when id=#{item.id} then #{item.allSuperior}
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="custom =case" suffix="end,">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index">
|
|
|
|
|
when id=#{item.id} then #{item.custom}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
update_time=now(),
|
|
|
|
|
</trim>
|
|
|
|
|
where
|
|
|
|
|
<foreach collection="dataList" separator="or" item="item" index="index">
|
|
|
|
|
id=#{item.id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="deleteByIds">
|
|
|
|
|
UPDATE jcl_org_cardaccess
|
|
|
|
|
SET delete_type = 1
|
|
|
|
|