| | |
| | | and `type` = 3 |
| | | order by sort desc |
| | | </select> |
| | | <select id="changeState" resultType="java.lang.Integer"> |
| | | update t_points_merchandise set |
| | | shelves = #{query.state} |
| | | <select id="changeState" > |
| | | update t_benefits_videos set |
| | | state = #{state} |
| | | <where> |
| | | <if test="query.ids != null and query.ids.size()>0"> |
| | | AND t_points_merchandise.id IN |
| | | <foreach collection="query.ids" separator="," item="id" open="(" close=")"> |
| | | <if test="ids != null and ids.size()>0"> |
| | | AND t_benefits_videos.id IN |
| | | <foreach collection="ids" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |