liujie
2023-09-23 852681bc9257e9eaae64d027a9bc6d88f93f35b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dsh.activity.mapper.IntroduceRewardsMapper">
 
 
    <update id="changeState">
        update t_introduce_rewards set
        state = #{state}
        <where>
            <if test="ids != null and ids.size()>0">
                AND t_introduce_rewards.id IN
                <foreach collection="ids" separator="," item="id" open="(" close=")">
                    #{id}
                </foreach>
            </if>
        </where>
    </update>
</mapper>