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 1 = 1 and wlc.`id` = #{id} and wlc.`tenant_id` = #{tenantId} and wm.`parent_tenant_id` = #{parentTenantId} 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.tenantId,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` = #{item.tenantId}, `points` = #{item.points}, `level` = #{item.level}, `description` = #{item.description}, `update_date` = #{item.updateDate}, `discount_enable` = #{item.discountEnable}, `capability` = #{item.capability}, `scale` = #{item.scale}, where id = ${item.id} delete from wx_level_config where `tenant_id` = #{tenantId};