优惠券
This commit is contained in:
@@ -150,7 +150,7 @@
|
|||||||
LEFT JOIN `tb_order_info` o ON u.user_id = o.user_id and o.user_id is not null AND o.shop_id = #{shopId}
|
LEFT JOIN `tb_order_info` o ON u.user_id = o.user_id and o.user_id is not null AND o.shop_id = #{shopId}
|
||||||
AND o.status = 'done'
|
AND o.status = 'done'
|
||||||
</if>
|
</if>
|
||||||
WHERE u.main_shop_id = #{mainShopId} and u.phone is not null
|
WHERE u.main_shop_id = #{mainShopId} and u.phone is not null and u.user_id is not null
|
||||||
<!-- 性别筛选条件 -->
|
<!-- 性别筛选条件 -->
|
||||||
<if test="!(param.sexMan == 1 and param.sexWoman == 1 and param.sexUnknown == 1)
|
<if test="!(param.sexMan == 1 and param.sexWoman == 1 and param.sexUnknown == 1)
|
||||||
and (param.sexMan == 1 or param.sexWoman == 1 or param.sexUnknown == 1)">
|
and (param.sexMan == 1 or param.sexWoman == 1 or param.sexUnknown == 1)">
|
||||||
|
|||||||
@@ -265,8 +265,8 @@ public class MkShopCouponRecordServiceImpl extends ServiceImpl<MkShopCouponRecor
|
|||||||
});
|
});
|
||||||
couponService.updateByQuery(newCoupon, queryWrapper);
|
couponService.updateByQuery(newCoupon, queryWrapper);
|
||||||
} else {
|
} else {
|
||||||
queryWrapper.eq(ShopCoupon::getId, coupon.getId());
|
newCoupon.setId(coupon.getId());
|
||||||
couponService.update(coupon, true);
|
couponService.update(newCoupon, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user