1. update <include refid="main_table"/>
    2. <trim prefix="set" suffixOverrides=",">
    3. <trim prefix="mark_name = case" suffix="end ,">
    4. <foreach collection="businessMarkBeanList" item="item" index="index">
    5. <if test="item.markName != null and '' != item.markName">
    6. when id = #{item.id}
    7. then #{item.markName}
    8. </if>
    9. </foreach>
    10. </trim>
    11. <trim prefix="name_path = case" suffix="end ,">
    12. <foreach collection="businessMarkBeanList" item="item" index="index">
    13. <if test="item.namePath != null and '' != item.namePath">
    14. when id = #{item.id}
    15. then #{item.namePath}
    16. </if>
    17. </foreach>
    18. </trim>
    19. </trim>
    20. where id in
    21. <foreach collection="businessMarkBeanList" item="item" index="index" separator="," open="(" close=")">
    22. #{item.id}
    23. </foreach>