`id`, `tenant_id`, `points`, `level`, `description`, `create_date`, `update_date`, `discount_enable`, `capability`,`scale`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `points` = #{points}
and `level` like concat('%', #{level},'%')
and `description` like concat('%', #{description},'%')
and `create_date` = #{createDate}
and `update_date` = #{updateDate}
and `discount_enable` = #{discountEnable}
and 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};