| @@ -488,8 +488,8 @@ | |||||
| where wc.id = c.id) as sum_subsidy | where wc.id = c.id) as sum_subsidy | ||||
| from wx_coupon c where c.type = 100 | from wx_coupon c where c.type = 100 | ||||
| <if test="title != null"> | |||||
| and c.title = concat('%', #{title},'%') | |||||
| <if test="title != null and title !=''"> | |||||
| and c.title like concat('%', #{title},'%') | |||||
| </if> | </if> | ||||
| <if test="id != null"> | <if test="id != null"> | ||||
| and c.id = #{id} | and c.id = #{id} | ||||
| @@ -514,8 +514,8 @@ | |||||
| <if test=" 2 == type "> | <if test=" 2 == type "> | ||||
| and c.sale_price = 0 | and c.sale_price = 0 | ||||
| </if> | </if> | ||||
| <if test="title != null"> | |||||
| and c.title = concat('%', #{title},'%') | |||||
| <if test="title != null and title != ''"> | |||||
| and c.title like concat('%', #{title},'%') | |||||
| </if> | </if> | ||||
| <if test="id != null"> | <if test="id != null"> | ||||
| and c.id = #{id} | and c.id = #{id} | ||||
| @@ -555,8 +555,8 @@ | |||||
| <if test="id != null"> | <if test="id != null"> | ||||
| and c.id = #{id} | and c.id = #{id} | ||||
| </if> | </if> | ||||
| <if test="title != null"> | |||||
| and c.title = concat('%', #{title},'%') | |||||
| <if test="title != null and title != ''"> | |||||
| and c.title like concat('%', #{title},'%') | |||||
| </if> | </if> | ||||
| order by c.status asc,c.create_date desc | order by c.status asc,c.create_date desc | ||||
| </select> | </select> | ||||