wlc.`id`, wlc.`tenant_id`, wlc.`points`, wlc.`level`, wlc.`description`, wlc.`create_date`, wlc.`update_date`, wlc.`discount_enable`, wlc.`capability`,wlc.`scale` where wlc.`tenant_id` = #{finalTenantId} and wlc.`id` = #{id} and wlc.`points` = #{points} and wlc.`level` like concat('%', #{level},'%') and wlc.`description` like concat('%', #{description},'%') and wlc.`create_date` = #{createDate} and wlc.`update_date` = #{updateDate} and wlc.`discount_enable` = #{discountEnable} and wlc.id in #{idItem} order by ${sortColumns} insert into wx_level_config (id, tenant_id, points, level, description, create_date, update_date, discount_enable, capability,scale) values (#{item.id,jdbcType=BIGINT}, #{item.finalTenantId,jdbcType=VARCHAR}, #{item.points,jdbcType=INTEGER}, #{item.level,jdbcType=VARCHAR}, #{item.description,jdbcType=VARCHAR}, #{item.createDate,jdbcType=TIMESTAMP}, #{item.updateDate,jdbcType=TIMESTAMP}, #{item.discountEnable,jdbcType=SMALLINT}, #{item.capability,jdbcType=VARCHAR}, #{item.scale,jdbcType=INTEGER}) update wx_level_config `tenant_id` = #{finalTenantId}, `points` = #{points}, `level` = #{level}, `description` = #{description}, `update_date` = #{updateDate}, `discount_enable` = #{discountEnable}, `capability` = #{capability}, `scale` = #{scale}, where id = ${id}; delete from wx_level_config where `tenant_id` = #{tenantId};