UPDATE customer_function_detail SET SHOPPING_STATUS = #{shoppingStatus}, UPDATED_BY = #{userId}, UPDATED_TIME = now() WHERE DEL_FLAG = '0' AND CUSTOMER_ID = #{customerId} AND FUNCTION_ID = #{functionId} UPDATE customer_function_detail SET FUNCTION_NAME = #{functionName}, ICON_LARGE_IMG = #{iconLargeImg}, ICON_SMALL_IMG = #{iconSmallImg}, DOMAIN_NAME = #{domainName}, TARGET_LINK = #{targetLink}, UPDATED_BY = #{userId}, UPDATED_TIME = now() WHERE DEL_FLAG = '0' AND CUSTOMER_ID = #{customerId} AND FUNCTION_ID = #{functionId} UPDATE customer_function_detail when customer_id = #{item.customerId} and function_id = #{item.functionId} then #{item.displayOrder} when customer_id = #{item.customerId} and function_id = #{item.functionId} then #{item.updatedBy} updated_time = now() WHERE del_flag = '0' (customer_id = #{item.customerId} and function_id = #{item.functionId})