nickchange
2023-11-15 951f90b82993acc835cdf58a9f1f39aeecd86674
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>