| | |
| | | <if test="dto.registerTel!=null and dto.registerTel!=''"> |
| | | AND si.contact_tel LIKE CONCAT('%',#{dto.registerTel}, '%') |
| | | </if> |
| | | <if test="dto.contactTel!=null and dto.contactTel!=''"> |
| | | AND si.contact_tel LIKE CONCAT('%',#{dto.contactTel}, '%') |
| | | </if> |
| | | <if test="dto.stationId != null"> |
| | | AND oi.station_id = #{dto.stationId} |
| | | </if> |
| | | <if test="dto.flowerCategory != null"> |
| | | AND f.category = #{dto.flowerCategory} |
| | | AND ( f.category = #{dto.flowerCategory} or f.category in ( |
| | | select id from t_flower_category where parent_id = #{dto.flowerCategory} |
| | | )) |
| | | </if> |
| | | <if test="dto.flowerLevel != null and dto.flowerLevel != ''"> |
| | | AND oi.flower_level = #{dto.flowerLevel} |
| | |
| | | <if test="dto.createEndDate != null"> |
| | | AND o.payment_time < #{dto.createEndDate} |
| | | </if> |
| | | <if test="dto.orderField !=null and dto.orderField !=''"> |
| | | order by ${dto.orderField} ${dto.orderType} |
| | | </if> |
| | | </sql> |
| | | |
| | | |