| @@ -749,6 +749,9 @@ | |||||
| <if test="title != null"> | <if test="title != null"> | ||||
| and c.title = concat('%', #{title},'%') | and c.title = concat('%', #{title},'%') | ||||
| </if> | </if> | ||||
| <if test="id != null"> | |||||
| and c.id = #{id} | |||||
| </if> | |||||
| order by c.status asc,c.create_date desc | order by c.status asc,c.create_date desc | ||||
| </select> | </select> | ||||
| @@ -772,6 +775,9 @@ | |||||
| <if test="title != null"> | <if test="title != null"> | ||||
| and c.title = concat('%', #{title},'%') | and c.title = concat('%', #{title},'%') | ||||
| </if> | </if> | ||||
| <if test="id != null"> | |||||
| and c.id = #{id} | |||||
| </if> | |||||
| order by c.status asc,c.create_date desc | order by c.status asc,c.create_date desc | ||||
| </select> | </select> | ||||
| @@ -804,6 +810,9 @@ | |||||
| *100,2) as payment_rate | *100,2) as payment_rate | ||||
| from wx_coupon c where c.type = 8 | from wx_coupon c where c.type = 8 | ||||
| <if test="id != null"> | |||||
| and c.id = #{id} | |||||
| </if> | |||||
| <if test="title != null"> | <if test="title != null"> | ||||
| and c.title = concat('%', #{title},'%') | and c.title = concat('%', #{title},'%') | ||||
| </if> | </if> | ||||