| | |
| | | <if test="condition.warehouseLocationCode != null and condition.warehouseLocationCode != ''"> |
| | | AND q.warehouse_location_code LIKE concat('%', #{condition.warehouseLocationCode},'%') |
| | | </if> |
| | | <if test="condition.createName != null and condition.createName != ''"> |
| | | AND u.nick_name LIKE concat('%', #{condition.createName},'%') |
| | | </if> |
| | | |
| | | ORDER BY q.create_time desc, q.payment_time desc |
| | | </select> |
| | |
| | | <select id="getOrderSaleAmount" resultType="java.math.BigDecimal"> |
| | | SELECT sum(o.payment_amount) |
| | | FROM t_order o |
| | | WHERE o.payment_time is not null |
| | | and o.refund_time is null |
| | | WHERE o.deleted=0 |
| | | and o.status_backend not in ('PENDING','CANCEL','REFUND') |
| | | <if test="startTime != null"> |
| | | and o.create_time > #{startTime} |
| | | </if> |