|
|
|
@@ -69,8 +69,40 @@ |
|
|
|
<include refid="dynamicWhereConditions"/> |
|
|
|
</select> |
|
|
|
|
|
|
|
<insert id="insertBatch" parameterType="java.util.List"> |
|
|
|
insert into wx_level_config (id, tenant_id, points, level, description, create_date, update_date, |
|
|
|
discount_enable, capability) values |
|
|
|
<foreach collection="list" item="item" index="index" separator=","> |
|
|
|
(#{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}) |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
|
|
|
|
|
<update id="batchUpdate" parameterType="java.util.List"> |
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=";"> |
|
|
|
update wx_level_config |
|
|
|
<set> |
|
|
|
<if test=" null != item.tenantId ">`tenant_id` = #{item.tenantId},</if> |
|
|
|
<if test=" null != item.points ">`points` = #{item.points},</if> |
|
|
|
<if test=" null != item.level ">`level` = #{item.level},</if> |
|
|
|
<if test=" null != item.description ">`description` = #{item.description},</if> |
|
|
|
<if test=" null != item.updateDate ">`update_date` = #{item.updateDate},</if> |
|
|
|
<if test=" null != item.discountEnable ">`discount_enable` = #{item.discountEnable},</if> |
|
|
|
<if test=" null != item.capability ">`capability` = #{item.capability},</if> |
|
|
|
</set> |
|
|
|
where id = ${item.id} |
|
|
|
</foreach> |
|
|
|
</update> |
|
|
|
|
|
|
|
<delete id="deleteAll" parameterType="com.iformall.domain.po.WxLevelConfig"> |
|
|
|
delete from wx_level_config where `tenant_id` = #{tenantId}; |
|
|
|
delete from wx_level_config where `tenant_id` = #{tenantId}; |
|
|
|
</delete> |
|
|
|
|
|
|
|
<select id="getLevel" parameterType="com.iformall.domain.po.WxLevelConfig" resultType="String"> |
|
|
|
|