| | |
| | | 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"> |
| | |
| | | illustrate |
| | | from t_coupon |
| | | where 1 = 1 and distributionMethod = 4 |
| | | and auditStatus = 2 |
| | | and startTime < now() |
| | | <if test="cityCode != null"> |
| | | and id in( |
| | | SELECT DISTINCT couponId FROM |
| | |
| | | illustrate |
| | | from t_coupon |
| | | where 1 = 1 and distributionMethod = 4 and useScope = 1 |
| | | |
| | | and auditStatus = 2 |
| | | and startTime < now() |
| | | <if test="name != null"> |
| | | and `name` like concat('%', #{name}, '%') |
| | | </if> |