|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
<if test="typeId != null ">
|
|
|
|
|
type_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="typeName != null || typeName != ''">
|
|
|
|
|
<if test="typeName != null and typeName != ''">
|
|
|
|
|
type_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null ">
|
|
|
|
@ -77,7 +77,7 @@
|
|
|
|
|
<if test="typeId != null ">
|
|
|
|
|
#{typeId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="typeName != null || typeName != ''">
|
|
|
|
|
<if test="typeName != null and typeName != ''">
|
|
|
|
|
#{typeName},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null ">
|
|
|
|
@ -119,7 +119,7 @@
|
|
|
|
|
<if test="typeId != null ">
|
|
|
|
|
type_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="typeName != null || typeName != ''">
|
|
|
|
|
<if test="typeName != null and typeName != ''">
|
|
|
|
|
type_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null ">
|
|
|
|
@ -154,7 +154,7 @@
|
|
|
|
|
<if test="typeId != null ">
|
|
|
|
|
#{typeId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="typeName != null || typeName != ''">
|
|
|
|
|
<if test="typeName != null and typeName != ''">
|
|
|
|
|
#{typeName},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null ">
|
|
|
|
@ -189,30 +189,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="saveCardAccess">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index" open="" close="" separator=";">
|
|
|
|
|
<update id="saveCardAccess" parameterType="java.util.List">
|
|
|
|
|
update jcl_org_cardaccess
|
|
|
|
|
<set>
|
|
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
|
|
<trim prefix="status =case" suffix="end,">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index">
|
|
|
|
|
<if test="item.status != null">
|
|
|
|
|
status = #{item.status},
|
|
|
|
|
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">
|
|
|
|
|
all_people = #{item.allPeople},
|
|
|
|
|
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">
|
|
|
|
|
superior = #{item.superior},
|
|
|
|
|
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">
|
|
|
|
|
all_superior = #{item.allSuperior},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="item.custom != null">
|
|
|
|
|
custom = #{item.custom},
|
|
|
|
|
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>
|
|
|
|
|
<trim prefix="update_time =case" suffix="end,">
|
|
|
|
|
<foreach collection="dataList" item="item" index="index">
|
|
|
|
|
<if test="item.updateTime != null">
|
|
|
|
|
update_time = #{item.updateTime}
|
|
|
|
|
when id=#{item.id} then #{item.updateTime}
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{item.id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
where
|
|
|
|
|
<foreach collection="dataList" separator="or" item="item" index="index" >
|
|
|
|
|
id=#{item.id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|