| | |
| | | <!-- AND q.create_time <= #{endDate}--> |
| | | <!-- </if>--> |
| | | <if test="startDate != null"> |
| | | AND o.payment_time > #{startDate} |
| | | AND o.payment_time >= #{startDate} |
| | | </if> |
| | | <if test="endDate != null"> |
| | | AND o.payment_time <= #{endDate} |
| | | AND o.payment_time < #{endDate} |
| | | </if> |
| | | group by oi.flower_name, oi.flower_level |
| | | </select> |
| | |
| | | WHERE q.deleted = 0 and doi.deleted = 0 |
| | | and q.supplier_id = #{supplierId} |
| | | <if test="startDate != null"> |
| | | AND o.payment_time > #{startDate} |
| | | AND o.payment_time >= #{startDate} |
| | | </if> |
| | | <if test="endDate != null"> |
| | | AND o.payment_time <= #{endDate} |
| | | AND o.payment_time < #{endDate} |
| | | </if> |
| | | order by q.create_time desc, oi.flower_name, oi.flower_level |
| | | </select> |
| | |
| | | <!-- AND q.create_time <= #{endDate}--> |
| | | <!-- </if>--> |
| | | <if test="startDate != null"> |
| | | AND o.payment_time > #{startDate} |
| | | AND o.payment_time >= #{startDate} |
| | | </if> |
| | | <if test="endDate != null"> |
| | | AND o.payment_time <= #{endDate} |
| | | AND o.payment_time < #{endDate} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | AND q.status = #{status} |
| | | </if> |
| | | <if test="startDate != null"> |
| | | AND o.payment_time > #{startDate} |
| | | AND o.payment_time >= #{startDate} |
| | | </if> |
| | | <if test="endDate != null"> |
| | | AND o.payment_time <= #{endDate} |
| | | AND o.payment_time < #{endDate} |
| | | </if> |
| | | </select> |
| | | |