| | |
| | | test="(record.shopId!=null and record.shopId!='') or (record.shopId!='' and record.shopId==0) "> |
| | | and a.shop_id = #{record.shopId} |
| | | </if> |
| | | <if test="record.achieveRuleId != null "> |
| | | and e.achieve_rule_id = #{record.achieveRuleId} |
| | | </if> |
| | | <if test="record.year != null and record.year !='' "> |
| | | and YEAR (a.datatime) = #{record.year} |
| | | </if> |
| | |
| | | update achieve_new set number_of_people=#{num} where id=#{item.id} |
| | | </foreach> |
| | | </update> |
| | | <update id="setPayMethod"> |
| | | |
| | | |
| | | update achieve_new |
| | | set pay_method=#{paymethod} |
| | | where id in |
| | | <foreach collection="list" index="index" item="item" open="(" |
| | | separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | |
| | | |
| | | </update> |
| | | </mapper> |