44323
2023-11-15 07811c07c6e23f179d284fc2fde13cc9218d967b
cloud-server-activity/src/main/resources/mapper/CouponMapper.xml
@@ -50,7 +50,7 @@
            from t_coupon_city
            WHERE provinceCode = #{cityCode}) o)
        </if>
        <if test="name != null">
        <if test="name != null and name!=''">
            and `name` like concat('%', #{name}, '%')
        </if>
        <if test="type != null">
@@ -87,6 +87,8 @@
        illustrate
        from t_coupon
        where 1 = 1     and distributionMethod = 4
        and auditStatus = 2
        and startTime  &lt; now()
        <if test="cityCode != null">
            and id in(
            SELECT DISTINCT couponId FROM
@@ -134,7 +136,8 @@
        illustrate
        from t_coupon
        where 1 = 1     and distributionMethod = 4  and useScope = 1
        and auditStatus = 2
        and startTime  &lt; now()
        <if test="name != null">
            and `name` like concat('%', #{name}, '%')
        </if>